many of implemented indicators are different compared to original.
in case of Wilders indicator, one of the reason would be optimization: Welles was calculating practically everything manually, so he was optimising calculations in favour of calculation speed on the cost of precision.
ATR[i] = ATR[i-1] + ( TR[i] - TR[i-n] ) / n; // n is the ATR period | This is the SMA(n, TR) that mt4 uses. |
ATR[i] = ( ATR[i-1] * (n-1) + TR[i] ) / n; // n is the ATR period | This is the MMA(N, TR) which equals EMA(2N-1, TR) original. |
ATR[i] = ATR[i-1] + (TR[i] - ATR[i-1]) / n; // n is the ATR period | Same but without magnifying round off errors. |
ATR[i] = ATR[i-1] + (TR[i] - ATR[i-1] ) * 2/(N+1); | This is EMA(N, TR) that some other platforms use. |
Thanks for your explanation! It is now clear for me why the formula that MT4 uses is different than the original formula.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I was studying Average True Range indicator that I realized the calculation used in standard MT4 indicator is different than original formula. The calculation of ATR in MT4 is based on following formula:
But the original formula as described in the book New Concepts in Technical Trading Systems is: