源码
ys1:=(HIGH+LOW+CLOSE*2)/4; STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF;
rk3:=EMA(ys1,10);
rk4:=STD(ys1,10);
rk5:=(ys1-rk3)*100/rk4;
rk6:=EMA(rk5,5);
rk7:=EMA(rk6,10);
涨:EMA(rk6,10)+100/2-5,linethick1,colorred;
跌:EMA(涨,4),linethick1,colorwhite;
天晴:IF(cross(涨,跌) and 跌<-10,30,0),linethick1,colorccccff;
雨季:IF(cross(跌,80),70,100),color0099ff,linethick1;
彩虹1:ema(跌,4),colorf00ff0;
彩虹2:ema(彩虹1,4),colorgreen;
彩虹3:=ema(彩虹2,4),coloryellow;
彩虹4:=ema(彩虹3,4),colorcc9900;
-10,pointdot,color888888,linethick2;
80,pointdot,color888888,linethick2;
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF;
DRAWICON(天晴,30,1),color0000ff;
DRAWICON(cross(跌,80),70,2),colorgreen;
DRAWTEXT(cross(涨,跌) and 跌<20 and 跌>-10,40,'停雨多云'),colorccff99;
DRAWTEXT(天晴>0,-20,'天晴'),color0000ff;
Var11:=SUMBARS(VOL,(7)*100);
Var22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var3:=(CLOSE-Var22)/Var22*100;
Var4:=HHV(Var3,Var11);
Var5:=LLV(Var3,Var11);
Var6:=(Var3-Var5)/(Var4-Var5)*100;
K:=SMA(Var6,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3),colorgreen;
STICKLINE(filter(J>MA1 AND J<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow;
DRAWTEXT(filter(J>MA1 AND J<=3,5)=1 and 跌<0,60,'注意'),colorffffff;