Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,227 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    440 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    12 views
    0 likes
    Last Post FAQtrader  
    Working...
    X