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

Re: [EquisMetaStock Group] DMI Calculation



PureBytes Links

Trading Reference Links

Hi Chuck

> 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.

Another oops?  I wasn't quite sure what Alex intended but as you say, one
look at the code and all should be clear.

Roy

>   -----Original Message-----
>   From: Roy Larsen [mailto:rlarsen@xxxxxxxxxxxxxx]
>   Sent: Monday, July 28, 2003 5:27 PM
>   To: equismetastock@xxxxxxxxxxxxxxx
>   Subject: Re: [EquisMetaStock Group] DMI Calculation
>
>
>   Alex
>
>   This code shows the makeup of DI Plus an DI Minus but I'm not sure that
> you
>   will be able to do what you want. What would you use in place of HIGH
and
>   LOW 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) AND
>   LOW>=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) AND
>   HIGH<=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;
>
>
>
>         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.
>
>



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Toner for Your Printer or Fax at LaserTonerSuperstore.com-Save 55%!
We have your brand: HP, IBM, Canon, Xerox, Apple and many more for less!
http://www.LaserTonerSuperstore.com
http://us.click.yahoo.com/YmQqWC/qicGAA/ySSFAA/BefplB/TM
---------------------------------------------------------------------~->

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/