大智慧天河彩虹主图指标
源码
天河彩虹图H1:EMA(CLOSE,8),linethick2,colorwhite;
H2:EMA(天河彩虹图H1,20),linethick2,coloryellow;
Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var2:=SMA(Var1,5,1);
Var3:=SMA(Var2,8,1);
Var4:=CROSS(Var2,Var3) AND Var3<20;
Var5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND Var4;
Var6:=IF(CLOSE>1000,Var4,Var5);
MA5:EMA(CLOSE,5),colorwhite;
MA10:EMA(CLOSE,10),coloryellow;
MA20:EMA(CLOSE,20),color000fff;
MA30:EMA(CLOSE,30),colorblue;
MA60:EMA(CLOSE,60),colorgreen;
MA90:EMA(CLOSE,90),colormagenta;
MA120:EMA(CLOSE,120),linethick2,colorred;
MA250:EMA(CLOSE,250),linethick2,colorffff00;
MA500:EMA(CLOSE,500),linethick2,colorff0088;
DRAWICON(CROSS(天河彩虹图H1,H2)AND CLOSE<EMA(CLOSE,60) ,LOW,1);
DRAWICON(Var6,H,2);
STICKLINE(天河彩虹图H1>H2,天河彩虹图H1,H2,1,0.8),COLORRED;
STICKLINE(天河彩虹图H1<H2,天河彩虹图H1,H2,1,0.8),COLORGREEN;