股票趋势线:=EMA(EMA(CLOSE,9),9);
趋势线指标:=(股票趋势线-REF(股票趋势线,1))/REF(股票趋势线,1)*500;
STICKLINE(趋势线指标<0,趋势线指标,0,0.99,0),COLOR00FF00;
A10:=CROSS(趋势线指标,0);
vvseee1:=IF(A10,5,0);
STICKLINE(趋势线指标>REF(趋势线指标,1) AND 趋势线指标>0,趋势线指标,0,0.99,0),COLORRED;
vvseee2:IF(趋势线指标>REF(趋势线指标,1) AND 趋势线指标>0,趋势线指标,0),COLORRED,NODRAW;
vvseee3:=100*WINNER(CLOSE*0.95);
STICKLINE(vvseee3>50 AND COST(85)<CLOSE AND 趋势线指标>0,趋势线指标,0,0.99,0),COLORFF00FF;
vvseee4:=IF(vvseee3>50 AND COST(85)<CLOSE AND 趋势线指标>0,趋势线指标,0),COLORFF00FF,NODRAW;
STICKLINE(趋势线指标<REF(趋势线指标,1) AND 趋势线指标>0,趋势线指标,0,0.99,0),COLORYELLOW;
vvseee5:IF(趋势线指标<REF(趋势线指标,1) AND 趋势线指标>0,趋势线指标,0),COLOR00FF00,NODRAW;
vvseee6:IF(趋势线指标<0,趋势线指标,0),COLOR00FF00,NODRAW;
ffeee1:=vvseee2+vvseee5;
ffeee2:=-vvseee6;
sxxdd1:(SUM(ffeee1,0)-SUM(ffeee2,0))/20,COLORRED;
sxxdd2:MA(sxxdd1,40);
DRAWTEXT(sxxdd1>0.5 AND REF(sxxdd1,1)<=0.5,sxxdd1,''),COLORWHITE;
DRAWTEXT(sxxdd1>0.5 AND REF(sxxdd1,1)<=0.5,sxxdd1+0.3,''),COLORWHITE;
xxeed1:=HHV(H,240);
xxeed2:=HHV(C,240);
DRAWTEXT(sxxdd1>0.5 AND C=xxeed1 AND REF(xxeed2,1)>REF(C,1)AND C>REF(C,1)AND(vvseee2+vvseee5)>0.15,sxxdd1,''),COLORWHITE;
DRAWTEXT(sxxdd1<-0.5 AND REF(sxxdd1,1)>=-0.5,sxxdd1,''),COLORGREEN;
DRAWTEXT(sxxdd1<-0.5 AND REF(sxxdd1,1)>=-0.5,sxxdd1-0.3,''),COLORWHITE;
sfee:=LLV(C,240);
DRAWTEXT(sxxdd1>0.5 AND C=sfee AND REF(sfee,1)<REF(C,1)AND C<REF(C,1)AND vvseee6<-0.15,sxxdd1,''),COLORGREEN;
fffee1:0.5,COLORBROWN;
fffee2:-0.5,COLORBROWN;