NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 10-23-2011, 12:20 PM   #1
wallsteetking
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
Default Optimizer My Input help clarification needed.

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.
wallsteetking is offline  
Reply With Quote
Old 10-23-2011, 01:57 PM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

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.
Attached Images
File Type: png optimizer.PNG (57.5 KB, 6 views)
NinjaTrader_Austin is offline  
Reply With Quote
Old 10-23-2011, 05:09 PM   #3
wallsteetking
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
Default

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.
Attached Images
File Type: jpg XAMPLE.jpg (43.3 KB, 7 views)
File Type: jpg XAMPLE2.jpg (202.2 KB, 7 views)
wallsteetking is offline  
Reply With Quote
Old 10-23-2011, 09:23 PM   #4
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

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.
NinjaTrader_Austin is offline  
Reply With Quote
Old 10-24-2011, 02:01 PM   #5
wallsteetking
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 7
Thanked 1 time in 1 post
Default

So when put in 10;30;1 nothing is actually happening the strategy is not being optimized?????? can you clarify little more
Attached Images
File Type: jpg xample 3.jpg (251.3 KB, 8 views)
wallsteetking is offline  
Reply With Quote
Old 10-24-2011, 02:12 PM   #6
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

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.
NinjaTrader_AdamP is offline  
Reply With Quote
Reply

Tags
myinput, optimization, optimize, optimizer, parameters

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 03:18 PM.