I am toying with the idea of implementing a multi-bars strategy.
I would like to Add() indicators to both the primary bars object and to a non-primary bars object from within the strategy in order to expose variables calculated in the indicators to the strategy.
These indicators are non-standard and were written by me, so they are not available within the strategy via standard Ninjascript indicator method calls.
I know how to add an indicator to the primary bars object of a strategy and to expose the indicator's variables to the calling strategy as illustrated in the following NT reference example:
However, I do not find any info on how to add an indicator to a non-primary bars object within a strategy in order to expose its variables to the calling strategy in a similar way.
Does anyone know how to do this?
Thanks in advance.
Comment