Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to submit order that cancel on the close of the bar that the order is submitted

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

    How to submit order that cancel on the close of the bar that the order is submitted

    Hi,

    I have two bar series on my chart, 1 minute(primary) and 3 minute.

    I submit order using:
    EnterLongLimit(1, false, ...).

    However, the order is canceled one minute later. (I was expecting it would be canceled on close of a 3 minute bar since I use '1' for barsInProgress).

    What is the best way to have my order canceled on close of the 3 minute bar?

    Thanks.

    #2
    Hello hongchen2000,

    Thank you for your post.

    The orders will stay active as per the primary data series when using multi-time frame, in your case the 1 minute.

    Please see our Strategy: Keeping orders alive reference sample for more information:



    Please let me know if you have any questions.
    MatthewNinjaTrader Product Management

    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