Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

get min and max current Y-axis in NT7

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

    get min and max current Y-axis in NT7

    Hi

    How can get min and max values current left and right Y-axis the chart?
    Pls type code example.

    Thanks

    #2
    Hi Nikoli,

    You can get the maximum value of a defined range of previous bars using MAX(), and minimum using MIN(), however, unfortunately, there is no supported way to get the maximum or minimum of the currently displayed y values of a chart.

    More info on MAX() at - http://www.ninjatrader-support.com/H...tml?MaximumMAX
    TimNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Tim View Post
      Hi Nikoli,

      You can get the maximum value of a defined range of previous bars using MAX(), and minimum using MIN()
      ok,
      how calculate count visible bars ?

      Comment


        #4
        Unfortuantely accessing those is unsupported Nikoli (though doable through the ChartControls as a hint).

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Unfortuantely accessing those is unsupported Nikoli (though doable through the ChartControls as a hint).
          Sorry, but may be it is possible in


          publicoverridevoid Plot(Graphics graphics, Rectangle bounds, double min, double max){
          ?

          Comment


            #6
            Hi Nikoli,

            Unfortunately, overriding the plot method would also be unsupported.
            TimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 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
            567 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