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 ender_wiggum, Today, 09:50 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by rajendrasubedi2023, Today, 09:50 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by geotrades1, Today, 10:02 AM
            0 responses
            4 views
            0 likes
            Last Post geotrades1  
            Started by bmartz, Today, 09:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by geddyisodin, Today, 05:20 AM
            3 responses
            24 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X