Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting - historical fill processing

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

    backtesting - historical fill processing

    I read in the Help how limit orders are filled in backtests, and the options to choose from - especially that limit orders with the default option are only considered filled if they are penetrated and not just touched.

    I can't see any reference for the same info regarding market orders (presumably the open of the next bar?) and stop orders (presumably filled if price touched?)

    Please could you confirm the processing that's done for mkt & stop orders, along with any points of interest, or provide a link to where I can it?

    Thanks

    #2
    Hello,

    Please review this link:

    Look at the Default and Liberal settings.

    In a live situation, it will depend on your broker since the order should be working in the market.

    Market orders are filled at the next available price, where ever that is.
    DenNinjaTrader Customer Service

    Comment


      #3
      That documentation is specifically the documentation that I was referring to which doesn't mention market or stop orders - even if it is quite useful to have the option to choose the algorithm, there's no info on these 2 order types and their handling by the Analyzer in backtests.

      It covers only limit orders (and stop-limit orders).

      So, market orders and stop orders in historical backtest execution. How does the strategy analyzer do it?

      Which price does it take from the OHLC bar?

      How about trading through the price in the case of stops? Is that decided by the Default / Liberal / custom algorithms?

      Comment


        #4
        adamus, market orders are filled on the next bar open which is the next possible location after the signal was generated to act upon it, stop orders are just market orders if triggered, for stop limit orders the same limit order consideration as explained in the doc's would apply.

        Comment


          #5
          OK, but are stop orders triggered when touched, or triggered when the price is traded through, or is it dependent on choosing the Default or Liberal backtest fill algorithm?

          Thanks

          Comment


            #6
            They would be triggered when touched - the fill algorithm choice is relevant for stoplimit / limit orders.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            65 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            149 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            162 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            99 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            286 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X