What is the solution please.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Showing Daily Gain/Loss percentage
Collapse
X
-
Showing Daily Gain/Loss percentage
I am writing an indicator to graphically show the daily gain/loss percentage on the chart -- for daily charts. The problem is until the next daily bar opens, I don't have access to the daily bar that just closed. As a workaround, I added 5-min charts, but the last bar in 5-min chart is not available either.
What is the solution please.Tags: None
-
Hello stevenev1, thanks for your post.
The 5 minute bar will close every 5 minutes, so checking for: if(BarsInProgress == 1) will let you know when the 5 minute bar closes. If this does not resolve your inquiry, could you post a simplified test script?
I look forward to hearing from you.Chris L.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by selu72, Today, 02:01 PM
|
1 response
5 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
11 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
||
Started by Mikey_, 03-23-2024, 05:59 PM
|
3 responses
51 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
||
Started by Russ Moreland, Today, 12:54 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:01 PM |
Comment