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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X