Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop orders and gaps

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

    Stop orders and gaps

    Hi,

    I attach a picture of what my strategy is doing, so as to find out whether this is expected or not.

    There is a Short entry at 541,5. For piramyding, I use the order type:
    EnterShortStop, with a Stop 1 point below (540,5).


    Since the next bar after entry opens below the level 540,5... The stop is not executed... Is that expected??

    The stop is executed quite a few bars after (see the picture)

    How can I overcome this gap problems??

    Thanks for help!!

    Juan Rivera
    Attached Files

    #2
    Hi jriverac,

    That is the nature of those order types. You are not guaranteed the stop price since when the stop price is reached the order becomes a market order. Also, if you are using this in a backtest the discrepancy becomes even greater due to the nature of backtesting. Please see this article: http://www.ninjatrader-support.com/H...sBacktest.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,

      I also thought these type of orders would become market orders, but then they would sell at the open of the next bar if there is a gap. But, as you see in the picture, there is no selling in the next bar but a few bars later on, where the price is again within a range that includes the Stop Price.

      I fixed it manually, but I am trying to really understand how stop orders work.

      Comment


        #4
        It is probably attributed to the discrepancies in the article I linked you to earlier. Other than that you will need to debug it if you want to see exactly it is working. Use TraceOrders = true.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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