大智慧转向变盘副图指标
源码
Var1:=(EMA(CLOSE,34)-EMA(CLOSE,52))/MA(CLOSE,54)*100;
Var2:=EMA(Var1,10);
Var3:=Var1<0;
Var4:=Var3 AND CROSS(Var1,Var2);
Var5:=Var1>0;
Var6:=Var5 AND CROSS(Var2,Var1);
Va1:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,60)*100;
Va2:=EMA(Va1,18);
Va3:=Va1<0;
Va4:=Va3 AND CROSS(Va1,Va2);
s:IF(COUNT(var4,5)=1 and va4=1 or COUNT(va4,5)=1 and var4=1,0.5,2),linethick2;
Va5:=Va1>0;
Va6:=Va5 AND CROSS(Va2,Va1);
s1:IF(COUNT(var6,3)>0 and va6,3,2),linethick2;
s2:=IF(var4,1,0);
s3:IF(va4,0.5,-1),linethick2;
s4:=IF(var6,3,4);
s5:IF(va6,3,5),linethick2;
DRAWTEXT(s1=3 and s5=3,3,'转向!!!'),colorred;
DRAWTEXT(s=0.5 and s3=0.5,0.5,'变盘!!!'),coloryellow;