I amended the SampleOnOrderUpdate to remove the tokens comparisons and compare orders directly (attached).
Strategy seems to work fine when using historical data (from market replay). When I start (play) the market replay it goes weird.
1. chart on the top shows original chart with the strategy. I highlighted place from where market replay was started.
2. chart in the middle is a chart with no strategy applied but on which somehow entry and stop places from original chart (1) are displayed.
3. chart 3 is what the original chart (1) looks like after reloading NinjaScripts on the chart.
I also noticed that after removing the strategy from chart 1 it looks exactly like chart 2.
Displaying entries on chart number 2 seems like a bug.
As for strategy itself - is there anything else (apart from removing Token values) I need to change for real-time (market replay) orders to make IOrders work correctly under NT7 ?

Comment