Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
can't find instruction for last chart bar?
Collapse
X
-
Originally posted by joemiller View Postplease tell me where in the nt user guide I can find something like ''islastbar'' so I can take an ''if'' action on the last bar in my indicator. I've seen it before but can't find it.
-
Hello joemiller,
Thank you for your post.
Koganam's referenced post is a great way to do so. I added the full quote from the post here for ease:
Originally posted by koganam View PostI am going to assume then that all you want is how to get the index of the last bar showing on the screen, and that you know how to query and display the information on the screen with DrawTextFixed()? If that is correct, then there are 2 ways to get the last bar painted, both undocumented and unsupported by NT Support, so do not even ask.
- int intLastBarOnChart = ChartControl.LastBarPainted;
- int intLastBarPaintedOnChart = this.LastBarIndexPainted;
The first index is dependent on the COBC property; the second one is absolute.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by samish18, Yesterday, 12:20 PM
|
1 response
11 views
0 likes
|
Last Post Today, 12:54 PM | ||
Started by Lancer, 01-29-2020, 10:15 PM
|
6 responses
459 views
1 like
|
Last Post
by neveral0n3
Today, 12:53 PM
|
||
Started by Rogers101, Today, 11:30 AM
|
1 response
13 views
0 likes
|
Last Post Today, 12:50 PM | ||
Started by AndreiBig, Yesterday, 12:30 AM
|
1 response
11 views
0 likes
|
Last Post Today, 12:47 PM | ||
Started by nicthe, Today, 07:38 AM
|
2 responses
15 views
0 likes
|
Last Post Today, 12:46 PM |
Comment