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 samish18, 04-17-2024, 08:57 AM
        16 responses
        55 views
        0 likes
        Last Post samish18  
        Started by arvidvanstaey, Today, 02:19 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        8 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X