I have downloaded the Replay MES (Micro ES) data for the week of Feb 27 (Sunday night) through March 4 (Friday night). Further, I removed (deleted) all MES Historical Data.
Why is it then, when I start the Replay Connection that Historical Data is downloaded and displayed on my replay chart?
So, okay... whatever, it's loaded. In the Playback control window, I use Go To.. to set the date/time I want to start from. In this case, it's Feb 27, 7:39:59 PM, just before another candle is rendered. I then load and enable my strategy.
WHY DOES NT8 APPLY THE STRATEGY TO ALL THE HISTORICAL DATA THAT WAS LOADED & DISPLAYED? It shows all the "potential" trades that MIGHT have happened. Note that these trades are bogus because they are done on the 5-minute candle, not per price change which my strategy uses. Please explain the logic in doing this - makes no sense.
This is causing an error in the OnExecutionUpdate upon session close:
protected override void OnExecutionUpdate(Cbi.Execution execution, string executionId, double price, int quantity,
Cbi.MarketPosition marketPosition, string orderId, DateTime time) {
if (execution.Order != null) {
Order order = execution.Order;
Print("*** EXECUTION Order Name: " + order.Name + " | State: " + order.OrderState + " | Entry Signal: " + (order.FromEntrySignal == null ? "" : order.FromEntrySignal));
Error from Output window:
*** EXECUTION Order Name: Exit on session close | State: Filled | Entry Signal:
Strategy 'MyStrategyName/182715530': Error on calling 'OnExecutionUpdate' method on bar 551: Object reference not set to an instance of an object.
As you can see, the error is occurring in the FromEntrySignal property. Even with the null check added the code (already there as shown), still get the error.
Here's the chart at Bar 551. It isn't the first session close of the historical data that NT8 decided to load.
The full Output window text is attached. TraceOrders is set to true.
Please help!
Thanks,
Matt

Comment