Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw a tight small line in the 50 % of the last closed candle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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);
    Last edited by kimo2023; 10-13-2022, 02:17 PM.

    #2
    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>

    Comment


      #3
      thank you very mush resolved

      Comment

      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 Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      574 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X