Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel Pending order

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

    Cancel Pending order

    Hello team,


    below code is for Enter long position

    if ((Close[0] > Open[0]) )
    EnterLong(Convert.ToInt32(LOT), @"Long");

    below this code will exit Long posiotion
    if (Position.MarketPosition == MarketPosition.Long)
    ExitLong(Convert.ToInt32(LOT), @"Long");

    But i was looking for how i can cancel long position order which is pending not executed

    Thank You​




    #2
    Hello siddhugaddi,

    A market order should not remain in pending, that is executed at the current market price. The pending state may be due to a conflict in your logic, do you have any other order methods in your logic? Can you otherwise provide more detail about which connection/account was used to submit the order?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X