int myPeriod = BarsArray[0].Period.Value;
also tried:
int myPeriod = Bars.Period.Value;
with the following results.
1) Code compiled cleanly
2) Click "Backtest" in StrategyAnalyzer.
3) Backtest dialog box comes up but has no parameters (it is completely blank!)
4) Clicking on OKgenerates a System.NullReferenceException
I'm trying to create a larger timeframe view that is a multiple of the current period in a multibar strategy. So I need the Period of the base chart in order to cumpute the longer timeframe.
Thanks,
Jim
Comment