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.

    Kate W.NinjaTrader Customer Service

    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.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by proptradingshop, Yesterday, 11:30 AM
        9 responses
        29 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NRITV, Today, 09:05 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by xiinteractive, Today, 08:29 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by DT215, 08-08-2023, 11:03 AM
        3 responses
        444 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by Thomas79, Today, 08:14 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X