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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            87 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            106 views
            0 likes
            Last Post CarlTrading  
            Working...
            X