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.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get total trades in walk forward optimization
Collapse
X
-
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.Tags: None
-
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.
-
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
-
Hello proptradingshop,
Apologies, I'm not clear on what you're asking.
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.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?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment