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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      29 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      184 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      337 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      262 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X