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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        56 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        132 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X