Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Keeping the chart moving, but not changing scale

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

    Keeping the chart moving, but not changing scale

    Hi,

    I want my chart to keep the price on the screen. I know there is a keep in the centre option, but I find that scrolls to much history off the top / bottom of the screen. I want to maximise that, but I can't have the scale change, so don;t want to use the F. So, can I get the screen to scroll up or down as the price approaches the upper or lower boundery of the screen only? If not built in, with my indicator code?

    Thanks

    #2
    Hello pjsmith,

    Thank you for your post.

    You can do it in an indicator with two DrawHoriztonalLine()s and setting them to the needed values and making sure they are AutoScale = true. However, the easier way is to right click on the price display or Y axis of the chart > select Properties > set the Margin Upper and Lower to the desired values > select Apply to see the change before closing the window > select OK to apply the change and close the window. Make sure Range is on Automatic in order to adjust the Margin Upper and Lower.

    Comment


      #3
      Thanks - I had not seen those functions. I had a play, but it does not do quite what I want, I think

      If I use the 'Right Scale' options and set range to automatic, it changes the right hand scale, squashing all the data on my charts when there are large ranges. What I want is the chart to auto move up and down as the price meets the boundary of the window, up or down, but to not change the vertical scale. This is important as not only do you get used to the swing sizes visually, but it prevents all the data being far to separated in quiet periods or all squashed up in big swings. Does this make sense?

      [edit] I created an indicator just to 'darwhorizontalline' at current price and set scale to 'true' I think this may work. Will try it next week.
      Last edited by pjsmith; 09-10-2016, 04:51 AM.

      Comment


        #4
        OK, the drawline obviously does not work as you need the auto scale on for this.

        To summarise, I want the chart to scroll up and down, but without changing the vertical scale. Like the 'center on price' option, but only when the price reaches the top or bottom of the window.

        I have been looking for a way to vertically scroll the chart window programatically, but I cannot find a way. I could send keystrokes, but unfortunately the only way to scroll and retain scale seems to be the ctrol-mouse-drag option.

        Any suggestions?

        Comment


          #5
          I have mentioned this a few times and Brett has said they will look at it. I hope they do. BTW, I have solved this in NT7 by using the IT_ChartSquare tool.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          650 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X