I'm trying to better understand how a strategy I've built is operating. The strategy is constructed using the IOrder structure including "OnOrderUpdate(IOrder order)", "OnExecution (IExecution execution)", and OnPositionUpdate(IPosition position) elements.
When Print commands or Alerts are inserted into these elements the strategy seems to fall apart. It should be noted, I've created two near identical strategies, one for backtesting and one for live trading. The only difference is the backtesting strategy calculates on bar close, while the live strategy calculates within the last three seconds before a bar ends.
There is clearly a gap in my understanding. Any insight on why these commands are causing such grief when placed in these elements of the code?
As always, thanks
Shannon

Comment