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

In/out of sample testing

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

    In/out of sample testing

    Hi all,

    We are working on an automated trading system and now have to integrate the strategy testing and validation part. For this we have the idea to:

    1. Select the strategies we have
    2. Automate the backtests on different timeframes, pairs, with controle on market types
    3. When our required settings are met like min profit factor, max hold time, .. we separate this strategy

    We now move to the validation part where we like test the strategy with;

    a: monte carlo
    b: forward testing

    My question now is the we want to prevent overfitting of the results. So:

    - How is it possible to do in/out of sample tests in the monte carlo simulations? I dont see much properties in the UI to create randomness in the dataset. How is this possible and how to prevent the overfit?

    - Bonus question : you have some suggestions that must need to integrated in the model to validate good probability strategies? (was thinking on robustness testing for introduce testing with delayed entries, exits, different candle lengths etc. But don't know if something like this is in NT8 already - or that plugins are available for this (free/commercial don't mather).

    Thx for all your replies and help.

    #2
    Hello micasa001, thank you for your post and welcome to the NinjaTrader forum.

    The data set for the monte carlo simulation are the trades made from a backtest, so you would need to test a different set of data, gather trade results, then generate another monte carlo normal distribution. A Walk forward optimization will allow you to pick an "in-sample" and "out-sample" data set.

    The performance you get from a strategy will depend on the strategy itself. You do have the ability to make your own optimizers and optimization fitness scripts.

    Please let me know if I can assist any further.

    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    3 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    8 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X