Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Market Order: Keep alive for x number of bars?

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

    Stop Market Order: Keep alive for x number of bars?

    Good morning,

    I am using Ninja 8 strategy builder. Placing a stop market order to be filled when price rises to the stop. It only stays valid on the current bar, then disappears on the next. Is there a setting to use to keep the stop market order alive for 2, 3, or any number of bars? I am using the price: low touch of a moving average to trigger the stop market order but I need to keep it alive for 3 or 4 bars until the price can rise back to the order..

    Thanks!

    #2
    Hello ms8274!,

    Thanks for your post.

    The strategy builder uses the managed approach to order placement and as such an entry order that is not filled is automatically canceled on the next bar. Reference: https://ninjatrader.com/support/help...d_approach.htm

    If the entry condition were to remain true then it would continue to submit the stop order. However, it sounds like this is not the case.

    The strategy builder does not provide the ability to create a counter or offset a user variable so there are no means to count bars since an event.

    You can unlock the strategy and use a different order method that would leave the order in place until you canceled it (or it filled). For example: EnterLongStopMarket(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double stopPrice, string signalName) Reference: https://ninjatrader.com/support/help...stopmarket.htm

    Unlocking the code would also allow you to create a counter for the bars since first entry condition.

    Once the strategy code in unlocked you would no longer be able to use the strategy builder on that strategy.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    27 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Working...
    X