RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
W:=(K>D AND REF(K
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
pdi: DMP*100/TR;
mdi: DMM*100/TR;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:EXPMEMA(ADX,M);
炮:HHVBARS(HIGH,200);
MacD1:REF(DIF
防炮: REF(K
极炮: REF(K
DRAWTEXT(极炮,100,'极炮');
DRAWTEXT(终极,100,'终极');
STICKLINE(极炮,1,60,8,50),COLORYELLOW;
STICKLINE(MACD1,1,80,2,50),COLORWHITE;
DRAWTEXT(MACD1,50,'炮弹');
STICKLINE(终极炮,1,80,20,50),COLORWHITE;
DRAWTEXT(终极炮,100,'终极炮');
STICKLINE(终极炮,1,80,20,50),COLORWHITE;
DRAWTEXT(防炮,70,'防炮');
STICKLINE(防炮,1,40,10,50),COLORYELLOW;
迫击炮: MDI
DRAWTEXT(迫击炮,60,'迫击炮');
STICKLINE(迫击炮,1,50,9,50),COLORYELLOW;