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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X