Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Check for ChartData to be loaded with OnRender event
Collapse
X
-
Check for ChartData to be loaded with OnRender event
How can I check if all the data has been loaded before attempting to draw with OnRender?Tags: None
-
Hello,
Thank you for your note.
You could set a bool to true in State.Dateloaded. Then check that this value is true in OnRender.
See States,
https://ninjatrader.com/support/help...tatechange.htm
Declare the following above protected override void OnStateChange(),
Code:public bool dataLoaded = false;
Code:dataLoaded=true;
Code:if(dataLoaded==false) return;
Alan P.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by suroot, 02-25-2017, 04:43 AM
|
11 responses
2,548 views
0 likes
|
Last Post
by Zilvercat
Today, 05:36 PM
|
||
Started by Rogers101, 05-05-2024, 11:30 AM
|
16 responses
50 views
0 likes
|
Last Post
by Rogers101
Today, 04:44 PM
|
||
Started by ninza33, Today, 12:31 PM
|
2 responses
10 views
0 likes
|
Last Post
by ninza33
Today, 03:52 PM
|
||
Started by Bobin, 03-12-2024, 08:51 AM
|
15 responses
482 views
0 likes
|
Last Post
by fiddich
Today, 03:41 PM
|
||
Started by Skifree, Today, 11:21 AM
|
4 responses
15 views
0 likes
|
Last Post
by Skifree
Today, 03:41 PM
|
Comment