How to draw a vertical line
Author: bgood
Creation Date: 5/26/2009 1:12 PM
profile picture

bgood

#1
How does one draw a vertical line that spans panes using wealth-script?
profile picture

Eugene

#2
One can't span Panes with a line because the existing drawing methods are designed to accept a single pane only. I could think of using SetPaneBackgroundColor/SetBackgroundColor if it applies.
profile picture

bgood

#3
So if I understand, there is not a way to programatically do a vertical bar like one can manually draw on a chart. Setting the Background color does work, but is very "fat" vertical line.
profile picture

Eugene

#4
That's right. As a workaround, you can do a vertical bar by extending a line to span several panes by calling DrawLine in each individual pane.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).