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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
563 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
329 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment