VOLUME:VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
量X:=V;
量X5:=MA(V,5);
量:=CAPITAL/VOL/5;
量5:=MA(量,5);
量10:=MA(量,10);
换手5:=MA(VOL*100/CAPITAL,5);
换手10:=MA(VOL*100/CAPITAL,10);
价5:=MA(C,5);
价10:=MA(C,10);
底:=C>MA(C,5) AND 换手5>换手10 AND 量5
涨:=C>MA(C,5) AND 换手5>换手10 AND 量5>REF(MA(量5,1),5);
涨2:=C>MA(C,5) AND 换手5<换手10 AND 量5>REF(MA(量5,1),5);
涨3:=C>MA(C,5) AND 换手5<换手10 AND 量5
STICKLINE(底,0,V,8,0),COLORRED ;
STICKLINE(涨,0,V,8,0),COLORYELLOW ;
STICKLINE(涨2,0,V,8.8,0),COLORYELLOW ;
STICKLINE(涨3,0,V,8.8,0),COLORFF00FF ;
短顶:=(量10-价10)<0.01;
顶:=C
顶1:=C
STICKLINE(顶1,0,V,7.8,0),COLORFF4242;
STICKLINE(顶2,0,V,7.8,0),COLORFF4242;
买卖:=(C-MA(C,5))*100;
M:=BARSLAST(买卖<0);
100*SUM(VOL,m)/CAPITAL;
买天数:IF(买卖>0,5,0),COLORRED;
N:=BARSLAST(买卖>0);
100*SUM(VOL,10)/CAPITAL;
卖天数:IF(买卖<0,n,0),COLORWHITE;