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

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).
        BertrandNinjaTrader Customer Service

        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 Vietanhnguyen2hotmailcom, Yesterday, 10:29 AM
            4 responses
            23 views
            0 likes
            Last Post Vietanhnguyen2hotmailcom  
            Started by PhillT, 04-19-2024, 02:16 PM
            4 responses
            35 views
            0 likes
            Last Post PhillT
            by PhillT
             
            Started by ageeholdings, 05-01-2024, 05:22 AM
            5 responses
            37 views
            0 likes
            Last Post ageeholdings  
            Started by reynoldsn, Today, 02:34 PM
            0 responses
            13 views
            0 likes
            Last Post reynoldsn  
            Started by nightstalker, Today, 02:05 PM
            0 responses
            21 views
            0 likes
            Last Post nightstalker  
            Working...
            X