I tried backtested my strategy. I saw in the 'Log' tab error:
Error on calling 'OnBarUpdate' method on strategy 'EURUSD....numbers..': 'Add' method only can be called from within 'Initialize' method ?
I move this 'Add' method:
Add("$EURUSD",PeriodType.Minute, 5,MarketDataType.Bid);
to Initialize(), but nothing. Error still appear, if I try to make backtest.
What is the reason?
thank you.
Comment