jbeninga
03-18-2007, 04:51 AM
Don't know if this is pilot error on my part or not.... but I added the following line to my Initialize() method.
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
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