{安全度}
VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*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,'极度危险区'),, COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),30,'危险区'), , COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),65,'安全区'), , COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),88,'高安全区'), , COLORWHITE;
当前安全度: 100-EMA(0.667*REF(VAR4,1)+0.333*VAR4,1),CIRCLEDOT,LINETHICK2 ,COLORRED;