Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal Line?

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

    Horizontal Line?

    Hello,

    How do I draw a horizontal line that I can move to different heights?

    I've tried the AddLine ... but it always draws at zero height. The only way I can change the height is using the configuration panel.

    Many Thanks, Caesar.

    #2
    Hello Skechers,

    Thank you for your post.

    You can use Draw.HorizontalLine() to draw a line at any price level you like:



    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Well,

      I have tried these and can't get a line:

      Code:
      HorizontalLine LineHi = Draw.HorizontalLine(this,"MACDHi", Threshold, Brushes.Yellow);
      HorizontalLine LineLo = Draw.HorizontalLine(this,"MACDLo", Threshold*-1, Brushes.Yellow);
      Draw.HorizontalLine(this, "tag1", 5, Brushes.White);
      I've tried in OnStateChange, OnBarUpdate, and OnDataLoaded ..

      What am I missing?

      Many Thanks, Caesar.​

      Comment


        #4
        Hello Skechers,

        Thank you for your reply.

        Are you trying to draw the lines in an indicator panel and not the price panel? If so, make sure DrawOnPricePanel is set to false in State.SetDefaults and you should see them show up.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        98 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        142 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        69 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        77 views
        0 likes
        Last Post PaulMohn  
        Working...
        X