N:=5;N1:=15;
H1:EMA(CLOSE,n);
H2:EMA(H1,n1);
LH(牛熊界):EMA(CLOSE,250),CIRCLEDOT,colorff0099;
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);
drawtext(cross(H1,H2),H1*0.96,''),color00ff00;
drawtext(cross(H1,H2),H1*0.96,''),colorwhite;
drawtext(cross(H1,H2),H1*0.98,'●'),coloryellow ;
drawtext(cross(H1,H2),H1*0.99,''),coloryellow