I have a chart that have grown used to manually trading that I am now trying to build a strategy for.
This chart has multiple timeframes on it already and indicators associated with those timeframes.
I created a strategy in Strategy Builder that of course doesn't know about the multiple timeframes/data series on the chart that I use.
I'm okay with unlocking the code if necessary. But how would I reference these secondary/other data series/bars in the Strategy NinjaScript?
Output when I try to display the values to the Log show that, even though there are 4 data series on the chart, when I trigger the strategy on this chart, the strategy still can not reference anything besides the primary.
BarsInProgress = 0, and CurrentBars[0] have data. CurrentBars[1] is an out of range index.
ChartControl.BarsArray.Count = 1.
1) Is there a way I could dynamically make the strategy understand it's being run on a chart that already has multiple data series on it?
2) If I have to use AddDataSeries() in the Ninjascript for the strategy to be aware of, how would I distinguish these script Added Data series/bars from the ones that are already on the chart I'm using? I'm hesitant to remove my on data series from my chart because my indicators are already using them.
Thanks,
Q

Comment