Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 8.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 06-19-2017, 12:31 PM   #1
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 423
Thanks: 88
Thanked 7 times in 6 posts
Default Optimizer performance

I am experiencing with the NT8 optimizer and I am finding that it's not as performant as I expected. To do the same optimization (exactly the same) the time it takes almost the double compared with NT7.

My computer has 8 CPU cores and 16 GB RAM. I think that should be enough because I am observing that memory usage for NT8 is is much higher. Any hint on how to improve the performance?
guillembm is offline  
Reply With Quote
Old 06-19-2017, 12:55 PM   #2
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,317
Thanks: 744
Thanked 1,743 times in 1,679 posts
Default

Hello guillembm,

Thank you for your post.

This would not be a hardware related item but a software related item. In NinjaTrader 8 there are a few items to keep in mind for performance.

First, there is the IsInstantiatedOnEachOptimizationIteration bool that you can find in OnStateChange() section of your code under the State SetDefaults. Setting this to false will increase performance, however you will likely want to understand it's purpose first. Please review the detail on this bool at the following link: http://ninjatrader.com/support/helpG...niteration.htm

Then there is the items that also play a factor in NinjaTrader 7 as well. Drawing tools, Printing, Logging, and Debugging can all play factors in the performance. If you are running a strategy that has drawing objects on each bar or calls an indicator that has drawing objects on each bar you can reduce the load on memory by commenting these out in your code. If you are utilizing Logging and Printing you can reduce the load here as well by minimizing the number of calls or commenting them out all together. And if you leave Debug mode enabled it will also decrease performance.

With the items above in mind, if you still see performance issues please let us know.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 06-20-2017, 11:39 AM   #3
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 423
Thanks: 88
Thanked 7 times in 6 posts
Default

Thanks, How do I disable debug mode? I can't find it in the help guide.
guillembm is offline  
Reply With Quote
Old 06-20-2017, 12:38 PM   #4
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,317
Thanks: 744
Thanked 1,743 times in 1,679 posts
Default

Hello guillembm,

Thank you for your response.

Please right click in the NinjaScript Editor > ensure there is no check mark next to 'Debug Mode'. You can find details on Debug Mode at the following link: http://ninjatrader.com/support/helpG..._debugging.htm

Please let me know if you have any questions.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old Yesterday, 04:04 AM   #5
guillembm
Senior Member
 
Join Date: Jun 2011
Posts: 423
Thanks: 88
Thanked 7 times in 6 posts
Default

I am experiencing several performance issues with the NT8 optimizer :

- When executing large Multi-objective optimizations, NT8 crashes.
- When executing large regular optimizations the optimizer stops before all the iterations are done.

Any way to solve this?

My computer has 8 CPU cores and 16 GB RAM
guillembm is offline  
Reply With Quote
Old Yesterday, 06:30 AM   #6
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,317
Thanks: 744
Thanked 1,743 times in 1,679 posts
Default

Hello guillembm,

Thank you for your response.

Your hardware should not be the cause here. The behavior you are seeing is not expected at all.

Can you send me your log and trace files? You can do this by going to the Control Center-> Help-> Email Support. Please list 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.

I look forward to your response.
NinjaTrader_PatrickH is offline  
Reply With Quote
Reply

Tags
optimization

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RC2 "Trade Performance" causing performance issue atata Version 8 Beta 1 10-17-2016 09:32 AM
Custom DataSeries and Optimizer Performance nicbizz Platform Technical Support 1 10-29-2013 10:00 AM
Genetic optimizer - minimum performance input StockStalker Platform Technical Support 3 03-19-2012 12:42 PM
Account Performance includes the performance of Sim101 & Live Account Eoghan O Sullivan Platform Technical Support 2 02-25-2010 10:31 AM
How to filter Strategy Performance in Account Performance pmaglio Platform Technical Support 1 05-19-2008 01:40 PM


All times are GMT -6. The time now is 02:47 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.