var1:=SUM(WINNER(CLOSE)*100,10)/10-(SUM(WINNER(CLOSE)*100,10)/20+10);
var2:=Dma(var1,vol/SUM(vol,13));
var3:=Dma(var1,vol/CAPITAL);
STICKLINE(var1>0,0,var1,10,0),Color0000FF;
STICKLINE(var1<0,0,var1,10,0),Color00FF00;
DRAWTEXTABS,linethick1,COLOR00EEff;
控盘系数:IF(C>1000,var2,var3),ColorYELLOW,LINETHICK2,LAYER1;
顶:50,POINTDOT,Color979390;
风险:33,POINTDOT,Color979390;
控盘:20,POINTDOT,Color979390;
吸筹:10,POINTDOT,Color979390;
无庄:-5,POINTDOT,Color979390;
底:-15,POINTDOT,Color979390;
DRAWTEXTREL(1,5,'顶部区'),Color8000FF;
DRAWTEXTREL(1,220,'风险区'),Color00CDFF;
DRAWTEXTREL(1,430,'控盘区'),Color40FF00;
DRAWTEXTREL(1,590,'吸筹区'),ColorEAFF00;
DRAWTEXTREL(1,790,'散户区'),Color00FFFF;
DRAWTEXTREL(1,980,'底部区'),ColorFFA980;
A:=BARSLAST(CROSS("kdj.k","kdj.d"))+1;
B:=A>REF(A,1);
D1:=BARSCOUNT(C);