Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 16:35:57 +0000



Button to scale the chart to a number of bars

View Count: 260

[2023-07-26 06:08:39]
Piotr Grzegorzek - Posts: 21
Hi,

I need to have buttons to scale the chart to a specific number of bars/candles.
Eg. 10 bars / 25 / 50 / 100 / 250 / 500.

Is it possible to create such buttons?
[2023-07-26 14:09:55]
John - SC Support - Posts: 36322
This is not supported, except by having only those number of bars displayed at a time.

You can create a custom study that would do this by finding the High and Low for the number of bars you want and then setting the top and bottom of the scale. Refer to the following variables:
ACSIL Interface Members - Variables and Arrays: sc.BaseGraphScaleRangeBottom
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account