NexusFi: Find Your Edge


Home Menu

 





No Optimization Results?


Discussion in NinjaTrader

Updated
    1. trending_up 2,253 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 8 posts
    2. attach_file 4 attachments




 
Search this Thread
  #1 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395

I have been away from the NT7 internal optimization function. I recently found a use for it, I have 631 potentially good "strategy" models I would like to process numbered 1 -> 631 and figured I could set a variable to have the optimizer run each model (Optimization parameter being the model number to review). I was excited about this, set it up and then handed it off to the Optimizer only to be faced with a message that doesn't make sense.


I have even tried modifying additional parameters and it still returns the same error.

Any ideas?

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Forcing plots to disappear/reappear?
NinjaTrader
Help re translation of ninjascript to EL
NinjaTrader
What You Know vs How much you know about it
Traders Hideout
Radarscreen
TradeStation
Elite Trader Funding, Avoid?
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
98 thanks
HumbleTraders next chapter
56 thanks
Winning attitudes create winning traders
38 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
23 thanks
Learning to Trade with the Big Money
22 thanks
  #2 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395

Don't know if this helps but this is a sample of the input box with the parameters to optimize.


It is set for Momentum bars, not sure if you can optimize with the exotic bar types?

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #3 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 649 since Aug 2009
Thanks Given: 320
Thanks Received: 623


Some ideas:

- restart NT
- restart PC
- compile the code again after restart
- repair DB (Tools->Options->Data)

Reply With Quote
  #4 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 649 since Aug 2009
Thanks Given: 320
Thanks Received: 623

@NJAMC

Also - can you optimize on any of the other strategies (@Sample....)?

Also (2) - have you selected an instrument to optimize on?

Reply With Quote
Thanked by:
  #5 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


gregid View Post
@NJAMC

Also - can you optimize on any of the other strategies (@Sample....)?

Also (2) - have you selected an instrument to optimize on?

Thanks @gregid,

I didn't select the Instrument on the left, I set it within the Optimizer, thought that was enough. I got it running, now I have a different problem. See below:



Now, the optimizer is running the strategies, but for some reason, not collecting the results of the run. As you can see, internally to the strategy the results were created (on the chart image). But not in the summary results so I don't know if it is optimizing the model (actually, I am sure it is not).

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 649 since Aug 2009
Thanks Given: 320
Thanks Received: 623

try making some simple optimization on a sample strategy to see if the problem is NT/settings/your strategy.

Reply With Quote
  #7 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395

A few things I found out, the Optimizer doesn't like any form of exception. It also doesn't seem to load up "Bars.BarsType.Period.Value" in the OnStartUp() function properly. Seems to be okay after it starts calling OnBarUpdate(), had to hand code the Value into a string, otherwise it was a file not found error.

Here is my run!


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 649 since Aug 2009
Thanks Given: 320
Thanks Received: 623

Great, thanks for the update!

Reply With Quote
  #9 (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,594 since Jun 2009
Thanks Given: 33,335
Thanks Received: 101,946

Don't forget to regularly delete db\cache directory. I've seen this be a problem many times and it isn't just me.

Mike



Join the free Markets Chat beta: Real-time Trading Insights

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




Last Updated on July 5, 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