Discussion of article "Implementation of Indicators as Classes by Examples of Zigzag and ATR"

 

New article Implementation of Indicators as Classes by Examples of Zigzag and ATR is published:

Debate about an optimal way of calculating indicators is endless. Where should we calculate the indicator values - in the indicator itself or embed the entire logic in a Expert Advisor that uses it? The article describes one of the variants of moving the source code of a custom indicator iCustom right in the code of an Expert Advisor or script with optimization of calculations and modeling the prev_calculated value.

Author: Александр Чугунов

 

Hi


I'm trying to get the ATR of MACD. It would be helpful if you modify the code and make it something like MovingAverageOnArray ones so that it can take an array as input and use it's values instead of just the close. Same goes with RMA (the harder one to code and part of ATR calculation) having these as libraries can be useful in many cases that many people not paying attention to. If you would be kind enough and provide these many like me would appreciate it.


thanks

Reason: