Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 02-16-2018, 09:11 AM   #1
balltrader
Member
 
Join Date: Dec 2015
Posts: 76
Thanks: 69
Thanked 10 times in 6 posts
Lightbulb Add Spinner Animation while loading chart data

My suggestion is:

when refreshing a chart,
display an animation of a spinner
(basically a progress bar type animation),
that indicates that something is happening in the background,
and make this spinner appear in each panel in the chart window.

it is probably impossible to calculate the duration of the loading time, so an actual progress bar showing a percentage complete is probably not a possibility, but at least a spinner would give a User Experience (UX) notification that the system has not crashed.

If an indicator has an error, display a graphic image of an yellow exclamation point in that panel, so we don't need to check the Control Center log tab or NinjaScript output to see if something cause the indicator to be blank.

Thank you for your consideration.
balltrader is offline  
Reply With Quote
Old 02-16-2018, 09:26 AM   #2
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,943
Thanks: 30
Thanked 1,263 times in 1,181 posts
Default

Hello,

Thank you for providing the feedback.

I will provide a feature request to development for these items.

These have been assigned the ids of:
1. SFT-3045.
2. SFT-3046



I look forward to being of further assistance.
Last edited by NinjaTrader_Jesse; 02-16-2018 at 04:11 PM.
NinjaTrader_Jesse is offline  
Reply With Quote
The following 2 users say thank you to NinjaTrader_Jesse for this post:
Old 03-16-2018, 08:27 AM   #3
balltrader
Member
 
Join Date: Dec 2015
Posts: 76
Thanks: 69
Thanked 10 times in 6 posts
Default

Thanks Jesse

I tried this code, but it does not render in real time mode. it only displays the text after all the historical bars have been processed.

Code:
protected override void OnBarUpdate()
        {	
		if (State==State.Historical) 
			{	
				Draw.TextFixed(this, "historicaldataloading", "Processing Historical Data Bar#" + CurrentBar, TextPosition.BottomLeft);
				
			}
	}
It appears all the bar calculations must be done, prior to the final rendering step while in historical mode.

I can print to the output panel during OBU of historical data...

Can you confirm if it is impossible to render text to an chartPanel during the OBU of historical data...

and point me to any help documents that describe the sequence of steps that occur before OnRender, so I can better understand?
balltrader is offline  
Reply With Quote
Old 03-16-2018, 08:49 AM   #4
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,943
Thanks: 30
Thanked 1,263 times in 1,181 posts
Default

Hello,

Thank you for the post.

I am not certain I understand what you are asking here.

You can call this syntax in historical and it would relate to the values passed in, for example, it would relate to that historical bar where it was called.

This would not be seen on the chart until the chart is actually rendered which would come once the script is processed. You would see prints sent to the output window as the script processes so you would likely see a small time difference between prints being output and rendering.

There is not really a point in which you would step through historical data in order to see visuals while processing that data, can you detail further what the concern related to this code is?

I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote
Old 04-26-2018, 06:00 AM   #5
cmarkb
Junior Member
 
Join Date: Aug 2017
Posts: 18
Thanks: 0
Thanked 0 times in 0 posts
Default

NinjaTrader_Jesse,

I also wanted to do a similar thing. I am running a script in the historical state that takes some time,and I want to render some text on the indicator to say it is "Loading...".
I have tried doing this while in historical state, but it does not render on the chart till after the historical state is complete.

How can I render some text on the chart at the beginning of the historical state that will render straight away?

This way I can indicator to the user that loading is in progress.

Regards,

cmarkb
cmarkb is offline  
Reply With Quote
Old 04-26-2018, 03:30 PM   #6
NinjaTrader_Jesse
NinjaTrader Customer Service
 
NinjaTrader_Jesse's Avatar
 
Join Date: Mar 2014
Location: Denver, CO
Posts: 4,943
Thanks: 30
Thanked 1,263 times in 1,181 posts
Default

Hello cmarkb,

It is currently not possible to use OnRender() before State.Realtime. We do have a feature request in for this with the ID of SFT-1456.

I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote
Reply

Tags
error display, loading, progress bar, spinner

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
NT8B3 - Playback controller- MS busy spinner, and WORKFLOW sledge Version 8 Beta 3 09-03-2015 10:58 AM
NT8 - Add Strategy to loading chart - object not set error MicroTrends Version 8 Beta 2 05-13-2015 10:00 AM
Error on loading chart data during walk forward but not when I open a chart scottyheist Platform Technical Support 3 04-01-2014 07:08 AM
error loading data with add() slocumtrader Platform Technical Support 1 02-01-2012 03:09 AM
Qty spinner qtmspin Platform Technical Support 7 09-03-2009 07:19 AM


All times are GMT -6. The time now is 04:41 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.