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

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

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

        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 aussugardefender, Today, 01:07 AM
            0 responses
            3 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            238 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            384 views
            1 like
            Last Post Gavini
            by Gavini
             
            Started by oviejo, Today, 12:28 AM
            0 responses
            4 views
            0 likes
            Last Post oviejo
            by oviejo
             
            Started by pechtri, 06-22-2023, 02:31 AM
            10 responses
            125 views
            0 likes
            Last Post Leeroy_Jenkins  
            Working...
            X