![]() |
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
|
Hi guys I wrote a strategy and I would like to optimize it with Ninjatrade optimizer. However when I get to the screen it gives me a input of 1;1;1 (min,max, increments)
I don't understand how to use this it not a simple EMA strategy. It has multiple variables from parabolicSAR, EMA, candle, Volume. when I get to the optimizer screen and it says that Parameters 169(myinput0) was the best optimization I don't understand what it changed. My question is where can I see what it changed. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
wallstreetking, can you please clarify your question? When you optimize, it will run through the parameters you provide. The min/max/increment format lets you choose the minimum value, max value, and the increment to test, so for an example, 2;10;2 means it would start at 2 then test 4, 6, 8, and finally 10. Then in the results page, the analyzer will show you which parameters gave you the highest performance (keep in mind you also choose which metric to optimize on, be it max profit, max profit factor, min drawdown, etc).
In the attached screenshot, I ran the optimizer with the slow setting 10;20;2 and left the fast setting at 25. The optimizer tab then shows the most profitable slow setting is 18.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
|
I have attached 2 Files. One is showing my strategy, and the second one is the optimizer window. What I dont understand is what is Ninjatrader optimizing. My strategy is not a simple EMA Cross over, it is more complicated than that and has more indicators. So What I want to know is when I run Optimizer which of the parameters are being changed. Is it the Open>Close or is it the weighted ==parabolic, or CrossBelow Bollinger etc.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
Hi again, for your strategy, none of the parameters are actually being optimized. In order for a period value or something like that to be able to be optimized, you must declare it as a variable. So, for example, instead of 14 for the bollinger value, you could use a variable called BollingerPeriod and set it to a default value of 14, and then you would be able to optimize it.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
|
So when put in 10;30;1 nothing is actually happening the strategy is not being optimized?????? can you clarify little more
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
wallstreetking,
I am responding on behalf of Austin. Essentially, you will need 1 variable as a user defined input for every input to your indicators that you are trying to optimize over. For example, say you are entering only with a MACD. You will need to have a SlowPeriod. FastPeriod and Smooth defined as user inputs if you want to optimize the MACD. For example if you call something in your code like EMA(20)[0] this 20 is the only period it will ever have as the 20 has been statically assigned. If you want to optimize this period, you will need to have a variable set up like "EmaPeriod", then call EMA as follows : EMA(EmaPeriod)[0]; This allows the optimizer to set your user defined variable and it will be reflected in your strategy code. Please let me know if I can assist further.
Adam P.
NinjaTrader Customer Service |
|
|
|
![]() |
| Tags |
| myinput, optimization, optimize, optimizer, parameters |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Input Series as Input | martinP | Indicator Development | 2 | 01-17-2011 05:15 AM |
| Optimizer doesn't allow uint as range input | symphys | Strategy Analyzer | 6 | 03-01-2010 08:34 AM |
| MarketDepthEventArgs - Clarification needed | ScoobyStoo | General Programming | 19 | 05-21-2009 04:29 AM |
| Clarification | Mike_32 | Installation and Licensing | 14 | 05-11-2008 01:49 PM |
| custom Dataseries as indicator input, or input to indi through underlying strategy | Nathamus | General Programming | 3 | 08-30-2007 12:04 PM |