Support Board
Date/Time: Sun, 01 Jun 2025 01:32:38 +0000
Dotted/Dashed lines looks often as solid lines
View Count: 1264
[2021-04-01 18:01:36] |
User893396 - Posts: 40 |
Hello, On the Charts I display Today's OHLC as lines and Yesterday's OHLC as dotted lines. The problem is that when I horizontally zoom at maximum (which I often do), not only the candlesticks shrink horizontally but also the distance between the dots of dotted/dashed lines. That disturbing behavior makes the dotted/dashed lines most of the time indistinguishable from solid lines. IMHO, a dotted line should look the same no matter what zoom we choose for the candlesticks. And trying other draw styles doesn't help: they all look like lines at maximum zoom. Would you consider fixing that, so we are not forced to use fancy coloring that makes the charts hard to read and ugly? Thanks |
[2021-04-01 18:58:42] |
John - SC Support - Posts: 40127 |
Dotted lines have always been problematic. You mention dashed lines also having the same behavior, although we do not see this ourselves. Try using a dashed line and if that helps. Another option, if your graphics card supports OpenGL, and if you are not already using it, would be to enable the OpenGL option to see if it changes the behavior of the lines. Refer to the following: Graphics Settings: Use OpenGL for Chart Graphics (Global Settings >> Graphics Settings >> Other) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-04-01 19:47:39] |
User893396 - Posts: 40 |
Thanks for the fast answer. I've been on OpenGL for long already as it seems to make my DOMs more smooth. I've just tried again all the possible combinations of Line and Dash applied to Draw Styles and Line Styles, they all still result in a line at maximum zoom. Which settings do you use exactly? Appart from using different line widths (I already use different widths for day and evening sessions) and colors, is there any other Draw style I can use or something else that would help me distinguish between Today's and Yesterday's OHLC? |
[2021-04-01 21:10:09] |
John - SC Support - Posts: 40127 |
Can you give us an image with the Dashed lines please. You can follow these instructions: https://www.sierrachart.com/index.php?page=PostingInformation.php#PostingAnImage For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2021-04-01 21:10:24
|
[2021-04-02 06:33:00] |
User893396 - Posts: 40 |
http://www.sierrachart.com/image.php?Image=1617344994280.png This is at maximum horizontal zoom with the setting: - Draw Style: Line (changing this to dash give the same result) - Line Style: Dash |
[2021-04-02 06:37:47] |
User893396 - Posts: 40 |
http://www.sierrachart.com/image.php?Image=161734531998.png And this is (without changing any settings to the line) how it shows when I make the candlesticks bigger. |
[2021-04-02 14:28:39] |
John - SC Support - Posts: 40127 |
This is interesting, as we are not able to reproduce this. When we use a Dash draw style it is stays consistent regardless of the horizontal scaling. We tested this both with and without OpenGL. Can you please give us the exact steps you are using to make this occur. What kind of tool are you using? What is the configuration set to prior to drawing? Are you changing the settings after drawing? What scale are you drawing on, and then changing to? For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-04-02 15:17:04] |
Ackin - Posts: 1865 |
I've dealt with this with someone else in the past, it's happening with OpenGL turned on. It is also affected by the "width" line setting.
|
[2025-05-20 22:29:48] |
TB7000 - Posts: 19 |
I'm stuck with my work on a custom study, facing the same dashed line display issue as User893396, where lines appear solid unless horizontal zoom is very high (dash spread moves with zoom). This generally also happens with some built-in studies on certain subgraphs, but not on all. I have made additional observations, to what has been mentioned already trying to find where the difference is: - Desired Behavior: Subgraphs with "DrawStyle" settings showing "Visible"/"Ignore" option consistently display spread dashed lines, independent of zoom. (This is what I want to replicate) - Undesired Behavior: Subgraphs with the common and longer "DrawStyle" option list (Line/Bar/Dash/Square/Colorbar...etc.) exhibit the problem. So this may be related to sc.GraphDrawType. This is just an observation and may be unrelated/technically incoherent what I'm saying, but its may be an indication where we can find the solution to this. Some examples of studies where I've tested this: - Common subgraphs: Daily OHLC, InitialBalance - Both common and Visible/Ignore Type subgrpahs: VolumeByPrice (particularly interesting as it contains both "types" of subgraphs) Since VbP isn't open source, I can't directly inspect its code. - Is there any guidance on how to control this "DrawStyle" behavior? - What's the difference in how for the Peaks/Valleys lines (VbP study), as an example, are coded in the study and how can I reproduce this type of consistently spread dashed lines? Without having dashed line consistently distinguishable from continuous line, the benefit of having distinct styles loses its effect. I would highly appreciate any help to this issue. Date Time Of Last Edit: 2025-05-20 22:43:05
|
[2025-05-21 13:55:18] |
John - SC Support - Posts: 40127 |
There is nothing that can be done about this. It is an issue related to the way the system draws these options.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-05-22 06:00:20] |
TB7000 - Posts: 19 |
UPDATE: If someone comes across the same issue, which might can help in some cases: - For lines, using draw styles which are an extension from last bar do display independently from horizontal zoom (DRAWSTYLE_LINE_AT_LAST_BAR_LEFT_TO_RIGHT, DRAWSTYLE_LINE_AT_LAST_BAR_TO_LEFT_SIDE, etc.) This was what I used as work around, or alternatively using Drawings (s_UseTool Drawingtools) instead. Other types might work as well, just experiment. |
To post a message in this thread, you need to log in with your Sierra Chart account: