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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
232 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
150 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
161 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
243 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
198 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment