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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X