Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting strategy with multiple indicators utilizing different timeframes

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

    Backtesting strategy with multiple indicators utilizing different timeframes

    Hello NinjaTraders,

    I am trying to backtest a strategy - in this strategy I am calculating 4-6 different indicator values. Every indicator is set to return the value based on different timeframe, ranging from 5 min to 1 day (I am not using multi-timframes for single indicator, every unique indicator is only returning value for only one time frame)
    Is it possible to backtest this kind of strategy through Strategy Analyzer? I am unsure because of the fact that you always need to select data based on which strategy analyzer is going to run the test (last x min, days etc.).

    Thanks for any feedback.
    Regards,
    David


    #2
    Hello David,

    Thanks for your post.

    Yes, you can test multi time frame in the strategy analyzer.

    "I am unsure because of the fact that you always need to select data based on which strategy analyzer is going to run the test (last x min, days etc.)." When you create a script, the script will adopt the chart bars (when applied to a chart) as the primary bars (BarsArray[0]). In the strategy analyzer you are specifying the data that would be the primary bars. Your script identifies all of the added data series.

    When using multiple time frames in the strategy analyzer, you would need to ensure that you have the type of historical data the bars use (Tick, Minute, or Day) or a live connection to your historical data provider. Note that most data provider have limits in how much and what type historical data may be available and you would need to know the limits of what is available. Here is a link to the NT8 help guide section that covers what historical data is available by provider: https://ninjatrader.com/support/help...y_provider.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X