Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

advice? auto resize price panel when price is running

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

    advice? auto resize price panel when price is running

    I scalp the NQ and when the price is pushing the high or low boundaries of the panel it is a distraction and delay for me to manually adjust the price panel so I can give the price some "open space" to move.

    I need a way to do this automatically so I am not constantly manually adjusting the high/low boundary of the panel when the prices is running.

    I would like to write an indicator that will have a parameter, of say a (top and bottom) default of 50 ticks, that once a minute or so, the panel will auto adjust so that at least that the top or bottom (two parameters) boundary has at least that much room to move from the current price

    this could be accomplished by drawing an auto-scale object at that new boundary price

    to check the current display (panel) Top/Bottom would this be as simple as checking the ChartPanel.MaxValue and ChartPanel.MinValue against the current price?





    #2
    No indicator needed. ninjatrader.com/support/helpGuides/nt8/index.html?chart_panels.htm Understanding panel properties -> Margin lower/upper

    Comment


      #3
      !!!!!!!

      Thank you!!!

      Comment


        #4
        Ok, I checked this out...and it is useful, but what I need is to set it in code, dynamically, based on current conditions, when it is running I would toggle more top or bottom "margin". Otherwise I would like it to be the default setting.



        there seems to be no way to do this .... or, is there?

        in other words, to be able to set these panel properties dynamically
        Margin type Sets the calculation mode for determining the upper and lower panel margins by "Price" or "Percent". (Percent values are whole percents. For example, entering a value of "1" equals 1%.)
        Margin lower Sets the lower margin value
        Margin upper Sets the upper margin value

        Comment


          #5
          ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?chartscale_propertie s.htm
          There is a warning that it may not work. I never tested it myself. If it doesn't work just make some transparent drawings with autoscale.

          Comment


            #6
            Hello llanqui,

            Do you have Auto Scale checked in the dataseries settings? The chart should by default automatically scale to include the price as its moving out of the current viewable range. The only reason it would not would be if you modified the auto scale or the margin settings to prevent that.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X