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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    49 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
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 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