Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Scale minumums and maximums

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

    Chart Scale minumums and maximums

    Hi Guys, I have built an indicator that has large outliers. How do I set for example the right hand scale of this chart to a maximum of 20 so it isn't so squashed.

    Thanks
    DJ
    Attached Files

    #2
    DJ, you can right click in the Y Axis scale, click on properties and then set your Range to 'Fixed' to enter the min / max used.

    Comment


      #3
      Chart Scale

      Hi Bertrand, thanks yes I knew about that. What I'm trying to do is set it in the indicator itself rather than having to adjust it manually all the time.

      Cheers
      DJ

      Comment


        #4
        Hi DJ, setting this programmatically would unfortunately not be supported.

        Comment


          #5
          Chart Issues

          Thanks Bertrand, is there a workaround to this?

          Such as:

          if value > 20 do not plot this value or something where it only plots values < than a certain number anything else is ignored?

          Cheers
          DJ

          Comment


            #6
            Hi Dj,

            Yes, you could control upper /lower bounds as part of setting a plot. It's probably better to check non-plot values though instead of overwriting a previously set plot value. Turn your value into either a double or a DataSeries which will not be plotted.

            if (myValue > 20)
            myPlot.Set(20);

            else myPlot.Set(myValue);
            Ryan M.NinjaTrader Customer Service

            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