能量:SMA(XA_1,32,8),NODRAW;
STICKLINE(能量>80,0,能量,2,0),COLORFF66FF;
STICKLINE(能量>80,0,80,2,0),COLORWHITE;
STICKLINE(能量<80,0,能量,2,0),COLORWHITE;
STICKLINE(能量<20,0,能量,2,0),COLORYELLOW;
STICKLINE(能量>20,0,20,2,0),COLORYELLOW;
STICKLINE(能量>20 AND 能量<50,20,能量,2,0),COLORCD7F32;
STICKLINE(能量>50,20,50,2,0),COLORCD7F32;
XA_2:=IF(能量>REF(能量,1),能量-能量*1/100,能量+能量*1/100);
趋势线:SMA(XA_2,19,6),COLORRED,LINETHICK3;
差值:能量-趋势线,NODRAW;
IF(差值>0,趋势线,DRAWNULL),COLORRED,LINETHICK3;
IF(差值<0,趋势线,DRAWNULL),COLORGREEN,LINETHICK3;
危险区:80,COLORRED,LINETHICK5;
安全区:20,COLORMAGENTA,LINETHICK5;
中线:50,COLORYELLOW,LINETHICK5;
XA_3:=REF(LOW,1);
XA_4:=SMA(ABS(LOW-XA_3),13,1)/SMA(MAX(LOW-XA_3,0),13,1)*100;
XA_5:=EMA(IF(CLOSE*1.2,XA_4*13,XA_4/13),13);
DRAWTEXT_FIX(1,0.980,20,1,'★九毛八公式指标www.9m8.cn'),COLOR444444;
XA_6:=LLV(LOW,34);
XA_7:=HHV(XA_5,34);
XA_8:=IF(LLV(LOW,56),1,0);
XA_9:=EMA(IF(LOW<=XA_6,(XA_5+XA_7*2)/2,0),3)/618*XA_8;
XA_10:=XA_9>REF(XA_9,1);
XA_11:=REF(LLV(LOW,100),3);
XA_12:=REFDATE(XA_11,DATE);
XA_13:=LOW=XA_12;
XA_14:=XA_10 AND XA_13;
XA_15:=XA_14>REF(XA_14,1);
启动点:XA_15>REF(XA_15,1),COLORRED;
STICKLINE(启动点,50,70,2,0),COLORRED;