Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw an arrow as signal
Collapse
X
-
Link below is the coding to draw arrow :
Basically, you have to make a condition for it to draw. For example :
** Remember to plus CurrentBarCode:if (Condition here) Draw.ArrowUp(this, "tag1 " + CurrentBar, true, 0, Low[0] - TickSize, Brushes.Red);
From your picture, it must be have condition for it to draw the region.
Make you just put the draw arrow function inside there function.
-
Hello Rosario,
Thanks for your post.
You would need to devise some logic to create the situation you have. The situation is that you have a variable length of background drawing.
One approach to this would be to create an int variable to use as a counter. When you do NOT have the condition to draw the background you would set the counter to 0. When you do have the condition to draw the background you increment the counter. When the counter is 1, you draw the arrow.
if (some condition to draw the background)
{
BackBrush =...
myCounter++; // increment counter
if (myCounter == 1)
{
Draw.arrow....
}
}
else
{
myCounter = 0; // reset the counter if NOT drawing the background
}
Comment
-
Hello, Paul
Thanks for your reply. Attached file. It works ok.
Sincerely,Attached Files
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
92 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
48 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
106 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment