Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawHorizontalLine

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

    DrawHorizontalLine

    Hello all,
    when i use DrawHorizontalLine , I'm getting the result i want but , the line is clickable and movable and doesn't display the price on Y axis , so I'm trying to swich to use Plot,
    Add(new Plot(Color.Navy, PlotStyle.Line, "Line1"));
    Line1.Set(Line1Value);

    this way I have to use the code under OnBarUpdate and for every bar , is there any way to make the line extended ? without looping thru every bar ? or if that's not possible is there a way to draw a line with DrawHorizontalLine but the line is not clickable nor movable and points/displays the price on Y axis ?
    Thanks alot

    #2
    Doing some search , i found using
    Add(
    new Line(Color.Gray, 1250, "whatever")); will genrate unclickable, unmovable line, Great, but it doesnot display the the price on Y axis. what to do ?

    Comment


      #3
      Unfortunately not. You will need to update it every bar or just use the DrawHorizontalLine and have it being clickable.

      You could try overriding the Plot() method to draw a static line, but this is beyond the level of programming we can support on the forums.

      Edit: I thought you did not want it to show a the price marker?
      Last edited by NinjaTrader_JoshP; 09-09-2008, 03:53 PM.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Josh View Post
        Unfortunately not. You will need to update it every bar or just use the DrawHorizontalLine and have it being clickable.

        You could try overriding the Plot() method to draw a static line, but this is beyond the level of programming we can support on the forums.

        Edit: I thought you did not want it to show a the price marker?
        I want to show the price marker , is that possible using Add(new Line(Color.Gray, 1250, "whatever")); ?

        Comment


          #5
          I believe not. You could try PaintPriceMarkers = true in the Initialize() method. If that doesn't work then it is un-doable.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jc.am, Today, 07:59 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by ybhx0315, Today, 09:06 PM
          0 responses
          6 views
          0 likes
          Last Post ybhx0315  
          Started by parkinsonbr, Today, 08:23 PM
          0 responses
          3 views
          0 likes
          Last Post parkinsonbr  
          Started by i2w8am9ii2, Today, 04:36 PM
          2 responses
          13 views
          0 likes
          Last Post i2w8am9ii2  
          Started by WeyldFalcon, Today, 02:07 PM
          2 responses
          16 views
          0 likes
          Last Post WeyldFalcon  
          Working...
          X