Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw two conditions on the same candle at the same time
Collapse
X
-
Draw two conditions on the same candle at the same time
Hello. If there are two different conditions in a candle at the same time, how can I draw a yellow triangle on the candle and green under the candle? The indicator either draws me a yellow triangle or a green one, but not both at the same time. How could I do it? Thank youTags: None
-
Hello julifro,
Thanks for your reply.
If both of the dots are using the same tag name only the last one would appear. You are using the CurrentBar number for the tag name. All you need is to add some string in front of that, like:
Draw.Dot(this, "A"+CurrentBar.ToString(), true, 0, High[0] - TickSize, Brushes.Azure);
Draw.Dot(this, "B"+CurrentBar.ToString(), true, 0, High[0] - 5 * TickSize, Brushes.Gold);
Draw.Dot(this, "C"+CurrentBar.ToString(), true, 0, High[0] - 10 * TickSize, Brushes.Orange);
Draw.Dot(this, "D"+CurrentBar.ToString(), true, 0, High[0] - 15* TickSize, Brushes.Red);
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
141 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment