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.
    Eric B.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X