NinjaTrader Genetic Optimizer - NinjaTrader Programming | futures io social day trading
futures io futures trading


NinjaTrader Genetic Optimizer
Updated: Views / Replies:54,128 / 197
Created: by piersh Attachments:19

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 19  
 
Thread Tools Search this Thread
 

NinjaTrader Genetic Optimizer

  #81 (permalink)
Banned: trolling
NYC + NY / USA
 
Futures Experience: Advanced
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Favorite Futures: EMD, 6J, ZB
 
kronie's Avatar
 
Posts: 798 since Oct 2009
Thanks: 216 given, 498 received


piersh View Post
Unfortunately, NT's optimization API doesn't provide this information (at least, I couldn't find a way to retrieve it).

In order to do what you want, you'll have to write a custom OptimizationType. I'd recommend doing this since it gives you much greater control over the results.

- take a look in your "My Documents\NinjaTrader 6.5\bin\Custom\Type" directory. you'll see the classes for the various built-in optimization types (eg. 'max. avg. profit' is in @MaxAvgProfit.cs.
- make a copy of one of these files, change the file name, the class name (to match) and the 'DisplayName' attribute, and have at it!

I have been using a custom method that limits the min/max avg. trades per day (it returns double.NegativeInifinity when there are too many or too few trades), and tries to maximize the expectancy per trade while minimizing the draw-down.

you can get the average number of trades per day like this:
 
Code
systemPerformance.AllTrades.Count / (Strategy.BackTestTo - Strategy.BackTestFrom).TotalDays

sorry for being so new to NT6.x programming, but I am going to need 2 introductory paragrahs, that help bridge the gap between this fine piece of work that you did and why I need it,

I have other canned strategies that I have bought / lease, but I haven't written any, nor do I use them to back / forward test ideas, so how would this fine piece of work benefit me?

thanks

Reply With Quote
 
  #82 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NT
 
gabga100's Avatar
 
Posts: 147 since Nov 2009
Thanks: 44 given, 69 received

Modyifing the optimisation type allow you to fine-tune how a combinations of parameters is "evaluated" against the others in an historical back-test .... profict factor being the default one is not the best one ... nor maximum profit

I would recommend that you read the miscellanous section in NT/downloads ... there is a lot about customized opt types ...

You know what you know but you do not know what you do not know.
You do not see things how they are, you see things how you are.
In life you do what you want but you do not want what you want.
Reply With Quote
 
  #83 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NT
 
gabga100's Avatar
 
Posts: 147 since Nov 2009
Thanks: 44 given, 69 received


This is what I have as Default optimization type , a risk adjusted Total profit :

 
Code
                            
public override double GetPerformanceValue(SystemPerformance systemPerformance)
   {
      if (
systemPerformance.AllTrades.Count <= ||
systemPerformance.AllTrades.TradesPerformance.Percent.AvgProfit == 0)
         return 
0;
      else{                
         return 
Math.Sqrt(systemPerformance.AllTrades.Count)*
(
systemPerformance.AllTrades.TradesPerformance.Percent.AvgProfit)/
(
systemPerformance.AllTrades.TradesPerformance.Percent.StdDev) ;
   }


You know what you know but you do not know what you do not know.
You do not see things how they are, you see things how you are.
In life you do what you want but you do not want what you want.

Last edited by sam028; January 10th, 2010 at 06:18 PM. Reason: nicer with [php][/php]...
Reply With Quote
The following user says Thank You to gabga100 for this post:
 
  #84 (permalink)
VIP Member
Chicago
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: IB
 
Posts: 11 since Jun 2009
Thanks: 8 given, 0 received

Piersh

The native GO in NT7 doesn't work properly. It looks like they had a go and then stopped without completing it. Your GO is something I use all the time on 6.5 and has become indispensable. Thanks for your massive contribution!

I know you said you were looking at it with NT7. Is it looking promising?

-thanks

Reply With Quote
 
  #85 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NT
 
gabga100's Avatar
 
Posts: 147 since Nov 2009
Thanks: 44 given, 69 received


goforbroke01 View Post
Piersh

The native GO in NT7 doesn't work properly. It looks like they had a go and then stopped without completing it. Your GO is something I use all the time on 6.5 and has become indispensable. Thanks for your massive contribution!

I know you said you were looking at it with NT7. Is it looking promising?

-thanks


Can you tell me more about it ? I used a couple of times and it works fine ......what did you hear exactly ?

You know what you know but you do not know what you do not know.
You do not see things how they are, you see things how you are.
In life you do what you want but you do not want what you want.
Reply With Quote
 
  #86 (permalink)
Member
California
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 87 since Jun 2009
Thanks: 5 given, 119 received


goforbroke01 View Post
I know you said you were looking at it with NT7. Is it looking promising?

yeah, i got some of it kinda ported over, but i ran into a problem with some weird exceptions that NT7 was throwing. i tried asking on the NT support forum but all I got back was the generic "buy into our affiliate support network" bullshit. after that i kinda lost motivation, but i dare say i'll get it working eventually...

Reply With Quote
The following user says Thank You to piersh for this post:
 
  #87 (permalink)
Just starting out...
NYC
 
Futures Experience: Intermediate
Platform: NT
 
Posts: 1 since Oct 2009
Thanks: 0 given, 0 received

Piersh, It would be great if you could port it into NT7 as it would greatly speed up optimization process by using multiple cores of the CPU, not available in NT6.5

Reply With Quote
 
  #88 (permalink)
Elite Member
Denver
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Zen Fire
Favorite Futures: GC, CL
 
Posts: 12 since Jan 2010
Thanks: 6 given, 5 received

What is a Genetic Optimizer please? I tried google but confused the same.

Reply With Quote
 
  #89 (permalink)
Elite Member
Queretaro,Qro. Mexico
 
Futures Experience: Intermediate
Platform: Ninja Trader, Multicharts
Broker/Data: Mirus/Zen-Fire
Favorite Futures: ES
 
Posts: 30 since Nov 2009
Thanks: 4 given, 3 received

Excuse my igonarance, but what is a genetic optimizer? and how can it help my trading or my strategies? I don't believe in optimization as the market is constantly changing and if you optimize you, it only works for some time.....ST

Reply With Quote
 
  #90 (permalink)
Elite Member
Chicago
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 27 since Jan 2010
Thanks: 6 given, 2 received


Optimization is a vital step in the process of developing a robust strategy. Please do not confuse this with curve fitting.

Reply With Quote

Reply



futures io > > > > > NinjaTrader Genetic Optimizer

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
MoGo Genetic Optimizer for NT7 TraderDJB NinjaTrader Programming 6 April 19th, 2012 09:52 AM
Index to Genetic Optimizers for NinjaTrader jdfagan NinjaTrader Programming 2 June 24th, 2010 06:09 AM
NinjaTrader 7.0 Strategy Analyzer and Optimizer tutorials? sev888 Traders Hideout 3 April 2nd, 2010 10:42 AM
How i use genetic optimizer in 10 steps wh NinjaTrader 6 June 15th, 2009 03:23 PM


All times are GMT -4. The time now is 03:35 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-16 in 0.13 seconds with 20 queries on phoenix via your IP 54.196.201.241