Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 21:53:00 +0000



Post From: Log Scale Padding Broken

[2024-02-10 05:46:12]
esMike - Posts: 69
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;
    }