Var2:=1;
Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),18)/4;
Var4:=IF(1,IF(Var3>23.16,Var3,0),0);
Var5:=Var3<10;
Var6:=Var3<2;
Var7:=Var5 OR Var6;
长期趋势: ZIG(3,8), colorblue;
短期趋势: ZIG(3,4.5), coloryellow;
M5日: EMA(CLOSE,5), colorwhite;
M10: EMA(CLOSE,10) , coloryellow;
M20: EMA(CLOSE,20), colormagenta;
M30: EMA(CLOSE,30), colorgreen;
M60: EMA(CLOSE,60),colorblue;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*1.02,'买') , COLOR9999ff;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'▼'),COLORffffcc ;