so that if I have WMA(20) and EMA(30) i can easily tell which is which by their colors of the text
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I get the color of an indicator programatically
Collapse
X
-
How do I get the color of an indicator programatically
basically what I want to do is to get the color of an indicator (single plot) and set its text to that same color.
so that if I have WMA(20) and EMA(30) i can easily tell which is which by their colors of the textTags: None
-
Hello Mike82,
Thank you for your post.
You may be able to achieve what you want with custom programming, and the following reference sample helps with some of the label formatting available. The DrawTextFixed() method provides an overload that allows font colors.
Ryan M.NinjaTrader Customer Service
-
To retrieve a Plot's color, try:Originally posted by mike82 View Postbasically what I want to do is to get the color of an indicator (single plot) and set its text to that same color.
so that if I have WMA(20) and EMA(30) i can easily tell which is which by their colors of the text
Plots[#].Pen.Color
Where # = the number of the Plot (starting at 0) that you Add in Initialize.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
168 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
323 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
248 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment