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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
557 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
545 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