Setting Background Color of Chart
Author: Harapa
Creation Date: 10/25/2015 10:38 AM
profile picture

Harapa

#1
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).
profile picture

Eugene

#2
Check out the code example for SetBackgroundColor under QuickRef > Cosmetic Chart. Unlike SetPaneBackgroundColor, it has global effect on all ChartPanes:

Setting Background Colors
profile picture

Harapa

#3
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 ?

profile picture

Eugene

#4
Unfortunately, no.
profile picture

Harapa

#5
No problem and thanks.
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).