Var1:=EMA(CLOSE,8);
Var2:=EMA(Var1,20);
Var3:=CROSS(Var1,Var2);
Var4:=Var1 Var5:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3); 黑马白金:STICKLINE(Var5>20 AND Var5<80,Var5,Var5,6,1),linethick2,POINTDOT,COLORYELLOW; STICKLINE(Var5>80,Var5,Var5,6,1),linethick2,POINTDOT,COLORRED; STICKLINE(Var5<20,Var5,Var5,6,1),linethick2,POINTDOT,COLORBLUE; 风险区:80,POINTDOT,COLORMAGENTA; 牛熊区:50,POINTDOT,COLORWHITE; 安全区:IF(Var3 AND Var4,50,20),COLORGREEN;