ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
SHZB:=SHCM/(ZLCM+SHCM)*100;
ZCZB:=ZLCM/(ZLCM+SHCM)*100+1;
散筹:INTPART(SHZB),COLORGREEN,LINETHICK1;
散均:EMA(散筹,13),COLORCYAN,LINETHICK2;
STICKLINE(散筹>散均,散均,散筹,0.2,0),COLOR00FF00;
主筹:INTPART(ZCZB),COLORYELLOW,LINETHICK1;
主均:EMA(ZLCM,13),COLORMAGENTA,LINETHICK2;
STICKLINE(主筹>主均,主均,主筹,0.2,0),COLOR0000FF;
买:CROSS(主筹,主均),NODRAW,COLORYELLOW;
DRAWTEXT(买,主均*0.85,'↖买入'),COLORRED;
卖:CROSS(主均,主筹),NODRAW,COLORLIBLUE;
DRAWTEXT(卖,主筹*1.20,'__卖出'),COLORLIBLUE;
DRAWICON(买,主筹*0.92,5);
DRAWICON(卖,主筹*1.06,6);
买2:CROSS(散均,散筹) AND 主筹>REF(主筹,1),NODRAW,COLORRED;
DRAWICON(买2,散筹*0.90,9),COLORYELLOW;
DRAWTEXT(买2,散筹*0.96,'↖买2')COLORMAGENTA;
卖2: CROSS(散筹,散均),NODRAW,COLORGREEN;
DRAWTEXT(卖2,散筹*1.15,'__卖2'),COLORGREEN;
DRAWICON(卖2,散筹*1.06,15);
VAR2:=IF(C>=O,H,0);
VAR3:=IF(C<=O,REF(H,1),VAR2);
VAR4:=IF(C>=O,V,0);
VAR5:=IF(C<=O,REF(V,1),VAR4);
VAR6:=COUNT(VAR3>REF(VAR3,1) AND VAR5< REF(VAR5,1),3)>=2 AND C>O;
量价背离:VAR6*20,STICK,COLORCYAN,LINETHICK2;
EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0)*5,3),STICK,COLORYELLOW,LINETHICK3;
机会关注:5,POINTDOT,COLORFF00FF,LINETHICK4;
换手:VOL/CAPITAL*100,COLORWHITE,NODRAW;
预换手:IF(CURRBARSCOUNT=1 AND PERIOD=5,换手*240/FROMOPEN,DRAWNULL),COLORMAGENTA,NODRAW;
量比:DYNAINFO(17),NODRAW,COLORWHITE;
日量比:V/REF(MA(V,5),1),NODRAW,COLORWHITE;
今日波幅:=100*(DYNAINFO(5)-DYNAINFO(6))/DYNAINFO(6);
今日价差:=DYNAINFO(5)-DYNAINFO(6);
DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('今日最大振幅: ',CON2STR(今日波幅,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.120,0.000,0,STRCAT(STRCAT('今日高低价差: ',CON2STR(今日价差,2)),' 元')),COLORWHITE;
DRAWTEXT_FIX(1,0.250,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.390,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),COLORGREEN;
DRAWTEXT_FIX(1,0.530,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.670,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),COLORGREEN;