Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
On indicator and graph. Add vertical lines, circles, text, fill and coloring.
Collapse
X
-
Hello SJunior,
To draw a vertical line call the Draw.VerticalLine() method.
To draw a dot call the Draw.Dot() method.
To change the color of a bar set BarBrush to a new brush.
To shade a region between two plots call the Draw.Region() method.
With these methods, the Strategy Builder may be a useful way of learning how to use these methods.
For text, there is a Draw.Text() method.
However, you may need to custom render if you need to position the text a specific way.
Below is a link to a user app share script that custom renders 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 […]
As well as a link to an example that renders in relation to the bars.
Last, below is a link to a forum post with helpful resources on getting started with C# and NinjaScript.
Chelsea B.NinjaTrader Customer Service
- Likes 1
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