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

Re: [EquisMetaStock Group] Re: ADX



PureBytes Links

Trading Reference Links

Hi Pumrysh,
Thanks you so much for you attention. This seem to be the answer I need.
Thanks again.
Regards,
Colin
  ----- Original Message ----- 
  From: pumrysh 
  To: equismetastock@xxxxxxxxxxxxxxx 
  Sent: Tuesday, October 02, 2007 5:13 PM
  Subject: [EquisMetaStock Group] Re: ADX


  {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;DIPlus;DIMinus;}
  ref(ROC( ADXRaw,periods,$),-2)

  --- In equismetastock@xxxxxxxxxxxxxxx, "colinchan69" <colin103@xxx> 
  wrote:
  >
  > Hi,
  > Can someone help me to create ROC to find the rate for ADX (18) 
  Two 
  > Days ago in decimal.Many thanks in advance.
  > 
  > Regards
  > Colin
  >



   

[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/