I'm referencing OnExecutionUpdate the entry orders to place the two initial exits once filled, and I am using ChangeOrder in OnBarUpdate() to call change to the two exits which have different order object names.
The problem is that once the SMAFast is reached, it will sell 1, but it will also sell the other. I am guessing that on the next onbarupdate, it just reloads the SMAFast order again to exitlonglimit. But I don't want that. Once that order is filled, that order should be dead.
Any ideas?
Comment