Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop order is getting cancelled if not executed within current bar

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

    Stop order is getting cancelled if not executed within current bar

    Hi, i'm trying to develop a simple breakout strategy

    The strategy is calculated on bar close.

    After every bar closes it's trying to fing a certain pattern within previous bars, and if it's found - it enters a long/short position on a buy/sell stop at certain price. But despite the stop order is GTC, it's getting cancelled if it's not executed during current bar.

    How can I make the order stay after the current bar closes?

    #2
    Hello kosmipt,
    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Please let me know the bar periodicity on which you are running the code.

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X