• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

drawLine function

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

    drawLine function

    hi,

    i want to draw a line on the chart panel. i use the DrawLine() function. but, this function needs y axis co-ordinate. That means i need to convert the price to a y axis co-ordinate value.

    Do you have function that can just take the price value and draw a line on the chart?

    Plot function is not an option because i need to delete the line later and plot object can not be deleted.

    #2
    Hi AutoTraderOne,

    What is the context that you will be placing the DrawLine on the chart panel?

    What I mean is what kind of value are you wanting to pass through the DrawLine()?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I believe for the standard supported draw objects the y-axis value is input as price. For example, if you want the line to draw at the level of the last bar's closing price your y value would be Close[1].

      hth

      Comment


        #4
        thank you for helping. It is my mistake. DrawLine did take price value as input.

        Comment


          #5
          Having trouble with DrawLine()

          I cant seem to get the drawline function to work on my RSI, any help>> or example, thanks

          Comment


            #6
            Hello dv1234567,

            Thanks for your post and welcome to the forums!

            The help guide provides an example of DrawLine: http://www.ninjatrader.com/support/h...l?drawline.htm

            If you are trying to draw a line in an indicator panel, then you will also want to make sure that you set DrawOnPricePanel = false; as the default is true. Please see: http://www.ninjatrader.com/support/h...pricepanel.htm

            Please let me know if I can be of further assistance.
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Please Help

              I am trying to get the DrawLine() to draw lines on the price chart and on the indicator panel at the same time, whenever i mess with DrawOnPricePanel = false, all the lines everywhere dissappear, any ideas, thanks

              Comment


                #8
                Hello,

                This would not be possible from a single indicator.

                DrawOnPricePanel toggles if the indicator will draw on the price panel or on the panel the indicator is currently in.

                In order to draw on multiple panels, there is the option of two indicators, one set to the price panel and the second set to its own panel.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Newtrader101, Today, 10:31 AM
                1 response
                10 views
                0 likes
                Last Post koganam
                by koganam
                 
                Started by nepenthean, Today, 12:36 PM
                0 responses
                4 views
                0 likes
                Last Post nepenthean  
                Started by sun0781, Yesterday, 05:02 PM
                1 response
                20 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Started by Emma1, Today, 12:14 PM
                0 responses
                2 views
                0 likes
                Last Post Emma1
                by Emma1
                 
                Started by Hanstanz, Today, 04:44 AM
                1 response
                17 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Working...
                X