|
LC:=REF(C,1);
RSI5:=((SMA(MAX((C - LC),0),5,1) / SMA(ABS((C - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((H - L),ABS((H - REF(C,1)))),ABS((L - REF(C,1)))),10);
HDH:=(H - REF(H,1));
LDH:=(REF(L,1) - L);
DMP:=SUM(IF(((HDH > 0) AND (HDH > LD)),HDH,0),10);
DMM:=SUM(IF(((LDH > 0) AND (LDH > HDH)),LDH,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DRAWLINE(盖哦阴J,L,REF(盖阴J,1),REF(L,1),1),COLORRED,DOTLINE;
|
|