PureBytes Links
Trading Reference Links
|
Hi
Roy,
<FONT face=Arial color=#0000ff
size=2>
I
think he intended to use the high and low of a "foreign" security, as opposed to
the one he is looking at. But, he can tell us once he sees
your reply.
<BLOCKQUOTE
>
<FONT face="Times New Roman"
size=2>-----Original Message-----From: Roy Larsen
[mailto:rlarsen@xxxxxxxxxxxxxx]Sent: Monday, July 28, 2003 5:27
PMTo: equismetastock@xxxxxxxxxxxxxxxSubject: Re:
[EquisMetaStock Group] DMI
CalculationAlexThis code shows the makeup of
DI Plus an DI Minus but I'm not sure that youwill be able to do what you
want. What would you use in place of HIGH andLOW that made any
sense?Roy{MetaStock code written by Equis and published in the
Oct99 TASC} {ADX Raw}Periods:= Input("Enter time
periods",1,100,14);PlusDM:= If(HIGH>Ref(HIGH,-1)
ANDLOW>=Ref(LOW,-1), HIGH-Ref(HIGH,-1),If(HIGH>Ref(HIGH,-1) AND
LOW<Ref(LOW,-1)AND
HIGH-Ref(HIGH,-1)>Ref(LOW,-1)-LOW,HIGH-Ref(HIGH,-1), 0));DIPlus:=
100 * Wilders(PlusDM,Periods) /ATR(Periods);MinusDM:=
If(LOW<Ref(LOW,-1) ANDHIGH<=Ref(HIGH,-1),
Ref(LOW,-1)-LOW,If(HIGH>Ref(HIGH,-1) AND LOW<Ref(LOW,-1)AND
HIGH-Ref(HIGH,-1)<Ref(LOW,-1)-LOW,Ref(LOW,-1)-LOW, 0));DIMinus:=
100 * Wilders(MinusDM,Periods) /ATR(Periods);DIDif:= Abs(DIPlus -
DIMinus);DISum:= DIPlus + DIMinus;ADXRaw:= 100 * Wilders(DIDif/DISum,
Periods);ADXRaw;To
unsubscribe from this group, send an email
to:equismetastock-unsubscribe@xxxxxxxxxxxxxxxYour
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|