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


NinjaTrader Genetic Optimizer
Updated: Views / Replies:54,167 / 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

  #181 (permalink)
Elite Member
Pacifica, CA
 
Futures Experience: Advanced
Platform: AmiBroker, TradeStation, NinjaTrader
Broker/Data: Options House
Favorite Futures: Futures, Stocks
 
jdfagan's Avatar
 
Posts: 34 since Jun 2009
Thanks: 68 given, 42 received


ZTR View Post
The site states:
The source code is also free for anyone to download. Note that even though NinjaTrader/MoGo are both .NET 2.0 apps, the MoGo source code and solution require Visual Studio 2008 due to the use of C# 3.0-specific language features.

Have any idea if it works for later versions of Visual Studio? (asking as I have VS2010) and have you tried it with NT7? (as I don't use 6.5).

I have VS 2010 and I have converted the project (easy enough by just opening a VS 2008 project from within VS 2010 and it will convert it for you). I know TraderDJB made an attempt at making it work with NT 7 but I haven't had time yet to review to see if I can help. I hope to free up some time in July after the holidays.

JD

Reply With Quote
The following user says Thank You to jdfagan for this post:
 
  #182 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

Hi

There are various ways to optimize. This is from:

NT7 Features & Development Status

Optimization Enhancements

- Added "Genetic" optimization in addition to the default brute force optimization
- Added support for optimization on "max. sharpe ratio"
- Added support for optimization on "max. probability"

Of course there is maximum profit factor, etc.

I have also read:

Expectancy Score

which is here:

URC Trading - Expectancy Score vs Sharpe Ratio

So is there a consensus among profitable traders to optimize to...maybe...Expectancy Score?

- Stephen

Reply With Quote
 
  #183 (permalink)
Elite Member
Michigan
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradeStation, Thinkorswim
Broker/Data: MB Trading
Favorite Futures: Forex
 
TraderDJB's Avatar
 
Posts: 46 since Jan 2010
Thanks: 7 given, 28 received


I didn't see these later posts about the MoGo until now...

The fundamental problem with the MoGo optimizer to getting it from NT 6.5 to NT 7 is that it was built for a very strictly single-core environment and to change it to allow multi-core processing would need... significant re-engineering. (I took a further look at it today.) The new genetic optimizer that NT shipped with NT7 beta 18 is programmed much better and more efficiently than the MoGo and also clearer than PH Genetic though it is almost identical. It really should fill most optimization needs. I've worked to create a variant of NT's GO that is a default optimizer with enum support. Last week, I added the ability to output files that show every iteration run, like MoGo. (I plan to release this mod in a week or so, when I get the time to fix a last bug.)

The only thing left that the MoGo had that these don't is the ability for "parameter constraints" through I never used it long enough to know how that differed from the parameter constraints you normally select when running an optimization. If that was a highly desired trait, I would recommend pulling that specific feature and adding it to NT GO.

What prompted all this optimization programming is that for ALL the genetic optimizers in NT7, 10-15% of the iterations are randomly dropped and so results will be inconsistent even if you run optimizations where every single combination was supposed to be tried - which should produce the same result. I haven't reported this on the NT forum yet, but a workaround for now, is I changed the optimizers to run single core.

- DB

Do or do not, there is no try. - Yoda
Reply With Quote
The following 3 users say Thank You to TraderDJB for this post:
 
  #184 (permalink)
Membership Revoked
United States of America
 
Futures Experience: Advanced
Platform: NT
 
Posts: 1,149 since Aug 2009
Thanks: 262 given, 471 received

Single core? Does that slow down the calculation process?

Reply With Quote
 
  #185 (permalink)
Elite Member
Pacifica, CA
 
Futures Experience: Advanced
Platform: AmiBroker, TradeStation, NinjaTrader
Broker/Data: Options House
Favorite Futures: Futures, Stocks
 
jdfagan's Avatar
 
Posts: 34 since Jun 2009
Thanks: 68 given, 42 received


TraderDJB View Post
What prompted all this optimization programming is that for ALL the genetic optimizers in NT7, 10-15% of the iterations are randomly dropped and so results will be inconsistent even if you run optimizations where every single combination was supposed to be tried - which should produce the same result. I haven't reported this on the NT forum yet, but a workaround for now, is I changed the optimizers to run single core.

Doesn't the genetic search generally have the evolution usually start from a population of randomly generated individuals and happens in generations where the generations themselves introduce a random aspect (i.e., random mutations) from this initial core random starting population? I don't think subsequent GO runs are necessarily supposed to be identical due to these random aspects that genetic search algorithms make use of which are not really supposed to search the whole search space anyways.

Genetic algorithm - Wikipedia, the free encyclopedia

JD

Reply With Quote
 
  #186 (permalink)
Elite Member
Michigan
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradeStation, Thinkorswim
Broker/Data: MB Trading
Favorite Futures: Forex
 
TraderDJB's Avatar
 
Posts: 46 since Jan 2010
Thanks: 7 given, 28 received

@ Zoethecus: Yes, a bit.

@ jdfagan: If the number of combinations possible is larger than the generation size * generations then different results are expected. However, I've tracked results being generated to be tested and then the results not properly captured, even on optimizations of generation size 300, 1 generation and 100 possible combinations so that all were instantly tried. There are duplicate results entry parameters where the parameters going in were not duplicates - in fact, the coding specifically eliminates any redundant trials.

Do or do not, there is no try. - Yoda
Reply With Quote
The following user says Thank You to TraderDJB for this post:
 
  #187 (permalink)
Elite Member
Pacifica, CA
 
Futures Experience: Advanced
Platform: AmiBroker, TradeStation, NinjaTrader
Broker/Data: Options House
Favorite Futures: Futures, Stocks
 
jdfagan's Avatar
 
Posts: 34 since Jun 2009
Thanks: 68 given, 42 received


TraderDJB View Post
@ Zoethecus: Yes, a bit.

@ jdfagan: If the number of combinations possible is larger than the generation size * generations then different results are expected. However, I've tracked results being generated to be tested and then the results not properly captured, even on optimizations of generation size 300, 1 generation and 100 possible combinations so that all were instantly tried. There are duplicate results entry parameters where the parameters going in were not duplicates - in fact, the coding specifically eliminates any redundant trials.

Cool. Thanks for the detailed explanation! So it does sound like the NT GO is still not quite right/efficient if its re-submitting backtests that have been previously run in any prior generation.

JD

Reply With Quote
 
  #188 (permalink)
Elite Member
Michigan
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradeStation, Thinkorswim
Broker/Data: MB Trading
Favorite Futures: Forex
 
TraderDJB's Avatar
 
Posts: 46 since Jan 2010
Thanks: 7 given, 28 received

Unfortunately, this seems to be a deeper NT bug, because it affects all the genetic optimizers, including PH Genetic.

Do or do not, there is no try. - Yoda
Reply With Quote
 
  #189 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,355 given, 83,237 received

One major limitation with NT's implementation was the inability to optimize boolean's and enum's. If they would fix that, it would be a significant improvement.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #190 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received



TraderDJB View Post
I didn't see these later posts about the MoGo until now...

... I've worked to create a variant of NT's GO that is a default optimizer with enum support. Last week, I added the ability to output files that show every iteration run, like MoGo. (I plan to release this mod in a week or so, when I get the time to fix a last bug.)...
I haven't reported this on the NT forum yet, but a workaround for now, is I changed the optimizers to run single core.

- DB

Greetings DB!

Thanks for all that you share here on futures.io (formerly BMT)! I do appreciate anything that helps, especially when it has to do with programming which is a real challenge for me.

When I saw this post (and reread it several times) I was in hopes that your 'mod' of the GO was about 'ready to GO [ok .. too punny .. but I couldnt help myself]' . I have been watching this space and have not seen anything new: will you be able to share the update in the nearer future?

Thanks again!

Jon

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 07:32 PM.

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-17 in 0.15 seconds with 20 queries on phoenix via your IP 54.163.209.109