NexusFi: Find Your Edge


Home Menu

 





NinjaTrader Genetic Optimizer


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one piersh with 49 posts (94 thanks)
    2. looks_two Big Mike with 26 posts (10 thanks)
    3. looks_3 TraderDJB with 13 posts (18 thanks)
    4. looks_4 dsraider with 10 posts (0 thanks)
      Best Posters
    1. looks_one piersh with 1.9 thanks per post
    2. looks_two TraderDJB with 1.4 thanks per post
    3. looks_3 sam028 with 0.5 thanks per post
    4. looks_4 Big Mike with 0.4 thanks per post
    1. trending_up 93,219 views
    2. thumb_up 134 thanks given
    3. group 47 followers
    1. forum 197 posts
    2. attach_file 19 attachments




 
Search this Thread

NinjaTrader Genetic Optimizer

  #141 (permalink)
sju10544
Goeppingen, Germany
 
Posts: 9 since Mar 2010
Thanks Given: 3
Thanks Received: 0

O.K. guys. The last advice was the key! I have a strategy that uses also a "ParameterSet". This is the reason why I can't import Piersh code.

So now I know the reason why it don't work for me, but is there any chance to change Piersh code that I'm able to use it? (I can't change the other code unfortunately).

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #142 (permalink)
piersh
California
 
Posts: 87 since Jun 2009
Thanks Given: 5
Thanks Received: 120


sju10544 View Post
O.K. guys. The last advice was the key! I have a strategy that uses also a "ParameterSet". This is the reason why I can't import Piersh code.

So now I know the reason why it don't work for me, but is there any chance to change Piersh code that I'm able to use it? (I can't change the other code unfortunately).

ah, i've just uploaded v1.11 which should fix these conflicts.

let me know if that works for you or not...

Reply With Quote
Thanked by:
  #143 (permalink)
sju10544
Goeppingen, Germany
 
Posts: 9 since Mar 2010
Thanks Given: 3
Thanks Received: 0


YIPPEE!!! Now it works!!!!! Thank you so much Piersh and all the other guys who have helped me. You all together were very patient.
It's a great tool, and a great forum!

Jens

Reply With Quote
  #144 (permalink)
 phyzfer 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-FIre
Trading: GC, ES
Posts: 73 since Mar 2010
Thanks Given: 40
Thanks Received: 33

piersh,

THANK YOU SOOO MUCH for all your efforts!!! I am getting closer to the point where I need to optimize my strategy (a strategy with many parameter combinations). After reading up on all of this genetic optimization technology, I'm convinced I'll need your GO.

I do want to commend your persistence in getting this done and 'dealing' with the brick-wall that is NT support. I saw many of your posts on NT's forum and I was viscerally upset with how they treated you -- someone looking to expand their product in such a meaningful way for FREE! unbelievable.

In any case, I think I have some more studying ahead of me regarding GAs and getting your GO to work with my strategy. I believe I'll need to modify my strategy in the ways you described on this thread to get it done. I'll post here if I run into any issues or have any questions. If you need any assistance, let me know; I'm willing and able.

THANKS AGAIN!!!!!

phyzfer

Reply With Quote
  #145 (permalink)
piersh
California
 
Posts: 87 since Jun 2009
Thanks Given: 5
Thanks Received: 120


phyzfer View Post
THANK YOU SOOO MUCH for all your efforts!!! I am getting closer to the point where I need to optimize my strategy

thanks, i appreciate it!

i hope your strategy works out ;-)

Reply With Quote
  #146 (permalink)
piersh
California
 
Posts: 87 since Jun 2009
Thanks Given: 5
Thanks Received: 120

hey guys, i've added a couple of things to 1.12:
  • a 'MinimumPerformance' cutoff parameter. once the best found performance reaches this value the optimizer will automatically stop.
  • PHStochastic - a new optimizer. it works by randomly choosing sets of strategy parameters giving higher preference to values of each individual strategy parameter that have previously yielded better performance. (breath). i can't really tell if it's better than the GO since there's so much randomness involved. but it does have the advantage that it never gets stuck, so it doesn't have to keep resetting like the GO. for longer runs it may be worth a try.

hope that helps!

Reply With Quote
Thanked by:
  #147 (permalink)
 aknip 
Germany
 
Experience: Advanced
Platform: NinjaTrader
Posts: 112 since Sep 2009
Thanks Given: 47
Thanks Received: 128

Hi piersh,

thanks a lot for your work. I tried to import the last version 1.12 into NT7 public beta.

I always get the error message:
"Import failed. The NinjaScript Archive may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the import archive."

I even installed a fresh and empty NT7 public beta on a new blank machine and tried to import the optimizer-zip - but got the same error message. There are NO other custom indicators or strategies which makes this behaviour really strange.

Do you have any idea what's wrong?

Thanks a lot in advance!

Reply With Quote
  #148 (permalink)
piersh
California
 
Posts: 87 since Jun 2009
Thanks Given: 5
Thanks Received: 120


aknip View Post
I always get the error message:
"Import failed. The NinjaScript Archive may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the import archive."

oh man, i'm sorry. i did a bad export.

please re-download v1.12 from the download section and try the import again.

Reply With Quote
  #149 (permalink)
 aknip 
Germany
 
Experience: Advanced
Platform: NinjaTrader
Posts: 112 since Sep 2009
Thanks Given: 47
Thanks Received: 128

works now like a charme... :-)
Thanks for your efforts & your quick reply!

Reply With Quote
  #150 (permalink)
 verge 
Cape Town, South Africa
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-fire
Trading: EUR/USD
Posts: 41 since Aug 2009
Thanks Given: 22
Thanks Received: 12


One of my parameters I am testing has a min value of 0.0001 and a max of 0.0009 with an increment of 0.00001. After running the optimizer the best value was given as 0.0089 - which is of course increment away from the max value.

I then change the max value to 0.0010 and ran the optimizer again - the new optimal value was at 0.0009 - so it seems that the boundary values are not included in the test. I am not saying it is a bug - just thought that it would be good to know.

Also - it would be great if the values written to the output window has more than two digits after the the decimal point - as my example shows I would like at least 5 digits after the decimal.

Reply With Quote
Thanked by:




Last Updated on December 16, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts