Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting line levels from code

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

    #16
    Thank you Matthew

    Comment


      #17
      Originally posted by NinjaTrader_Matthew View Post
      With IFibonacciRetracements you can read the Anchor points (startY & endY), which would be the 0% and 100% lines, but you cannot directly read the individual lines. If you would like these values to be read by an indicator, you can calculate these values from the anchor points.
      This is only true if we can read the %age values of each of the lines relative to the 0 and 100% anchors . . then yes we can calculate the price values for each of the lines.

      Is it possible to get the %age values for each of the lines ?

      Comment


        #18
        I'm sorry, what do you mean by %age?
        MatthewNinjaTrader Product Management

        Comment


          #19
          Originally posted by NinjaTrader_Matthew View Post
          I'm sorry, what do you mean by %age?
          %age = percentage . . .

          The anchors are at 0% and 100% . . . to calculate the price of a level at 43.8%, or any other %age, I need to be able to read from the Fib that that level is at 43.8% (or 0.438 ). . then using the 0% and 100% anchor line prices I can calculate it's price . . .

          And conversely to draw a Fib with anchors of my choice I need to be able to set the Fib level percentage values. . .

          Comment


            #20
            Hello,

            There is not a support method to read these fib levels. However if you have the start and end X prices, you can calculate them yourself through custom coding in the script itself.

            The fib level is going to be a percentage of the difference High and the Low.
            MatthewNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 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
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X