Announcement
Collapse
No announcement yet.
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(),
In State.Dataloaded you could set,Code:public bool dataLoaded = false;
Then in OnRender you could return if this variable isn't equal to true.Code:dataLoaded=true;
Please let us know if you need further assistance.Code:if(dataLoaded==false) return;
Alan P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
44 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
54 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
34 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
94 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
56 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment