Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 03-15-2017, 02:39 AM   #16
gregschr
Senior Member
 
Join Date: Mar 2010
Location: Rogers, Arkansas
Posts: 143
Thanks: 7
Thanked 16 times in 9 posts
Default

Until NT has the custom build ready, there is a work around that appears to avoid the issue.

When you exit NT, close all workspaces, except for one with no charts, ect. Just the Control Center should be open.

After starting NT, make sure your data connection is up. Once the data connection is up (I usually wait a minute or so after it is up), open your workspaces. Only open one workspace at a time and wait for all the charts to be fully rendered before opening the next one.

Before using this work around I was getting the error every time with version 8.0.5.1. I have shutdown and restarted NT half a dozen times since implementing this and have not gotten the error once.
gregschr is offline  
Reply With Quote
The following 3 users say thank you to gregschr for this post:
Old 03-15-2017, 04:02 AM   #17
Bruce DeVault
Member
 
Join Date: Mar 2007
Location: Washington, DC, USA
Posts: 66
Thanks: 13
Thanked 19 times in 14 posts
Default

Thanks for posting this - I've been doing something similar. Because the error occurs when connecting the feed while charts are open, if you close all of your workspaces (leaving only an empty one), then exit NinjaTrader, when you reload NinjaTrader and connect your feed, there is nothing to render.
Bruce DeVault is offline  
Reply With Quote
Old 03-15-2017, 11:05 AM   #18
gregschr
Senior Member
 
Join Date: Mar 2010
Location: Rogers, Arkansas
Posts: 143
Thanks: 7
Thanked 16 times in 9 posts
Default

Hi Brett,

I installed the custom build and it solves the problem except for a Delta indicator I use.

I do not get the rendering error messages, but all indicators do not load after the connection is established. And when I exit NinjaTrader, some process is hung which I have to kill in the task manager. If I remove the Delta indicator, everything loads normally after the connection is established.

Also, if I follow the procedures I outlined below, everything loads normally, even with the Delta indicator installed.

Getting close to squishing this bug!
gregschr is offline  
Reply With Quote
Old 03-15-2017, 11:22 AM   #19
Bruce DeVault
Member
 
Join Date: Mar 2007
Location: Washington, DC, USA
Posts: 66
Thanks: 13
Thanked 19 times in 14 posts
Default

I agree it addresses the test case. I'm trying to test on some more complex workspaces now.

I am not seeing the hung process happen here. That does resemble a problem I've had in the past when I use locking (if there is a lock in OnStateChange, and also in OnBarUpdate and in OnRender for the same lock). Does the indicator do that by chance?
Last edited by Bruce DeVault; 03-15-2017 at 11:24 AM.
Bruce DeVault is offline  
Reply With Quote
Old 03-15-2017, 04:06 PM   #20
reach4thelasers
Senior Member
 
Join Date: Aug 2015
Location: London, United Kingdom
Posts: 435
Thanks: 46
Thanked 67 times in 59 posts
Default

I've installed the Custom build. Doesn't solve the problem at all for me. The indicator crashes now - vanishes from the Chart. Which admittedly is an improvement on the entire chart control crashing, but the issue is not resolved.
reach4thelasers is offline  
Reply With Quote
Old 03-15-2017, 05:01 PM   #21
Bruce DeVault
Member
 
Join Date: Mar 2007
Location: Washington, DC, USA
Posts: 66
Thanks: 13
Thanked 19 times in 14 posts
Default

Are you able to attach a debugger and catch where it is crashing?
Bruce DeVault is offline  
Reply With Quote
Old 03-15-2017, 08:10 PM   #22
gregschr
Senior Member
 
Join Date: Mar 2010
Location: Rogers, Arkansas
Posts: 143
Thanks: 7
Thanked 16 times in 9 posts
Default

Thanks for the suggestion Bruce.

Quote:
That does resemble a problem I've had in the past when I use locking (if there is a lock in OnStateChange, and also in OnBarUpdate and in OnRender for the same lock). Does the indicator do that by chance?
If you are referring to multithreaded locking using the Lock statement, then the indicator does not use that. Or are you referring to something else?
gregschr is offline  
Reply With Quote
Old 03-15-2017, 08:11 PM   #23
Bruce DeVault
Member
 
Join Date: Mar 2007
Location: Washington, DC, USA
Posts: 66
Thanks: 13
Thanked 19 times in 14 posts
Default

Yes, it was using lock(obj) { } or mutex.enter etc. that I was seeing platform hang scenarios.
Bruce DeVault is offline  
Reply With Quote
Old 12-27-2017, 09:56 AM   #24
satoyama
Junior Member
 
Join Date: Jan 2014
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

I am also getting this error. Was there a resolution to this issue?
Last edited by satoyama; 12-27-2017 at 09:58 AM.
satoyama is offline  
Reply With Quote
Old 12-27-2017, 10:51 AM   #25
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 11,761
Thanks: 792
Thanked 2,034 times in 1,957 posts
Default

Hello satoyama,

Thank you for your post.

This should of been fixed quite a few releases ago. Are you still seeing this error?

If so, please send your log and trace files to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H' in the subject line and a reference to this thread.

You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

I look forward to assisting you further.
NinjaTrader_PatrickH is offline  
Reply With Quote
Reply

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
Resume after sleep chart error "Upgradeable lock may not be acquired..." crokusek Version 8 Beta 4 11-11-2016 01:35 AM
ERROR: Chart rendering failed db.mobile Version 8 Beta 9 09-12-2016 10:38 AM
ERROR: A direct X error has occured while rendering the chart: HRESULT: [0x88990001], strategesis Version 8 Beta 22 12-04-2015 12:57 PM
Chart rendering error - B5 Jellybean Version 8 Beta 11 10-24-2015 07:48 AM
ERROR: Failed to call 'Add' method: Write lock may not be acquired with read lock... NJA_MC Version 8 Beta 13 06-19-2015 09:56 AM


All times are GMT -6. The time now is 03:53 PM.

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.