Is there a way to set the chart background color ( as when you select background color in preferences) in a strategy code?
I know how to set background color of a bar, and/or a pan (part or full).
Size:
Color:
Check out the code example for
SetBackgroundColor under QuickRef > Cosmetic Chart. Unlike
SetPaneBackgroundColor, it has global effect on all ChartPanes:
Setting Background Colors
Size:
Color:
I had this coded as below.
CODE:
Please log in to see this code.
Yes, this works. But if I have PadBars function invoked, the coloring stops at the last bar (as expected).
Is there is a way to extend the color till the end of the visible area ?
Size:
Color:
Unfortunately, no.
Size:
Color:
No problem and thanks.
Size:
Color: