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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X