DRAWTEXTABS(0 ,10 ,'只要是红柱,就不要怕跌' );
RI:=(INDEXC/REF(INDEXC,1))-1;
SI:=(CLOSE/REF(CLOSE,1))-1;
CI:=REF(CLOSE,1)*(1+RI);
GAIN:=CLOSE-(CI);
ROUTE:=ABS(CI-REF(CLOSE,1))+ABS(CLOSE-(CI));
FH:=IF((SI) 0,1,0-1);
ZM:=IF((ABS(RI) 0.008) AND (ABS(SI) 0.008) AND (ABS(RI-SI) 0.015),0.35*FH*VOL,0.5*GAIN/ROUTE*VOL);
ZMF:=SUM(ZM,0);
(MEMA(ZMF,1)-MEMA(ZMF,10))/100, COLORSTICK,linethick3;
var10:=100*(c-cost(10))/cost(10);
ema((EMA(ZMF,1)-EMA(ZMF,10))/100,5);
ema((EMA(ZMF,1)-EMA(ZMF,10))/100,20);
ema((EMA(ZMF,1)-EMA(ZMF,10))/100,60);