Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText - Y intercept

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

    DrawText - Y intercept

    Greetings,

    Would anyone be familiar with how to either
    (a) DrawText at the low chart y component

    I would use DrawFixed with TextPositionBottom, but I need several lines of text stacked on top of each other.

    I can seem to find a way to reference the y intercept on the chart.

    Any help would be greatly appreciated.

    #2
    Originally posted by SigLogic View Post
    Greetings,

    Would anyone be familiar with how to either
    (a) DrawText at the low chart y component

    I would use DrawFixed with TextPositionBottom, but I need several lines of text stacked on top of each other.

    I can seem to find a way to reference the y intercept on the chart.

    Any help would be greatly appreciated.
    Easiest method would be to use "\n", making new lines where you want.

    Comment


      #3
      Hello all,

      I am newbie on this forum, but I am getting the hang of it pretty quickly.
      How to find y intercepts is given two points?FULL POINTS for best answer ! (: please helppp?
      My two points are
      (-2,1) and (5,6)

      that means the slope.
      m = 5 / 7

      now I need to know how to find the y-intercept aka b.
      (y=mx+b)

      thankssssss in advance(: x

      Comment


        #4
        Hello,


        Thank you for your note.


        Two points of what? You could also use price and number of bars to do this as well. You dont need exact coordinates. Simply use the calcs for number of bars (CurrentBar) for the X and the price for the Y. This will get you your coordinates of anything drawn to the chart in relations do plots and chart data.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Originally posted by geeknick View Post
          Hello all,

          I am newbie on this forum, but I am getting the hang of it pretty quickly.
          How to find y intercepts is given two points?FULL POINTS for best answer ! (: please helppp?
          My two points are
          (-2,1) and (5,6)

          that means the slope.
          m = 5 / 7

          now I need to know how to find the y-intercept aka b.
          (y=mx+b)

          thankssssss in advance(: x
          Use one of the known pairs to find "b".

          b = y - mx
          b = 6 - (5 * 5/7)

          Comment


            #6
            Originally posted by koganam View Post
            Use one of the known pairs to find "b".

            b = y - mx
            b = 6 - (5 * 5/7)
            Thanks for the help !!!!!!!!!!!!!!!!!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cmoran13, Yesterday, 01:02 PM
            0 responses
            23 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            16 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            160 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            94 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            147 views
            2 likes
            Last Post CaptainJack  
            Working...
            X