PureBytes Links
Trading Reference Links
|
Roy,
Thanks for confirming my observation and the codes for ADX!
biobuck
--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxx> wrote:
>
> Hi Biobuck
>
> This is definitely an issue with MetaStock. It might relate back to
internal rounding of +/-DMI functions within ADX() but it somehow
seems too severe a problem for that. I've checked MS versions 7.03,
9.1 and 10.1 and all generate the same flawed result. It seems to get
progressively worse from about 25 periods upwards.
>
> You might try using the discrete ADX formula that Equis published
some years back. The version I have is reproduced below but I think
this formula should still be somewhere on the Equis website.
>
> Regards
>
> Roy
>
> {MetaStock code written by Equis and published in the Oct99 TASC}
> {ADX Raw}
> 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);
>
> ----- Original Message -----
> From: biobuck
> To: equismetastock@xxxxxxxxxxxxxxx
> Sent: Sunday, March 09, 2008 6:59 PM
> Subject: [EquisMetaStock Group] Something is very wrong in
calculating ADX(40) by metastock
>
>
> I was having trouble in reproducing an indicator in Metastock and
> Amibroker in which ADX(40) was used as a part of the equation. I
> could not figure out what went wrong with my codes and finally decided
> to check the ADX(40) chart plotted by both Amibroker and Metastock.
> Guess What I was horrified by what I saw.
>
> I am going to upload screenshots to >Files>Metastock Problems for you
> guys to check it out.
>
> biobuck
>
>
>
>
>
> __________ NOD32 2932 (20080309) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
> [Non-text portions of this message have been removed]
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|