I find myself wanting to add a series of boxes with numbers in them at the bottom of the chart window, 1 per bar, per the volume ladder chart statistics etc. Before I spent hours trying to code this, I wondered if there are any code examples someone can point me to? I'm guessing someone has already done this. No point re-inventing the wheel, so to speak. I've had a look around and whilst there are plenty of indicators that do this,I can't find any example code. If anyone can point to some, I'd be grateful. Thanks,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnRender numbers grid per bar at bottom of chart
Collapse
X
-
OnRender numbers grid per bar at bottom of chart
Hi,
I find myself wanting to add a series of boxes with numbers in them at the bottom of the chart window, 1 per bar, per the volume ladder chart statistics etc. Before I spent hours trying to code this, I wondered if there are any code examples someone can point me to? I'm guessing someone has already done this. No point re-inventing the wheel, so to speak. I've had a look around and whilst there are plenty of indicators that do this,I can't find any example code. If anyone can point to some, I'd be grateful. Thanks,
Tags: None
-
Hello pjsmith,
The ChartBars.FromIndex and .ToIndex provide the bars on the chart.
You can get a bar's index by time if you want a specific bar.
You can convert the bar indexes to x coordinates or convert bar times to the x coordinate with the ChartControl methods.
You can convert prices to y values with the ChartScale.
Most drawing tools included with NinjaTrader use these tools to draw over specific bars on the chart. You can use these for examples.Chelsea B.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
559 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
546 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment