NexusFi: Find Your Edge


Home Menu

 





Setting optimization fitness value within the strategy (NT7)


Discussion in NinjaTrader

Updated
    1. trending_up 2,537 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Setting optimization fitness value within the strategy (NT7)

  #1 (permalink)
 
AdvancedIndicators's Avatar
 AdvancedIndicators 
Winnipeg, MB, Canada
 
Experience: Advanced
Platform: NinjaTrader
Trading: Futures
Posts: 45 since Mar 2011
Thanks Given: 2
Thanks Received: 29

Does anyone happen to know some way to set optimization fitness value within the strategy during optimization rather than in a separate class?

As you know, standard way forces you to use a separate class - derived from OptimizationType and implement/override GetPerformanceValue method - which has access only to post-facto stats. With the ability to set the fitness value within the strategy, one would be able to use GO in wide range of uses - e.g.:
1) use any custom computed measurement based on data available only within the strategy
2) use stats that can be computed only while strategy is running and not post-facto
3) perform optimization driven by criteria not based on executed trades, like pivot finding algo, DSP filter design, etc
4) many, many more!

Is there a way to do it? Thanks in advance.

P.S. This is also in my NT8 wish list:

Quote: Optimization: Instead of using optimization types, NT8 would introduce read-write Fitness property within both strategies and indicators, and let traders update it in OnBarUpdate. There's simply no reason to use completely separate class for what is just passing of one single value. This would simplify programming and give traders more flexibility.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
use extra computer for optimisation
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,469 since Jun 2009
Thanks Given: 33,249
Thanks Received: 101,669

Not a direct answer, but a different way of thinking and evaluating in real-time bar by bar:





Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
AdvancedIndicators's Avatar
 AdvancedIndicators 
Winnipeg, MB, Canada
 
Experience: Advanced
Platform: NinjaTrader
Trading: Futures
Posts: 45 since Mar 2011
Thanks Given: 2
Thanks Received: 29



Big Mike View Post
Not a direct answer, but a different way of thinking and evaluating in real-time bar by bar:





Mike

Thanks Mike. Although slightly off-topic, it's good that you brought in continuous optimization, for IMHO, some non-continuous one-time optimization needs to be done anyway - but this time it would be meta optimization: like detecting through optimization which system parameters should be optimized only once (perhaps bar period, contract, currency pair?) and which parameters should be left to be continuously optimized (perhaps MA period, SL, TP?). So, at least in my view, classic optimization is needed either way.

And that brings me to additional point for this thread: this meta optimization is another thing affected by this missing functionality I created this thread for.

Started this thread Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,469 since Jun 2009
Thanks Given: 33,249
Thanks Received: 101,669


dobuye View Post
Thanks Mike. Although slightly off-topic, it's good that you brought in continuous optimization, for IMHO, some non-continuous one-time optimization needs to be done anyway - but this time it would be meta optimization: like detecting through optimization which system parameters should be optimized only once (perhaps bar period, contract, currency pair?) and which parameters should be left to be continuously optimized (perhaps MA period, SL, TP?). So, at least in my view, classic optimization is needed either way.

And that brings me to additional point for this thread: this meta optimization is another thing affected by this missing functionality I created this thread for.

Yes I understand, I originally tried to do this about 4 years ago with NT. Good luck

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 d416 
Toronto, Canada
 
Experience: Intermediate
Platform: NinjaTrader, IB
Trading: what's liquid, trending, and predictable
Posts: 34 since Aug 2011
Thanks Given: 15
Thanks Received: 36


dobuye View Post
Does anyone happen to know some way to set optimization fitness value within the strategy during optimization rather then in a separate class?

Have you tried using MS Visual Studio to step-debug a NinjaTrader Gentic Optimization process? I did this for the first time today today, and though I wasn't looking specifically for what you are, it's quite revealing how the NT core executes the optimizer... you might even get lucky and be able to hack it before NinjaTrader implements your idea in a future release : )

In general I really hope they provide they provide a way to optimize within a strategy... it seems nobody is doing this!


cheers -Dave

Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
AdvancedIndicators's Avatar
 AdvancedIndicators 
Winnipeg, MB, Canada
 
Experience: Advanced
Platform: NinjaTrader
Trading: Futures
Posts: 45 since Mar 2011
Thanks Given: 2
Thanks Received: 29


d416 View Post
Have you tried using MS Visual Studio to step-debug a NinjaTrader Gentic Optimization process? I did this for the first time today today, and though I wasn't looking specifically for what you are, it's quite revealing how the NT core executes the optimizer... you might even get lucky and be able to hack it before NinjaTrader implements your idea in a future release : )

In general I really hope they provide they provide a way to optimize within a strategy... it seems nobody is doing this!


cheers -Dave

Hi Dave, no I haven't and wouldn't recommend that even if possible.

Now, the following appears to be an unsupported workaround:
https://forum.ninjatrader.com/showthread.php?t=53440
It does work and it's not a hack - which is good news!

P.S. But it shows again how unnecessary that class is, hence NT8 suggestion still stands.

Enjoy

Started this thread Reply With Quote
Thanked by:




Last Updated on January 2, 2013


© 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