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 rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X