VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,21)*0.998;
100,STICK,LINETHICK7, COLORFFCC33;
80, STICK,LINETHICK7, COLORFF9933;
50,STICK,LINETHICK7, COLORBLUE;
20,STICK,LINETHICK7,COLORCC0033;
20,, COLORWHITE;
50,, COLORYELLOW;
80,, COLORCYAN;
DRAWTEXT(FILTER(CLOSE>0,25),10,'安全一区'),COLORRED;
DRAWTEXT(FILTER(CLOSE>0,25),30,'安全二区'),COLORRED;
DRAWTEXT(FILTER(CLOSE>0,25),65,'危险一区'),COLORFF00FF;
DRAWTEXT(FILTER(CLOSE>0,25),88,'危险二区'),COLORFF00FF;
当前风险度数: 100-EMA(0.667*REF(VAR4,1)+0.333*VAR4,1),CIRCLEDOT,LINETHICK2 ,COLORYELLOW;

 

通达信风险刻度指标公式