NexusFi: Find Your Edge


Home Menu

 





ADX using EMA rather than Wilder's formula


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Azrael with 4 posts (0 thanks)
    2. looks_two Fat Tails with 3 posts (6 thanks)
    3. looks_3 kaan with 3 posts (0 thanks)
    4. looks_4 cactus363 with 1 posts (0 thanks)
    1. trending_up 6,665 views
    2. thumb_up 6 thanks given
    3. group 5 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

ADX using EMA rather than Wilder's formula

  #1 (permalink)
 Azrael 
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
Posts: 72 since Jul 2012
Thanks Given: 39
Thanks Received: 9

Hi guys,

I read somewhere that there is a version of the ADX/DMI that is calculated using EMA instead of Wilder's formula.

I couldn't find it in the forums, does anyone have it?

Thanks in advance =)

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Tao te Trade: way of the WLD
24 thanks
Spoo-nalysis ES e-mini futures S&P 500
19 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Azrael View Post
Hi guys,

I read somewhere that there is a version of the ADX/DMI that is calculated using EMA instead of Wilder's formula.

I couldn't find it in the forums, does anyone have it?

Thanks in advance =)


Wilder's average and the EMA are basically identical.

The only difference is the way that the smoothing constant of the EMA is calculated from the period.

For Wilder's average the smoothing constant is k = 1/n

For the EMA (as described by Jack K. Hutson in one of the early issues of the TASC magazine) a period of k = 2/(n+1) is used.

The advantage of the Hutson formula is that

- the EMA can be compared to a SMA with the same period
- that you can easily calculate higher timeframe EMAs by multiplying the period with the timeframe factor

Example: You can approximate an EMA(20) on an hourly chart with an EMA(80) calculated from 15 minute bars, but you cannot do this with Wilder's average.

Therefore today, all EMAs use the Hutson formula ( I call it Hutson formula, but in reality it is based on the single exponential model described in Robert G.Brown's "Smoothing, Forecasting and Prediction of Discrete Time Series, which was first published in 1963).


You do not need the modified ADX based on the EMA.


All you need to do is to adapt the period. Let us call the modified ADX "ADXmod". And now let us assume that you wish to display an ADXmod(21). Then you know that this indicator uses a smoothing constant of 2/(21+1) = 1/11. It is therefore identical with the ADX(11) of Wilder.

That said, you cannot approximate even periods of the ADXmod with the Wilder ADX, as it will not allow you to set the period to 10.5, although this is mathematically possible. If you wish, I will modify the NinjaTrader ADX to allow you to select broken periods.

Reply With Quote
  #3 (permalink)
 Azrael 
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
Posts: 72 since Jul 2012
Thanks Given: 39
Thanks Received: 9


Thanks for the reply Fat Tails!

Actually, I was trying to get an ADX with the EMA reference in it to then substitute with the various MAs like HMA, ZELMA, T3, etc for experimentation =)

Something like the MACDplus in the forums where you can just swap the MA for the calculations part.

Like something of wikipedia,

Quoting 
+DI = 100 times exponential moving average of +DM divided by average true range
−DI = 100 times exponential moving average of −DM divided by average true range
The exponential moving average is calculated over the number of periods selected, and the average true range is an exponential average of the true ranges. Then:
ADX = 100 times the exponential moving average of the absolute value of (+DI − −DI) divided by (+DI + −DI)
Variations of this calculation typically involve using different types of moving averages, such as a weighted moving average or an adaptive moving average.

So the idea is to change all the MAs used in calculations for +DI, -DI, ATR and ADX. =)

Started this thread Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Azrael View Post
Thanks for the reply Fat Tails!

Actually, I was trying to get an ADX with the EMA reference in it to then substitute with the various MAs like HMA, ZELMA, T3, etc for experimentation =)

Something like the MACDplus in the forums where you can just swap the MA for the calculations part.

Like something of wikipedia,


So the idea is to change all the MAs used in calculations for +DI, -DI, ATR and ADX. =)

This is definitely possible, but it is a bit of work to code it.

Reply With Quote
  #5 (permalink)
 Azrael 
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
Posts: 72 since Jul 2012
Thanks Given: 39
Thanks Received: 9


Fat Tails View Post
This is definitely possible, but it is a bit of work to code it.

Sent you a PM, if you haven't seen it.

Maybe continue from there =)

Started this thread Reply With Quote
  #6 (permalink)
kaan
Kampala + Uganda
 
Posts: 7 since May 2014
Thanks Given: 3
Thanks Received: 1


Azrael View Post
Hi guys,

I read somewhere that there is a version of the ADX/DMI that is calculated using EMA instead of Wilder's formula.

I couldn't find it in the forums, does anyone have it?

Thanks in advance =)


Azrael, did you ever succeed in achieving the ADX based on EMA.

Am coming from a forex background and tried Fat Tails advice of 2/(n+1) = 1/n but it hasnt helped.
FxPro has MT5 which has both types of ADX, I played around with the inputs but failed to get matches.

Please share it if you ever succeeded, this thread seems a dead horse but I will try.

Thanks

Reply With Quote
  #7 (permalink)
 Azrael 
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
Posts: 72 since Jul 2012
Thanks Given: 39
Thanks Received: 9


kaan View Post
Azrael, did you ever succeed in achieving the ADX based on EMA.

Am coming from a forex background and tried Fat Tails advice of 2/(n+1) = 1/n but it hasnt helped.
FxPro has MT5 which has both types of ADX, I played around with the inputs but failed to get matches.

Please share it if you ever succeeded, this thread seems a dead horse but I will try.

Thanks

Hey,

Fat Tails made it for me

I uploaded it on BMT here: https://nexusfi.com/local_links_search.php?action=show&userid=31270&sort=d

I no longer use it actually (I'm mostly a stock investor now) and I'm using a different set of indicators.

But I hope it is helpful for you!

Warmest regards
Azrael

Started this thread Reply With Quote
  #8 (permalink)
kaan
Kampala + Uganda
 
Posts: 7 since May 2014
Thanks Given: 3
Thanks Received: 1


Azrael View Post
Hey,

Fat Tails made it for me

I uploaded it on BMT here: ....

I no longer use it actually (I'm mostly a stock investor now) and I'm using a different set of indicators.

But I hope it is helpful for you!

Warmest regards
Azrael


Thanks Azreal, but am not an elite member, is it ok to post the indicator here

Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


kaan View Post
Thanks Azreal, but am not an elite member, is it ok to post the indicator here

Even if the indicator is posted here, elite membership is required for downloading it. At least that was my understanding.

Reply With Quote
  #10 (permalink)
kaan
Kampala + Uganda
 
Posts: 7 since May 2014
Thanks Given: 3
Thanks Received: 1



Fat Tails View Post
Even if the indicator is posted here, elite membership is required for downloading it. At least that was my understanding.

My thanks to you Fat Tails for writing the indicator, I will miss it for now but will get it someday.

May the edge be with you.

Reply With Quote




Last Updated on October 21, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts