Login Page - Create Account

Support Board


Date/Time: Mon, 02 Jun 2025 14:35:43 +0000



Post From: Dotted/Dashed lines looks often as solid lines

[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