Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adjusting Price scale to default after applying indicator to the chart

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

    Adjusting Price scale to default after applying indicator to the chart

    Hello everyone,

    i have one indicator that plots Horizontal Lines on different prices calculated with in the indicator. after applying the indicator to the chart, the indicator shrinks the price scale and i am having problem in restoring the price scale to default. When i remove the indicator from chart, it automatically resets the price scale to default.

    i want to regain the default price scale state regardless of whether i am able to see all objects in my chart window or not.

    Please provide me some assistance on this.

    Thanks,
    Vivek

    #2
    Hello engrvivs,

    Thank you for your post.

    Glad to assist. This option can be disable in the Indicators window. To do this, right click on the chart > Indicators. Select the plotted indicator in the lower left, then disable the right Auto Scale setting > Press OK.

    Let us know if we may assist further.

    Comment


      #3
      Hello NinjaTrader_EricB,

      Thanks for the reply, Can you please tell me, how it can be done programmatically.

      Thanks,
      Vivek

      Comment


        #4
        Hello Vivek,

        Thanks for your reply.

        You can use IsAutoScale = false; in the OnStateChange() method inside State.setDefaults or State.Configure. to prevent the indicator from being included in the autoscale of the chart.

        Reference: https://ninjatrader.com/support/help...sautoscale.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        60 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        39 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        21 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        23 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X