Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get total trades in walk forward optimization

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

    Get total trades in walk forward optimization

    I currently have my own custom OptimizationFitness and do some weighting of performance based on number of trades. I can get number of trades by strategy.SystemPerformance.AllTrades.
    Count. However my question is,how can i get the total number of trades for run of walk forward optimization. Also to add, how would I get the total net profit and max drawdown for the entire set of optimization.

    #2
    Hello proptradingshop,

    Thank you for your post.

    Parameters are determined from optimizing the In Sample Optimization Period and then those parameters are then used to backtest the Out Of Sample Test Period. As such, each result listed is a different backtest, using different parameters. Since they are separate backtests, the additional displays are not available for the merged results.

    There is an open feature request to be able to view the combined results for these statistics. I will add your vote to this feature request, it is being tracked under SFT-632.

    Please let us know if you have any further questions. ​

    Comment


      #3
      thank you NinjaTrader_Gaby, this makes sense as to why when adding print logs I can see each iteration with different values. Thank you for the explanation. If I can ask one more follow up question for walk forward optimization. If I want to go live then I am assuming I would manually have to run the optimization and update my parameters accordingly after the strategy has been live for each iteration of the number of days I used for my test period? Or can NT handle this automatically?

      Comment


        #4
        Hello proptradingshop,

        Apologies, I'm not clear on what you're asking.

        If I want to go live then I am assuming I would manually have to run the optimization and update my parameters accordingly after the strategy has been live for each iteration of the number of days I used for my test period?
        Are you asking if you have to manually update the Walk Forward Optimization parameters / strategy template from the results, or will they update themselves? If so, no they will not update automatically. You will need to manually change the optimization period or saved strategy parameters.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        89 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X