Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 19:26:58 +0000



[User Discussion] - Graphical Issue With Bar Draw Style Never Fixed

View Count: 183

[2024-07-26 16:04:37]
esMike - Posts: 69
This graphical issue has been present for years. Never fixed yet...

The graphical bar style draws one pixel taller when it has a width of 2 or more pixels, vs a width of 1 pixel. Please just have some coder just fix it. It's probably just one mistake in one line of code.

There is no consistent workaround for the issue.
imageGlitch.png / V - Attached On 2024-07-26 16:03:36 UTC - Size: 22.1 KB - 46 views
[2024-07-29 00:00:10]
Sierra_Chart Engineering - Posts: 17150
What is the exact name of the Draw Style you are using?

Not sure there is anything we can do about this but we will look. Because it may be controlled by the operating system. Usually that is the cause of things like this.
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
[2024-07-29 05:08:20]
esMike - Posts: 69
It effects the plain DRAWSTYLE_BAR and DRAWSTYLE_BARTOP draw styles.

It only happens at positive values, not negative values. Negative values everything is lined up correctly.
Attached is a very clear 4x zoom picture of the problem.

It's very odd... As long as Width is 1, there is no problem. The misalignment occurs when you increase the Width to 2 or higher.

Below is a "hacky" fix for the problem which I use. I adjust all Width 2+ DRAWSTYLE_BAR type drawings to 0.8% reduced height relative to study value range.

      for (int Index = sc.Index; Index >= sc.Index - chartBars; Index--) {
        if (pulseStr[Index] > 1) {
          pulseStr[Index] = pulseTop[Index] - studyRange * 0.008f;
        }
        if (pulseSup[Index] > 1) {
          pulseSup[Index] = pulseTop[Index] - studyRange * 0.008f;
        }
        if (pulseExt[Index] > 1) {
          pulseExt[Index] = pulseTop[Index] - studyRange * 0.008f;
        }

      }

Date Time Of Last Edit: 2024-07-29 05:40:13
imageproblem.png / V - Attached On 2024-07-29 05:07:55 UTC - Size: 35.72 KB - 47 views

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

Login

Login Page - Create Account