Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reference to indicator color
Collapse
X
-
Reference to indicator color
I am trying to build a strategy that refers to the plot color because the indicator (and others like it) doesn't output any specific values that can be used as a trigger (not that I can figure anyway), only changes color. I am setting up the formula as shown in picture, plot [0] == blue [0], but that doesn't seem to work, i.e. the sound doesn't play when the color changes to blue. I tried looking at the code of the indicator to see if I could change it so that it output a different number for each color, but no joy at this point. I would appreciate any help. Thank you.Tags: None
-
I get why it's not working now, cause blue, pink, etc. is not the result of plot[0] but separate outputs. Hmmm.
-
So I tried adding this:
Plot1.Set(Value[0] < Close[0] ? 0 : (Value[0] > Close[0] ? 1 : 2));
and this
Plot1.Set(Values[1][0] = Value[0] ? 0 : (Values[2][0] = Value[0] ? 1 : 2));
to the original code (not at the same time), but it did't like either one. It gives me error code CS0103, which says I most likely have a typo, but I don't think that is the problem. Thank you.
Comment
-
-
Figured that part out, but still working on the overall concept, will post if anything worthwhile. Thanks.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
87 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
106 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment