Draw.HorizontalLine(this, "myLine", High[0] - ((High[0] - Low[0]) / 2), Brushes.Yellow);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
draw a tight small line in the 50 % of the last closed candle
Collapse
X
-
draw a tight small line in the 50 % of the last closed candle
Hello everybody ? this is my first request in this forume , i would be very thankful if someone could help me , this code draw a line in hole chart , what can i add to draw it only in the last candle
Draw.HorizontalLine(this, "myLine", High[0] - ((High[0] - Low[0]) / 2), Brushes.Yellow);1 PhotoLast edited by kimo2023; 10-13-2022, 02:17 PM.Tags: None
-
Hello kimo2023,
Thanks for your post.
Draw.HorizontalLine() will draw a horizontal line across the chart at the value you pass into the method.
You could use the Draw.Line() method to draw the line from a start point to an endpoint instead of across the entire chart.
See this help guide page for more information about Draw.Line() and sample code: https://ninjatrader.com/support/help.../draw_line.htm
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment