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 Javierw.ok, Today, 04:12 PM
    0 responses
    4 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    40 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X