Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inconsistent Backtesting

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

    Inconsistent Backtesting

    Hi;

    When a colleague and I have independently backtested the same strategy, NT spits out significantly different results. On one occasion, we both downloaded the data from FXCM and on another, we both imported third party data. Each test produced varying results. Furthermore, an analysis of the data from FXCM showed an average difference of 1pip for each row of data.

    1. If we are both using the same strategy, parameters and data, why are we receiving different strategy results?
    2. If we both import the same data for the same time frame from the same source (FXCM), why is the date in the files themselves different from one another?
    3. If this is the case throughout, how can any backtesting in NT be considered reliable?

    Thanks to all in advance.

    #2
    Hello s.jussen,

    A good place to start would be printing the bar time (and optionally the Open, High, Low, and Close) to see that the data seen by both strategies is exactly the same.

    For example:

    Print(Time[0]+" | "+Open[0]+" - "+High[0]+" - "+Low[0]+" - "+Close[0]);

    Prints will go to the output window. (Tools -> Output Window...)

    Can you save these from each computer? (Right-click output window -> select Save As... -> give unique names -> click Save)

    Once saved, please attach both files to your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Print(Time[0]+" | "+Open[0]+" - "+High[0]+" - "+Low[0]+" - "+Close[0]);

      You want me to add this into the code itself? Or is there an easier way to execute this demand?

      Comment


        #4
        Hello s.jussen,

        The idea is to add the print to the strategy code so that you can understand why the strategy code is behaving differently between machines.

        The first step of which is ensuring the data is exactly the same between the machines by printing the bars the strategy is processing.

        Please add these prints, save the output, and then post these in your next post.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 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
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X