Support Board
Date/Time: Sun, 08 Sep 2024 00:10:51 +0000
[User Discussion] - Graphical Issue With Bar Draw Style Never Fixed
View Count: 129
[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. |
![]() |
[2024-07-29 00:00:10] |
Sierra_Chart Engineering - Posts: 16292 |
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
|
![]() |
To post a message in this thread, you need to log in with your Sierra Chart account: