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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X