I have a strategy that runs OnEachTick, the strategy has two buttons, Long/Short
If long is pressed and we are Flat it will submit a market order long and opposite for short.
EnterLong(TradingContracts, "Long 0");
OnExecutionUpdate i catch the entry and sets stop and target.
TradingSLOrder = ExitLongStopMarket(0, true, Position.Quantity, TradingInitialSL,"Stop loss", "");
TradingTPOrder = ExitLongLimit(0, true, Position.Quantity, TradingInitialTP + (TradingEntryTargetOffset * TickSize), "Profit target", "");
This works great in SIM and on a Rithmic account.
On Tradovate accounts i have a issue.
When my target is hit it seems that some times it Re-Enters double as if tradovate does not enter market fast enough and then the strategy enters again on the next tick.
Is there something different with tradovate compared to Rithmic and Sim account that makes it so i should do some differant checks.
or is there something different in the way it executes orders or in the sequence it does the different things in. ?

Comment