Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Limit Order Exits

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

    Strategy Limit Order Exits

    On SIM, some times the strategy triggers order filled when the target price is traded (but not through it). Other times it does not if it does not trade through it. Example: On my SIM account a strategy was running in the ES today. Price trades down to the target but not through it. Strategy does not exit. A few minutes later, it trades down to that exact price again and again does not trade through it but this time strategy exits at that price.(I always have fill type = Default.) In that situation the fill would not happen in a brokerge account since the exit is a limit order at the exchange that would not trigger until it trades through it.


    Is the exit treated the same in a live account? If so, the chart and strategy and the live account could get out of sync as the strategy will trigger filled and flat when the price touches, where the actual brokerage account will still be sitting with the target and the stop order until it trades through the price and gets filled. if it does not trade through the price, then there is a problem.

    Does Ninja trader treat limit exits the same in live vrs.SIM? Does it know or check that the fill from the brokerage account has or has not occurred? Otherwise it could show filled on the chart and not actually be filled and would not continue to manage the trade?

    Thank you.

    #2
    Hello Slimm,

    Welcome to our forums.

    Simulated is not the same as a live account. Please see this article on some expected differences.


    A limit order doesn't necessarily have to "Trade through" the price. When you set the limit order, you're saying "I want to be filled at this price or better." If someone agrees to this price then buyer and seller have met and the trade is made. Your fill isn't determined by what happend historically but rather the current market dynamics.

    You can set how NinjaTrader will behave in the event your order is rejected with RealTimeErrorHandling.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Generally, limits will not get filled if the price does not trade through. (Trading ES) If the limit order does not get filled at the account, will the strategy show the exit on the chart and consider the trade closed?

      If so they will be out of sync.

      Does it know or check that the fill from the brokerage account has or has not occurred? Otherwise it could show filled on the chart and not actually be filled and would not continue to manage the trade?

      Comment


        #4
        Hi Slimm,

        The state of the order is reported by the broker. NinjaTrader then interprets this information and determines if there should be a fill. Please see this page which displays the potential order states.

        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          So given the state of the order condition, the stategy will not consider the positon closed and will contimue to manage the trade until the broker reports the limit order as filled, no matter what has happened to the price?

          Comment


            #6
            Slimm,

            Yes this is true if you are using strategies in real-time and connected to a live broker account.

            It will work differenly during a backtest or on a simulated account.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            111 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            59 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            38 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            42 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            78 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X