Can I add a Second Timeframe / Bar Series where I can make the period variable, like below.
BarSeries1SMA = SMA(BarsArray[1], iSMAPeriod);
To put a use case to it, I would like to confirm trend on a longer timeframe, but trade on the shorter timeframe and I would then be able to set the period in Optimization.
I am guessing no since I tried and got this message:
Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner.
If this is not supported, how is this best accomplished?
Comment