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); SX:=IF(DATE>1110331,0,1);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10); 阶段底部:=(AV + NEWVOL); 趋势线:=LLV(阶段底部,1);
DRAWICON((趋势线 >250 ),C*1.03,14);
AA:=VOL*(3*C+H+L+O)/6*SX;
AB:=EMA(AA*SX,19)/EMA(VOL,17);
AC:=6*HHV(AB,2)-5*AB ; AD:=2*AB*SX-AC*SX; STICKLINE(C>AB*1.018,O,C,3.08,1)COLORRED;
STICKLINE(C>AB*1.018 AND O<C,C,H,0,0)COLORRED; STICKLINE(C>AB*1.018 AND O<C,O,L,0,0)COLORRED;
STICKLINE(C>AB*1.018 AND O>C,C,L,0,0)COLORRED; STICKLINE(C>AB*1.018 AND O>C,O,H,0,0)COLORRED; STICKLINE(C<=AB*1.018,O,C,3.08,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,9)*SX COLORGREEN; A0:=M0>REF(M0,1);
BB:IF(A0,M0,DRAWNULL)*SX COLORYELLOW;
|