
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
Implemented, see attached.
(they produce identical results, verified, but figured I'd do both for sake of completion since this was easy changes)
Unless anyone knows differently, I'd suspect that the original ATR calculation uses SMMA not for "smoothing", but because Welles Wilder and/or his readers only had pocket calculators rather than computers, and calculating an SMA was comparatively time-consuming in 1978.
Implemented, see attached.
Implemented, see attached.
(they produce identical results, verified, but figured I'd do both for sake of completion since this was easy changes)
Muchos gracias to all contributors. Problem solved...
oz
Excellent, thanks for posting.
One q: Is there a reason why the indicator was not processing the latest value? Suggest to change to for(i=0; i<limit; i++) AtrBuffer[i]=iMAOnArray(TempBuffer,Bars,AtrPeriod,0,MODE_SMMA,i); // this is the smoothed average proposed by jjc