{获利盘--庄家筹码集中度}
获利:=WINNER(CLOSE),COLORRED;
CMJZ:=CLOSE/COST(60)>0.98;
{短线多头}
DT1:=(CLOSE>REF(CLOSE,4) OR MA(CLOSE,5)>MA(CLOSE,10)) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,30);
DT2:=MA(CLOSE,5)>=REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND MA(CLOSE,30)>REF(MA(CLOSE,30),1);
{量形波浪}
LXSL:=(VOL<REF(VOL,1) AND REF(VOL,1)<REF(VOL,2)) OR VOL<REF(VOL,1)/1.8;
SLSJ:=BARSLAST(LXSL);
{K线波浪}
GJZX:=(O+C+H+L)/4;
LXXD:=(C<REF(C,1) AND REF(C,1)<REF(C,2)) OR (GJZX<REF(GJZX,1) AND REF(GJZX,1)<REF(GJZX,2)) OR (H<REF(H,1) AND REF(H,1)<REF(H,2)) OR (L<REF(L,1) AND REF(L,1)<REF(L,2) AND GJZX<REF(GJZX,1));
XDSJ:=BARSLAST(LXXD);
QRSP:=REF(CLOSE,1)<REF(CLOSE,2) OR REF(CLOSE,1)/REF(CLOSE,2)<=1.035;
LXSY:=(H/REF(CLOSE,1)>=1.05 AND REF(CLOSE,1)>REF(CLOSE,2)*1.02 AND REF(CLOSE,2)>=REF(CLOSE,3)*1.02) OR H/REF(CLOSE,3)>=1.15,COLORRED;
FLSZ:=VOL>REF(VOL,1)*1.5 AND VOL>MA(VOL,5) AND CLOSE/REF(CLOSE,1)>=1.02;
短:=(FLSZ AND SLSJ<=3 AND XDSJ<=3)*0.5,COLORFF6600,STICK,LINETHICK1;
{DRAWTEXT(短>0 ,L*0.97 , '短'),COLORYELLOW,LINETHICK1;}
马:=(CMJZ AND DT1 AND DT2 AND QRSP AND SLSJ<=6 AND XDSJ<=6 AND FLSZ AND LXSY=0)*1.5 AND TIME<=0935,COLORYELLOW,STICK,LINETHICK2;
DRAWICON((获利>0.6 AND 马>0) AND TIME<=0935,L-0.02,23);
DRAWTEXT(马>0 ,L*0.99, '马')AND TIME<=0935,COLORRED,LINETHICK1;
MA0:=MA(C,5);
MA1:=MA(C,10);
穿:=(CROSS(C,MA0) OR (O<MA0 AND C>MA0)) AND V>REF(V,1) AND MA0>REF(MA0,1) AND MA1>REF(MA1,1);
{DRAWTEXT(穿>0 ,H*1.03, '穿'),COLORYELLOW,LINETHICK1;}
{快马回头}
N4:=BARSLAST(短 OR 马);
HT1:=N4<=2 AND L>REF(L,N4) AND C/REF(C,N4)<1.015 AND V<REF(V,1);
HT2:=REF(HT1,1) AND (C<=REF(C,1) OR C<=REF(C,N4)) AND C>REF(O,N4) AND V<REF(V,1);
回:=HT2*0.8,COLORWHITE,STICK,LINETHICK2;
{ STICKLINE(回,L*0.98,L*0.92,0,1),COLORWHITE,LINETHICK2;}
{ DRAWTEXT(回>0 ,L*0.95 , '回'),COLORFF00FF,LINETHICK1;}
{STICKLINE(短 OR 马,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(短 OR 马,O,C,4,1),COLORYELLOW,LINETHICK2;}
QSXS:=(MA(C,30)>REF(MA(C,30),1))*REF(MA(C,30),1)-0.1, CIRCLEDOT,COLORYELLOW;
{DRAWTEXT(QSXS>0 ,MA30-0.02 , '○'),COLORYELLOW,LINETHICK1;};
{}
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,20);
MAVOL3:=MA(VOLUME,60);
STICKLINE(C>O AND 马>0 AND TIME<=0935 AND V>=HHV(V,6),V,0,2,0),COLOR00FFFF;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA250:=MA(C,250);
{DRAWICON(CURRBARSCOUNT=5,H*1.03,13);
DRAWTEXT(CURRBARSCOUNT=5,H*1.03,' 五日'),COLORRED;
DRAWICON(CURRBARSCOUNT=10,H*1.03,13);
DRAWTEXT(CURRBARSCOUNT=10,H*1.03,' 十日'),COLORRED;
DRAWICON(CURRBARSCOUNT=20,H*1.03,13);
DRAWTEXT(CURRBARSCOUNT=20,H*1.03,' 二十日'),COLORRED;
DRAWICON(CURRBARSCOUNT=60,MA60,13);
DRAWTEXT(CURRBARSCOUNT=60,MA60,' 六十日'),COLORRED;
DRAWICON(CURRBARSCOUNT=120,MA120,13);
DRAWTEXT(CURRBARSCOUNT=120,MA120,' 一百二十日'),COLORRED;
DRAWICON(CURRBARSCOUNT=250,MA250,13);
DRAWTEXT(CURRBARSCOUNT=250,MA250,' 二百五十日'),COLORRED;};