Login Page - Create Account

Support Board


Date/Time: Sat, 27 Jul 2024 05:02:54 +0000



[User Discussion] - Log Scale Padding Broken

View Count: 135

[2024-02-10 05:33:57]
esMike - Posts: 68
Hello, would it be possible for you to fix padding for Log Scale charts?

Percentage padding doesnt add any space to the top or bottom. Maybe use fixed top/bottom padding for log scale if it's an issue?
[2024-02-10 05:46:12]
esMike - Posts: 68
I was able to fix it for myself by making this chart spacer study, but you should still fix log scale padding.


    int barsOnChart = sc.IndexOfLastVisibleBar - sc.IndexOfFirstVisibleBar;
    sc.Highest(trueHigh, highestBar, barsOnChart);
    sc.Lowest(trueLow, lowestBar, barsOnChart);

    float chartRange = highestBar[sc.Index] - lowestBar[sc.Index];

    //Spacer
    if (trueMedian[sc.Index] > trueMedian[sc.Index - 1]) {
      hiddenChartSpacer[sc.Index] = trueHigh[sc.Index] + chartRange * 0.02f;
    }
    else if (trueMedian[sc.Index] < trueMedian[sc.Index - 1]) {
      hiddenChartSpacer[sc.Index] = trueLow[sc.Index] - chartRange * 0.02f;
    }

[2024-02-10 21:23:29]
Sierra_Chart Engineering - Posts: 15584
Yes definitely develop your own solution. There is not anything broken. This is by design:
would it be possible for you to fix padding for Log Scale charts?

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, 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