This is a departure from NT7 because what I'm really doing is converting indicators that did generate a constructor for my strategy in NT7.
How to reproduce.
1. Create a class, derived from type Indicator.and change the inheritance from Indicator to any class of type Indicator.
2. You can call the base classes if you want but either way, Ninjascript will not generate the code needed to use the derived class in a strategy.
The derived indicator does work when you load it onto a chart, but without a constructor, there is no way to call it from a strategy. I know - I could copy the code from the original indicator and simply inherit from indicator, but that leaves the old "duplicate code" issue which is not good programming practice. Besides, what I'm doing is supposed to work. In fact, everyone should inherit instead of copying code.
Thanks again guys.
Comment