I have a SetProfitTarget() with isMIT = false when first set it in OnStateChange(). In OnBarUpdate(), I later have SetProfitTarget() with isMIT=true. But it does not get me out with a market order. I use playback data with this. You can reproduce the issue on /ES 03-24 on December 20th, 2023 . Have long entry limit order at 2pm, with the limit price at 4821.75. After entered the long position, at 2:10pm, i decided to SetProfitTarget to breakeven at 4821.75 with isMIT=true to get me out at breakeven. 5minute later the high touch 4821.75, but the order never execute as market order. It just sit there. So does isMIT work? Can you please confirm?
SetProfitTarget(entrySignalName, CalculationMode.Price, Position.AveragePrice, true);
Comment