Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Different swing indicator values in Backtest VS Strategy historical data performance

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

    Different swing indicator values in Backtest VS Strategy historical data performance

    I have a multi timeframe strategy using swing indicator that I backtested, and performance results are different in the backtest window than within the strategy performance using historical data when I launched it.
    The starting date of the backtest and the bars loaded in the chart where the strategy is loaded are the same.
    I printed values of swing indicator, and they're different.
    I reloaded all historical data, and still same problem.
    I am getting 2610 printing Swing1.SwingHigh[0] in the backtest window, and 2610.75 in the historical data strategy performance (launching the strategy). f
    Instrument is ES-03-19 and Swing indicator BarsArray is 7 which is 7 minute. My entry conditions are on Bar in progress == 10 which is Range 1.
    I am running the backtest and the strategy on 1 minute chart.

    My understanding is: backtest and historical data performance should be the same when Data series, and bars loaded in backtest, and Chart Data series where the strategy is launched from are the same.

    Am I missing something ?

    #2
    Please note that this has been reoccurring. Here's my original post: https://ninjatrader.com/support/foru...alyser-results

    Just FYI, I tested this on Sample MA Crossover, and this problem didn't occur.
    And I am not using Playback.

    I think it only occurs with Multi Time-frame strategies.
    I attached a sample of my strategy where this discrepancy happens.
    If you start Test5 strategy from strategy analyzer on 1 minute chart, from 1/12/19 to today, and compare results on historical data performance for same strategy when enabled on 1 minute chart (bars loaded would be from 1/12/19 to today), Performance results will be different.

    Digging further with printing indicator values will show these discrepancies.
    Attached Files

    Comment


      #3
      Please disregard this thread.
      I tested Test5 on a different computer and this problem did not occur.
      I did a DB reset on the computer where this problem was occurring, and it fixed the problem.

      Thanks!

      Comment


        #4
        Hello YakusaTrader,

        I am glad you were able to resolve the behavior.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        79 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X