Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 15:22:38 +0000



May I have an example study for setting sc.AutoScalePaddingPercentage?

View Count: 695

[2020-06-02 23:12:35]
User497913 - Posts: 6
I have tried to set this in my study but it does not do anything. Below is the code
  if (sc.MenuEventID == ACS_BUTTON_2)
  {
    const int ButtonState = (sc.PointerEventType == SC_ACS_BUTTON_ON) ? 1 : 0;
    if (ButtonState == 1)
    {
      sc.SetCustomStudyControlBarButtonEnable(ACS_BUTTON_2, 0);
      sc.AutoScalePaddingPercentage = -0.08f;
    }
  }
I am not looking for programming help. I think this variable does not work as described.
Can you give an example study like those in Studies.cpp? Thanks.
[2020-06-04 06:51:42]
Sierra Chart Engineering - Posts: 104368
Are you trying to set this variable on the study or on the main price graph?

Refer to:
ACSIL Interface Members - Variables and Arrays: sc.BaseGraphAutoScalePaddingPercentage
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2020-06-04 06:52:48
[2020-06-05 13:42:23]
User497913 - Posts: 6
They are the same for my study, because sc.GraphRegion is set to 0. I have tried sc.BaseGraphAutoScalePaddingPercentage as well but still nothing happens on the scale.
[2020-06-05 23:25:43]
Sierra Chart Engineering - Posts: 104368
Setting that to a nonzero value definitely does change the scale of the main price graph. Try setting it to .5. It is very reliable.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to 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