it has to be something to sync/share data series in strategy and indicator.
What I am trying to do is to plot a spread between 2 securities. I know it will be coming in next version but I need it now.
Hence I have series of doubles representing spread within strategy.
Now I need to plot it somehow. I added custom indicator into the strategy hoping that I can pass values from strategy into that indicator using public methods and variables.
However it appeared that Ninja StrategyAnalyzer works as following:
1. instantiate strategy
2. instantiate indicator twice
3. run strategy to the end
4. instantiate indicator again
hence all data I have set during running the strategy lost when indicator has been instantiated.
How can I manually sync data between strategy and indicator?
Comment