通达信主力建仓指标副图通达信公式
2017-09-16 来源:网络 编辑:翔博软件
活筹:=(100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9)); 主力筹码:=100*WINNER(CLOSE*0.9), COLORCYAN; VAR1:=1; VAR2:=1/WINNER(CLOSE); VAR3:=MA(CLOSE,13); V
活筹:=(100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9));
主力筹码:=100*WINNER(CLOSE*0.9), COLORCYAN;
VAR1:=1;
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
散户线:=(100-VARA)*VAR1,COLORRED,LINETHICK2;
主力线:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW, LINETHICK2;
新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT ;
VARD:=散户线>VAR4;
{STICKLINE(1,新庄,100,1,0),COLORRED,LINETHICK6;}
即时虚拟量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL/FROMOPEN*240,DRAWNULL),NODRAW;
虚拟量:=IF(CURRBARSCOUNT>1,VOL,即时虚拟量);
即时量比:虚拟量/REF(MA(虚拟量,5),1),NODRAW,COLORWHITE;
主力进场:=主力筹码>2 AND REF(主力筹码,1)<1;
主力建仓:(主力进场 AND 即时量比>2)*40;
STICKLINE(主力建仓,20,0,1.5,0),COLORGREEN;
STICKLINE(主力建仓,55,0,1,0),COLORRED;
STICKLINE(主力建仓,80,0,0.05,0),COLORWHITE;
DRAWTEXT(主力进场 AND 即时量比>2,80,'主'),COLORYELLOW;
DRAWTEXT(主力进场 AND 即时量比>2,65,'力'),COLORYELLOW;
DRAWTEXT(主力进场 AND 即时量比>2,50,'进'),COLORYELLOW;
DRAWTEXT(主力进场 AND 即时量比>2,35,'场'),COLORYELLOW;
VAR1G:=(((CLOSE / MA(CLOSE,40)) * 100) < 78);
VAR2G:=(((CLOSE / MA(CLOSE,60)) * 100) < 74);
VAR3G:=(HIGH > (LOW * 1.051));
VAR4G:=(VAR3G AND (COUNT(VAR3G,5) > 1));
AA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0);
BB:=C/REF(C,25)<=1.1;
CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,1.5,0);
买就赢利:=BB AND AA AND CC AND 抄底;
参考:=MA(CLOSE,5);
做多:=MA(CLOSE,10);
准线:=EMA(CLOSE,14);
涨幅%:=(C-REF(C,1))/REF(C,1)*100;
条件6:=参考<做多 AND 做多<准线;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEAF:=EMA(DIFF,9);
低位金叉:=CROSS(DIFF,DEAF) AND DIFF<-0.1;
A1:=BARSLAST(REF(CROSS(DIFF,DEAF),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEAF);
潜伏:=低位金叉 AND 底背离;
DIF1:=EMA(C,13)-EMA(C,21);
DEA:=EMA(DIF1,5);
庄家埋伏:=REF(DIF1<0 AND DIF1<DEA,1) AND DIF1<0 AND DIF1>DEA AND 潜伏 AND 条件6 ;
好运当头:买就赢利 OR 庄家埋伏;
STICKLINE(好运当头,20,0,1.5,0),COLORGREEN;
STICKLINE(好运当头,55,0,1,0),COLORRED;
STICKLINE(好运当头,80,0,0.05,0),COLORWHITE;
DRAWTEXT(好运当头,80,' 好'),COLORYELLOW;
DRAWTEXT(好运当头,65,' 运'),COLORYELLOW;
DRAWTEXT(好运当头,50,' 当'),COLORYELLOW;
DRAWTEXT(好运当头,35,' 头'),COLORYELLOW;