Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting Question

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

    Backtesting Question

    Hello,

    Is there a way I can create an automation to run a backtest of a strategy for 1 year say 2022 but then run independently on year 2 , 2023 and provide results for both years?

    I want to test an in sample and out of sample year in one go. Not just run 1/1/22-12/31/23 but rather 1/1/22-12/31/23 and 1/1/13-12/31/23 in one go.

    Any ideas how to approach it?

    #2
    Hello johnny72,

    Thank you for your post.

    I don't think I am fully understanding your question. You mentioned, " Not just run 1/1/22-12/31/23 but rather 1/1/22-12/31/23 and 1/1/13-12/31/23 in one go"
    So you are saying you would like to see results from 1/1/22-12/31/23 and 1/1/13-12/31/23 (perhaps you meant 1/1/23-12/31/23?) from the same backtest?

    What you have described sounds similar to a Walk Forward Optimization, though that also includes an optimization of a parameter:

    You could always set up a parameter that does not affect the way the logic is processed and it would walk forward through time running the same logic and provide results over separate periods of time.

    Otherwise, you could consider running a backtest for the full period of time, then export the results via the Right-Click > Export menu and save them as an Excel file. You could then open them in a spreadsheet and manipulate the results as desired to see results for different periods of time.

    For more information regarding the Strategy Analyzer in general, please see the following section of the help guide:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Today, 04:58 PM
    0 responses
    9 views
    0 likes
    Last Post rhyminkevin  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    5 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    12 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    48 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    15 views
    0 likes
    Last Post bltdavid  
    Working...
    X