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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
35 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
12 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
18 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment