Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
(Calculating...)
Collapse
X
-
Hello Bidder,
Thank you for the post.
There is not a specific way to determine when that is displayed, that is happening based on the script being calculated and is just part of the chart. What is the intended goal surrounding finding out when it has completed?
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
-
There is code in a timer which does not operate properly if it runs before the chart is finished loading and calculating. Right now the functionality is on a time hold and will not run for a number of predetermined number of seconds. Having a way to detect when the chart is done calculating would trim off some time from that pre-determined wait time.
Comment
-
Hello Bidder,
This sounds like it would be a good use case for the scripts standard OnStateChange override. You could use State.DataLoaded, State.Realtime or State.Historical to complete actions when the script is ready to work. DataLoaded would be the earliest when data is in the series but bars have not started processing. State.Realtime would be the best for doing something once the script is actually running however that would wait for the first tick/bar to close in realtime.
You could also use OnBarUpdate and just check that the CurrentBar == Count - 2 which would be the last historical bar processed when using OnBarClose processing.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by traderqz, Today, 12:06 AM
|
2 responses
3 views
0 likes
|
Last Post
by traderqz
Today, 09:17 AM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
7 views
0 likes
|
Last Post Today, 08:47 AM | ||
Started by DavidHP, Today, 07:56 AM
|
1 response
6 views
0 likes
|
Last Post Today, 08:16 AM | ||
Started by kujista, Today, 06:23 AM
|
3 responses
11 views
0 likes
|
Last Post
by kujista
Today, 08:15 AM
|
Comment