Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartScale (YAxis) price values

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

    ChartScale (YAxis) price values

    Is it possible to programmatically get the price values on the price scale?

    Click image for larger version

Name:	cs1.png
Views:	156
Size:	17.4 KB
ID:	1162200

    #2
    Hi newbe17, thanks for posting.

    The ChartScale object contains data for the charts price scale:
    https://ninjatrader.com/support/help...chartscale.htm

    Best regards,
    -ChrisL

    Comment


      #3
      Yes, but ChartScale does not contain an array of prices displayed on this scale

      Comment


        #4
        Hi newbe17, thanks for your reply.

        It contains the min and max value of the scale, so you can iterate from min to max, increasing the price by TickSize to get every tick in between the chart scale.

        Best regards,
        -ChrisL

        Comment


          #5
          No. That's not what I meant. I need to get prices that are drawn on the scale itself (and that change when zooming)

          Comment


            #6
            Hi newbe17, thanks for your reply.

            NinjaScript does not have a method that would provide the visual ticks that are on the chart, that would need to be calculated manually to mimic what the ChartScale>Properties are doing with the linear margin calculation.

            Best regards,
            -ChrisL

            Comment


              #7
              How do I do this manually?

              Comment


                #8
                Hi newbe17, thanks for your reply.

                NinjaTrader uses code that is not exposed to us to calculate the scale of the chart, I, unfortunately, do not have an exact solution for how to do this.

                Best regards,
                -ChrisL

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                628 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                359 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                562 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                568 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X