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.
    JasonNinjaTrader Customer Service

    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.
        JasonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mizzouman1, Today, 07:35 AM
        0 responses
        3 views
        0 likes
        Last Post Mizzouman1  
        Started by i019945nj, 12-14-2023, 06:41 AM
        6 responses
        66 views
        0 likes
        Last Post i019945nj  
        Started by aa731, Today, 02:54 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by BarzTrading, Today, 07:25 AM
        0 responses
        3 views
        0 likes
        Last Post BarzTrading  
        Started by ruudawakening, Today, 12:58 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X