主力资金对散户资金副图
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=(-2)*(VAR2-VAR3)*3.8;
VAR5:=2*(VAR2-VAR3)*3.8;
VAR6:=EMA(EMA(CLOSE,9),9);
VAR7:=(VAR1-REF(VAR6,1))/REF(VAR6,1)*30;
VAR8:=CROSS(VAR7,0);
VAR9:=100*WINNER(CLOSE*0.95);
散户资金线:VAR4,COLORGREEN;
主力资金线:VAR5,COLORYELLOW,LINETHICK2;
VAR10:=CROSS(主力资金线,散户资金线);
VAR11:=EMA(COST(80),13);
VAR12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=COUNT(VAR12 > 8,120);
VAR14:=CCI(84)/10;
STICKLINE(VAR5 > 0,0,VAR5*10,3.2,4),COLORRED;
STICKLINE(VAR5 < 0,0,VAR5*10,3.2,4),COLORGREEN;
无庄控盘:IF(VAR7 < 0,VAR7,0),NODRAW,COLORYELLOW;
开始控盘:IF(VAR8,15,0),COLORMAGENTA,LINETHICK3;
有庄控盘:IF(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0),NODRAW,COLORRED;
高度控盘:IF(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0),NODRAW,COLORMAGENTA;
建仓:IF(VAR10,4,0),COLORMAGENTA;
启动:主力资金线 > REF(主力资金线,1) AND 主力资金线 > (-1.3) AND CLOSE/REF(CLOSE,1) > 1.05 AND CLOSE > VAR11 AND 高度控盘 > 1,COLORRED;
主力出货:IF(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0),NODRAW,COLORCYAN;
清仓:CROSS(散户资金线,主力资金线),COLORGREEN;
STICKLINE(VAR7 < 0,VAR7,0,2.8,0),COLOR00AAFF;
STICKLINE(VAR7 < 0,VAR7,0,1.5,0),COLOR00CCFF;
STICKLINE(VAR7 < 0,VAR7,0,0.5,0),COLORYELLOW;
STICKLINE(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0,2.8,0),COLOR000055;
STICKLINE(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0,2,0),COLOR000088;
STICKLINE(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0,1.5,0),COLOR0000AA;
STICKLINE(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0,1,0),COLOR0000CC;
STICKLINE(VAR7 > REF(VAR7,1) AND VAR7 > 0,VAR7,0,0.5,0),COLOR0000EE;
STICKLINE(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0,2.8,0),COLOR550055;
STICKLINE(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0,2,0),COLOR880088;
STICKLINE(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0,1.5,0),COLORAA00AA;
STICKLINE(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0,1,0),COLORCC00CC;
STICKLINE(VAR9 > 50 AND COST(80) < CLOSE AND VAR7 > 0,VAR7,0,0.5,0),COLOREE00EE;
STICKLINE(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0,2.8,0),COLOR555500;
STICKLINE(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0,2,0),COLOR888800;
STICKLINE(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0,1.5,0),COLORAAAA00;
STICKLINE(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0,1,0),COLORCCCC00;
STICKLINE(VAR7 < REF(VAR7,1) AND VAR7 > 0,VAR7,0,0.5,0),COLOREEEE00;
DRAWTEXT(建仓,5,722),COLORMAGENTA;{买好股公式网/WWW.BUYHAOGU.COM}
DRAWICON(启动 AND NOT(REF(启动,1)),VAR5*10+5,1);
DRAWTEXT_FIX(1,0,0.05,0,723),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.1,0,724),COLORRED;
DRAWTEXT_FIX(1,0,0.15,0,725),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.2,0,726),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.2,0,0,VAR13),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,727),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0,0,728),COLORYELLOW;
DRAWTEXT(CROSS(VAR14,0),0,729),COLORYELLOW;
DRAWTEXT(CROSS(VAR14,25),25,730),COLORWHITE;
DRAWTEXT(CROSS(VAR14,12),12,731),COLORYELLOW;