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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 martini, Yesterday, 04:45 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 08:38 AM | ||
Started by Tim-c, Today, 08:36 AM
|
0 responses
1 view
0 likes
|
Last Post
by Tim-c
Today, 08:36 AM
|
||
Started by Mestor, Today, 03:15 AM
|
2 responses
10 views
0 likes
|
Last Post
by Mestor
Today, 08:36 AM
|
||
Started by roblogic, 11-30-2023, 06:20 PM
|
57 responses
1,364 views
0 likes
|
Last Post
by playr101
Today, 08:35 AM
|
||
Started by Padan, Today, 02:02 AM
|
2 responses
10 views
0 likes
|
Last Post
by Padan
Today, 08:34 AM
|
Comment