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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        27 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X