I am looking for an example of making an indicator by inheriting from an existing one.
The one I want to inherit from is the ZigZag indicator, which takes one parameter - the deviation points - as a fixed value. This value is an input property.
What I want to do is to inherit from the calculation of ZigZag, and at the same time, I add one new option - the number of bars - in its property page. My intention is to use ATR(nbars) to make the deviation points dynamic. Anytime, the max of ATR and the fixed deviation value is used to calculate the ZigZag points.
Thank you very much!
Best Regards
David
Comment