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 cmoran13, 04-16-2026, 01:02 PM
|
0 responses
42 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
25 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
162 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
98 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
157 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment