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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        42 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X