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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            580 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            335 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            102 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X