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!
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
NinjaTrader
Optimization - keep best # results per data series
Collapse
X
-
Optimization - keep best # results per data series
When running an optimization that includes optimizing on data series, is there a way to only keep the best # of results **per data series**, instead of the best # total? I want to see the top 5 results from each data series for example.Last edited by andrewnavratil; 03-23-2024, 06:00 AM.Tags: None
-
Ok understood, thanks.
Do you know if there's anything at the api level to hook into those results?
I discovered there are api hooks into the optimization process and performance metrics - such as OnOptimize(), Strategies[0].OptimizationParameters. I didn't see a method directly related to the results or best results however. Maybe I'm missing something in the docs.
For a somewhat related example, I am utilizing SetState(State.Terminated) in the State.DataLoaded method to get a custom set of data values for the optimization results that don't fit nicely into integer increments (so it only executes iterations on values of 5;21;1 and then 25;125;5 for example, all grouped in one results list). Hooking in like that to limit the number of results per data series would work too.
Comment
-
Hello zagier,
You can access the system performance collection in the optimizer type by using Results, you can see the genetic optimizers code for an idea of how to use that.
I couldn't comment on the SetState example you provided, you could certainly try that but I am unsure if that would let you limit the results per data series. If you wanted to isolate the data for a specific series all I could suggest would be to run a optimization and do not select optimize data series.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,404 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
95 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
7 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
159 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
8 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment