Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resubmit order

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

    Resubmit order

    I am running a managed strategy that submits entry stop live until cancelled orders however I wanted to have certain 'blackout' periods of the day where these orders wouldn't trigger...

    I don't think there is anyway to do that once the order has been submitted, but is there a way to 'copy' the order, cancel it during these periods, then resubmit it?

    Thanks

    #2
    Hello and thank you for your post,

    The following is an example of how to create a blackout period with a time filter: http://www.ninjatrader.com/support/f...ead.php?t=3226

    You can then use IOrder to track the state of an order and cancel it at the desired time: http://www.ninjatrader.com/support/h...tml?iorder.htm

    You could check to see if the order was not filled
    if (order.OrderState != OrderState.Filled)

    An example of using IOrder and OnOrderUpdate() to manage orders: http://www.ninjatrader.com/support/f...ead.php?t=7499

    An example of using CancelOrder(): http://www.ninjatrader.com/support/f...ad.php?t=18890

    Please let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X