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 trilliantrader, Today, 08:16 AM
        0 responses
        3 views
        0 likes
        Last Post trilliantrader  
        Started by AttiM, 02-14-2024, 05:20 PM
        9 responses
        174 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by funk10101, Today, 08:14 AM
        0 responses
        2 views
        0 likes
        Last Post funk10101  
        Started by adeelshahzad, Today, 03:54 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by RookieTrader, Today, 07:41 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X