Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fixed Scale Indicators?

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

    Fixed Scale Indicators?

    I have an indicator (not panel 1) that displays only values between 0 and 100. The range 0 through 100 (not -100 to 100) must always be displayed regardless of the height of the panel. I can find no way in NinjaScript to implement this.

    Any ideas?

    Thanks

    RVR

    #2
    Unfortunately this is no supported at this time.

    Comment


      #3
      You can try adding two Black plots at values 100 and -100. Then set AutoScale to true.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        I'll Wait

        Thanks folks. I think I'll wait for NT7. This should be a really simple feature once the developers decide it's needed.

        Comment


          #5
          Add this, I got this from this forum too.

          public override void GetMinMaxValues(ChartControl chartControl, ref double min, ref double max)
          {
          min = -65; // As far south as it can go.
          max = +65; // Set a top limit too.
          }

          Comment


            #6
            Update for NT8

            For anyone wanting to do this in NT8:

            Code:
                    public override void OnCalculateMinMax()
                    {      
                       MinValue = 0.0;
                       MaxValue = 100.00;
                    }
            This is a very useful snippet

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            160 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            307 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            244 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            348 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            178 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X