LC:=REF(CLOSE,1);
rsi5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(Abs((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
pdi:=((DMP * 100) / TR1);
mdi:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
wr10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWvol:=(RSI5 - WR10);
SX:=IF(DATE>1110415,0,1);
阶段底部:=(AV + NEWVOL);
趋势线:=LLV(阶段底部,1);
DRAWICON((趋势线 >238 ),C*1.03,14);
AA:=VOL*(3*C+H+L+O)/6*SX;
AB:=EMA(AA*SX,19)/EMA(VOL,17)*SX;
ac:=6*HHV(AB*SX,2)-5*AB*SX ;
AD:=2*AB-AC*SX;
STICKLINE(C>AB*1.018,O,C,3.08*SX,1)COLORRED;
STICKLINE(C>AB*1.018 AND O
STICKLINE(C>AB*1.018 AND O>C,O,H*SX,0,0*SX)COLORRED;
STICKLINE(C<=AB*1.018,O,C,3.08*SX,0)COLORCYAN;
STICKLINE(C<=AB*1.018,L,O,0,0)COLORCYAN;
STICKLINE(C<=AB*1.018,C,H,0,0)COLORCYAN;
ZT:=(C/REF(C,1)>=1.095 OR BETWEEN(C/REF(C,1),1.0495,1.051)) AND H=C;
STICKLINE(ZT,O,C,3.08,0)COLORRED;
HF:=(3*C+H+L+O)/6;
M0:=EMA(HF*SX,9*SX) COLORGREEN;
A0:=M0>REF(M0,1);
BB:IF(A0,M0,DRAWNULL)*SX COLORYELLOW;
DRAWICON((C/M0 >1.2 ),C*1.03,13);