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

Multi timeframe backtesting

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

    Multi timeframe backtesting

    Hi,

    I tried to backtest a multitimeframe strategy between 2006 and now, but it doesn't take any trade before 2009 (without reason as all the data is well loaded). I tried to backtest another strategy (Moving average crossover, native in NT8) with the same parameters and it trades before 2009. I checked the code several times but can't figure out the issue, does't it come from the fact that I use two data series with the first strategy and not with the MA cross?

    Found out why : the CQG continuum doesn't provide daily data before 2009... while I have minuts data since 2006. A bit strange

    Thanks,
    Last edited by WalBen; 01-23-2017, 08:10 AM.

    #2
    Hello WalBen,

    Thank you for your note.

    To have backtest run on locally stored data, go to Control Center>Tools>Options and selecting the Market Data category. You’ll then uncheck the box next to “Get Data from Server”. This will force NinjaTrader to use its locally stored cached data and to download data only when that data is not already available.

    After making that change and confirming you have that data locally stored, do you see trades pre 2009?

    If not, what indicator methods are you using as part of your strategy?

    Have you added print statements to check whether your conditions are becoming true? I’ve provided a link to a youtube video which covers an example of using prints to understand behavior:

    Dive into manipulating C# code from within an unlocked NinjaScript strategy using the NinjaScript Editor.NinjaTrader 7 is an award winning end to end online ...


    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sidlercom80, 10-28-2023, 08:49 AM
    166 responses
    2,233 views
    0 likes
    Last Post sidlercom80  
    Started by thread, Yesterday, 11:58 PM
    0 responses
    1 view
    0 likes
    Last Post thread
    by thread
     
    Started by jclose, Yesterday, 09:37 PM
    0 responses
    6 views
    0 likes
    Last Post jclose
    by jclose
     
    Started by WeyldFalcon, 08-07-2020, 06:13 AM
    10 responses
    1,414 views
    0 likes
    Last Post Traderontheroad  
    Started by firefoxforum12, Yesterday, 08:53 PM
    0 responses
    11 views
    0 likes
    Last Post firefoxforum12  
    Working...
    X