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 llanqui, Today, 03:51 PM
            0 responses
            2 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by Quanto, 04-17-2024, 10:43 AM
            2 responses
            22 views
            0 likes
            Last Post Quanto
            by Quanto
             
            Started by Irukandji, Today, 03:06 PM
            0 responses
            6 views
            0 likes
            Last Post Irukandji  
            Started by cmtjoancolmenero, 04-25-2024, 03:58 PM
            17 responses
            95 views
            0 likes
            Last Post cmtjoancolmenero  
            Started by nleitman, Today, 11:46 AM
            8 responses
            20 views
            0 likes
            Last Post nleitman  
            Working...
            X