Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MultiTimeFrameOrders Exit Entry Sequence Backwards

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

    MultiTimeFrameOrders Exit Entry Sequence Backwards

    Dear NT,
    I'm frustrated with not being able to easily backtest on NinjaTrader with finer granularity. I've looked at the SampleMultiTimeFrameOrders.cs strategy and when I run it in the Strategy Analyzer, the Trades log shows the Exit time occurring before the Entry time for most trades. While I can analyze the chart of each trade individually with the finer granularity of a smaller timeframe, the backtest results are still inaccurate. Is there any way at all to get accurate backtest results in Ninjatrader where the Entry & Exit occur in the same primary bar?
    Thank you in advance.

    #2
    Hello tendrel,

    Unfortunately this is not supported as per the Strategy Analyzer. The Strategy Analyzer cannot calculate intrabar, it uses OHLC prices only.

    You could run the automated strategy while connected to the Market Replay connection. It will receive historical data in realtime which does allow intrabar calculations. More information regarding the Market Replay connection can be found at the link below.

    Comment


      #3
      Jason,
      Thank you for your reply. Are you saying that there is no way to accurately backtest a strategy on a more granular level than the primary timeframe? If this is the case, is this a feature that we can look forward to in a later release? If not the case, then how can we do so with accuracy?

      Comment


        #4
        Yes, unfortunately the Strategy Analyzer cannot use all data that occurs during a price bar. The Strategy Analyzer only knows OHLC prices of each price bar. You can run your strategy using the Market Replay connection with 'Calculate on bar close' set to False. This way the strategy is calculated on each incoming tick.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        77 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        45 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        27 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        62 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X