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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X