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

RE: [amibroker] ADX



PureBytes Links

Trading Reference Links




Thanks, Jason 
!  I'll give it a try.
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Jayson 
  [mailto:jcasavant@xxxxxxxxxxxx]Sent: Wednesday, February 26, 2003 
  9:55 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
  [amibroker] ADX
  <SPAN 
  class=136234714-26022003>Rick,
  here 
  is a formula for ADX. Since the indicator looks at high and low values of the 
  security you could rename the Highs and Lows with a custom "Line" I do not 
  know what you are trying to accomplish but something along the lines 
  of.....
  <SPAN 
  class=136234714-26022003> 
  <SPAN 
  class=136234714-26022003>h=ma(h,50); 
  <SPAN 
  class=136234714-26022003>l=ma(l,50);
  <SPAN 
  class=136234714-26022003> 
  <SPAN 
  class=136234714-26022003>Since the built in indicator is probably using the 
  built in PDI and MDI for the math you would probably need to convert the code 
  below to AB then plot "ADXFinal"
  
  ADX Custom
  Periods:=Input("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));PlusDI:=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));MinusDI:=100*Wilders(MinusDM,Periods)/ATR(Periods);DIDif:=Abs(PlusDI-MinusDI);DISum:=PlusDI+MinusDI;ADXFinal:=100*Wilders(DIDif/DISum,Periods);ADXFinal 
  Jayson 
  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Rick Parsons 
  [mailto:RickParsons@xxxxxxxxxxxxxxx]Sent: Wednesday, February 26, 
  2003 8:14 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] ADX
  
  <SPAN 
  >
  <SPAN 
  >If <SPAN 
  class=450571113-26022003> I code <SPAN 
  class=450571113-26022003> <SPAN 
  class=450571113-26022003> <SPAN 
  class=450571113-26022003> :    Line = <SPAN 
  class=450571113-26022003> MySpecialFormula 
  Etc; 
  <SPAN 
  ><SPAN 
  class=450571113-26022003><FONT 
  face="Times New Roman"><SPAN 
  class=450571113-26022003><FONT 
  face="Courier New"> 
  <SPAN 
  ><SPAN 
  class=450571113-26022003> How does one calculate an ADX(14) on 
  "Line"??   
  There is no "Array" parm.
  
    
    
    <SPAN 
    ><SPAN 
    class=450571113-26022003> 
    <SPAN 
    ><FONT 
    face="Courier New">Thanks, 
    
    <SPAN 
    > 
    
    <FONT face="Vladimir Script" color=navy 
    size=5><SPAN 
    >Rick
    
    <SPAN 
    > Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 
  Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT  









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.