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