I was wondering if anyone knows how to create toolbar buttons to zoom the chart to a variety of levels that display a certain number of bars back from the latest visible bar. I know under the menu item View > Zoom there are the options "ALL" and "Normal" and normal is a certain number of bars from the last visible bar (as configured in the preferences menu).
What I was hoping to achieve is to be able to click on a tool bar zoom to the last
5 bars (roughly a week)
20 bars ( roughly a month)
-63 bars (roughly 3 months)
-125 bars (roughly 6 months)
-250 bars (roughly a year of trading)
With a button for each option. I am using EOD data. This would give me consistency when trying to view trends over certain time frames.
I know there are SetChartOptions to control the Y_min and Y max but not sure how to control the X-Min and X-max.