Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

        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 lightsun47, Today, 03:51 PM
            0 responses
            2 views
            0 likes
            Last Post lightsun47  
            Started by 00nevest, Today, 02:27 PM
            1 response
            8 views
            0 likes
            Last Post 00nevest  
            Started by futtrader, 04-21-2024, 01:50 AM
            4 responses
            41 views
            0 likes
            Last Post futtrader  
            Started by Option Whisperer, Today, 09:55 AM
            1 response
            13 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            8 views
            0 likes
            Last Post port119
            by port119
             
            Working...
            X