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 RaygunWizzle, Yesterday, 08:52 PM
|
3 responses
11 views
0 likes
|
Last Post Today, 02:50 PM | ||
Started by Tim-c, Today, 08:36 AM
|
4 responses
14 views
0 likes
|
Last Post Today, 02:45 PM | ||
Started by JohnS52, 03-22-2024, 08:06 AM
|
4 responses
28 views
0 likes
|
Last Post
by JohnS52
Today, 02:30 PM
|
||
Started by carnitron, 03-25-2024, 01:59 PM
|
11 responses
53 views
0 likes
|
Last Post
by carnitron
Today, 02:18 PM
|
||
Started by Gerik, 12-21-2023, 08:20 AM
|
15 responses
203 views
0 likes
|
Last Post
by Mindset
Today, 02:06 PM
|
Comment