Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any way to pause the "pending" order?

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

    Any way to pause the "pending" order?

    If we fire limit/stop orders with "LiveUntilCanceled=true" parameter,like

    myOrd = EnterLongLimit(..., true, ..., ..., .. ,...);

    is there any way, to pause that order on specific condition, and resume later, like?


    if (condition)
    {
    PauseOrder(myOrd)....
    }
    else
    {
    ReinstateOrder(myOrd)....
    }


    what would be the best workarounds?

    (to be more specific, i fire Exit-stop/limit orders at i.e. 14:00 and if not filled till 15:00, i want it not to fire between 15:00- 24:00 , and resume next day)

    #2
    Hello TazoTodua,

    Thank you for the post.

    Once you submit an order, you wouldnt be able to pause it specifically. You could cancel the order, or move it to a position where it would not fill. You could also use logic for this and submit a market order when the condition is true, otherwise, there is no order.

    This is something that would need to be handled with logic in your script as there is no paused state specifically. If you cancel an order, prior to canceling it you could collect its information such as the signal name price and quantity, then when this should be active you could resubmit that same order.

    I look forward to being of further assistance.

    Comment


      #3
      exactly, i thought that. Excellent (especially moving a price), thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 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