• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tecmisc1, Today, 09:57 AM
    0 responses
    2 views
    0 likes
    Last Post tecmisc1  
    Started by mbesha, Today, 09:26 AM
    0 responses
    1 view
    0 likes
    Last Post mbesha
    by mbesha
     
    Started by Brillo, Today, 08:58 AM
    0 responses
    4 views
    0 likes
    Last Post Brillo
    by Brillo
     
    Started by avrege, Today, 01:48 AM
    2 responses
    13 views
    0 likes
    Last Post avrege
    by avrege
     
    Started by markbb10, Today, 07:14 AM
    0 responses
    7 views
    0 likes
    Last Post markbb10  
    Working...
    X