Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tin34, Today, 03:30 AM
      2 responses
      15 views
      0 likes
      Last Post Tin34
      by Tin34
       
      Started by sastrades, Yesterday, 09:59 AM
      2 responses
      29 views
      0 likes
      Last Post brucerobinson  
      Started by ETFVoyageur, Today, 12:52 AM
      1 response
      15 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by lollers, Today, 03:26 AM
      0 responses
      10 views
      0 likes
      Last Post lollers
      by lollers
       
      Started by aliyahany, Today, 03:16 AM
      0 responses
      2 views
      0 likes
      Last Post aliyahany  
      Working...
      X