When I add a print statement to my strategy I get different backtest results. The log shows the error "Error on calling the 'OnExecution' method for strategy 'BBSqueezeV4ShortFriday': Object reference not set to an instance of an object."
Without the print statement I don't get this error and I don't understand why.
The print statement in question is at line 137 and prints the "stopOrder" (Print("stopOrder = " + stopOrder.ToString())
.Can you help?
The parameters I'm using are a 60min chart of EURUSD currency from 01/01/2009 to present day. All other settings are default. I'm using version 6.5.1000.14
Thanks,
Mark

Comment