Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Submitted orders can be cancelled by itself

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Submitted orders can be cancelled by itself

    I am using the following code to submit orders in onBarUpdate():
    myOrderPrice = GetCurrentBid() - 0.10;
    myEntryOrder = EnterLongLimit(myOrderPrice);


    then quickly without calling CancelOrder(), the order is called by itself from checking the orderState inside of OnOrderUpdate():
    the OnOrderUpdate() is called several times, its OrderState is changing from
    submitted -> accepted -> working -> CancelPending -> CancelSubmitted -> cancelled

    Any possible reasons this order can be cancelled by itself?

    Thanks.


    #2
    I know the answer now, need to set isLiveUntilCancelled

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    7 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X