Since I have never used either ChartPanels or ChartControls, I've started to look into these topics, but I got confused.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Text drawn on top of the chart
Collapse
X
-
Text drawn on top of the chart
I want to write the session date of each session at the top of the chart. What I don't want is to use Draw.TextFixed(). How can I calculate the y coordinate location of the text Rect?
Since I have never used either ChartPanels or ChartControls, I've started to look into these topics, but I got confused.
Tags: None
-
Hello Gianpiero,
The top of the panel can be found with ChartPanel.Y.
Below is a link to the help guide.
As well as a link to an example of rendering text.
Simple script that adds a background watermark of the instrument symbol (and expiry if a future) to the chart. (Updated July 10th, 2018 ‐ The opacity needed to be casted as a double and divided by 100 to be between 0 and 1) (Update: August 24th, 2021 – Subtracted the ChartPanel.Y so indicator can be […]Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
57 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
78 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
39 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
101 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
61 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment