Do you have an example for best practices for extending the functionality of an "out of the box" NT8 indicator and do so such that the new custom indicator is NinjaScript available with added API?
I'm looking to add shading to the Donchian Channel indicator but only under certain circumstances. And to provide a boolean when the shading is occurring.
I see two ways to do this:
1. Copy and paste the code from the existing Donchian Channel indicator code that's provided. Then add the necessary code.
2. New class that inherits from the Donchian Channel class.
I was able to successfully do #1 for adding to a chart only. However, when I added more logic so that additional attributes are available in a strategy, I'm getting an index error that doesn't make sense.
Before I code any further, I was wondering if you have a such an example.
Thanks!
Matt
Comment