Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NT7 to NT8 Optimizer Metrics / Fitnesses
Collapse
X
-
Hello tmorgan4,
Thank you for your post.
Refer to the information at the following link: http://ninjatrader.com/support/helpG...on_fitness.htm
I would recommend comparing the NinjaTrader 8 Optimizer Fitnesses to the Optimization Types in NinjaTrader 7.
For example, Max Net Profit would use the following in NinjaTrader 7:
Code:public override double GetPerformanceValue(SystemPerformance systemPerformance) { return systemPerformance.AllTrades.TradesPerformance.GrossProfit + systemPerformance.AllTrades.TradesPerformance.GrossLoss; }
Code:protected override void OnCalculatePerformanceValue(StrategyBase strategy) { Value = strategy.SystemPerformance.AllTrades.TradesPerformance.GrossProfit + strategy.SystemPerformance.AllTrades.TradesPerformance.GrossLoss; }
Leave a comment:
-
NT7 to NT8 Optimizer Metrics / Fitnesses
I would like to convert the custom optimizer types that another user was kind enough to share in this thread. (The original NT7 script is attached here).
Looking through the scripts I can see several changes from NT7 to NT8 but I'm stuck at the error on on 'GetPerformanceValue'.
Any help would be greatly appreciated!Attached FilesTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
17 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Leave a comment: