[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] ADR



PureBytes Links

Trading Reference Links

Lionel

Removing the ABS() from the third last line is what gives this version of ADX its characteristic
negative swing when the trend is down.

Roy

{MetaStock code written by Equis and published in the Oct99 TASC}
  {ADX Raw Signed}
Periods:= Input("Enter time periods",1,100,14);
PlusDM:= If(H>Ref(H,-1) AND
L>=Ref(L,-1), H-Ref(H,-1),
If(H>Ref(H,-1) AND L<Ref(L,-1)
AND H-Ref(H,-1)>Ref(L,-1)-L,
H-Ref(H,-1), 0));
DIPlus:= 100 * Wilders(PlusDM,Periods) /
ATR(Periods);
MinusDM:= If(L<Ref(L,-1) AND
H<=Ref(H,-1), Ref(L,-1)-L,
If(H>Ref(H,-1) AND L<Ref(L,-1)
AND H-Ref(H,-1)<Ref(L,-1)-L,
Ref(L,-1)-L, 0));
DIMinus:= 100 * Wilders(MinusDM,Periods)/
ATR(Periods);
DIDif:= {Abs}(DIPlus - DIMinus);
DISum:= DIPlus + DIMinus;
100*Wilders(DIDif/DISum,Periods;




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/