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
Optimiser not testing all possible values
Collapse
X
-
Optimiser not testing all possible values
I am aware of the "optimise data series" function that is built into the optimiser except this forces me to select a min, a max, and an increment value to optimise on. I would like to optimise across a wider range of time frames, such as, 1 min, 5 min, 15 min, 30 min, 1 hour, 1 day, all at the same time to find the one that best suites the strategy. I have created a parameter that accepts integer values from 1-6 where each integer corresponds to a different time frame being added to the strategy. I am using this to make a strategy that can be optimised to find the ideal time frame, exit condition, trade direction, etc for a given entry condition. every other aspect of the strategy functions how I intended accept for when trying to optimise all parameters at once. Upon completion of an optimisation I can see from the optimisation tab that not all the parameters were optimised. Some parameters just remained with a value of 1. If I adjust the optimisation settings to not optimise my time frame parameter then everything else runs smoothly and all possible values are tested. Adjusting the settings to ONLY test for the ideal time also works as intended. So all the parameters work when optimising independently but not all at the same time. What is preventing the optimiser from testing all the parameters at once?Tags: None
-
Hello cory360,
To clarify, you are wanting to optimize over multiple bar types, is this correct?
This would not be currently possible.
Would you like to submit a feature request for the NinjaTrader Development to consider adding functionality to optimize over multiple bar types to a future version of NinjaTrader?Chelsea B.NinjaTrader Customer Service
-
That is correct, I would like to optimise over multiple bar types.
And I know its not already supported in the optimiser, but like I said I was able to do it through the strategy coding. The optimiser just sees it as another parameter. It worked too, I was able to find the best time frame and bar type with it, except when optimising other parameters with it so when things stopped working.
Comment
-
Hello cory360,
You can get data using a BarsRequest() that is out of sync. This would you let you retrieve any data you wanted.
However, this data cannot be supplied to an indicator call. So any manipulation of the data would need to be done within the script calling the data.
Below is a publicly available link to the help guide on BarsRequest().
The Strategy Analyzer does not have the capability to test multiple bar types in an optimization. Would you like to submit a feature request for this?Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Aviram Y, Today, 05:29 AM
|
0 responses
1 view
0 likes
|
Last Post
by Aviram Y
Today, 05:29 AM
|
||
Started by quantismo, 04-17-2024, 05:13 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 05:23 AM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
34 views
0 likes
|
Last Post Today, 05:15 AM | ||
Started by cls71, Today, 04:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
216 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
Comment