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

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 Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,788 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            837 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,293 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            13 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            63 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X