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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
31 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
19 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
9 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
17 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment