myExitOrder = ExitLongLimit(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double limitPrice, string signalName, string fromEntrySignal)
If isLiveUntilCancelled = false, which means this ExitLongLimit only survives for the length of one bar. Then I could repeat to call ExitLongLimit() in each OnBarUpdate().
If isLiveUntilCancelled = true, do I have to cancel this ExitLongLimit() in order to re-submit a new exit with different price?
I printed myExitOrder: no change for the orderId, but price has changed when I call ExitLongLimit() in 2nd time without a cancellation.
Order To String = orderId='bbb07527ca8845e9bb0222445e950b21' account='Sim101' name='Sell' orderState=ChangePending instrument='IBM' orderAction=Sell orderType='Limit' limitPrice=110.43 stopPrice=0 quantity=100 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=10 time='2020-09-15 10:55:53' gtd='2099-12-01' statementDate='2020-09-15'
Order To String = orderId='bbb07527ca8845e9bb0222445e950b21' account='Sim101' name='Sell' orderState=ChangeSubmitted instrument='IBM' orderAction=Sell orderType='Limit' limitPrice=110.42 stopPrice=0 quantity=100 tif=Gtc oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=10 time='2020-09-15 10:55:53' gtd='2099-12-01' statementDate='2020-09-15'
Comment