Login Page - Create Account

Support Board


Date/Time: Fri, 24 Jan 2025 14:46:57 +0000



[Programming Help] - Color background study

View Count: 2097

[2018-10-23 20:08:35]
User468762 - Posts: 19
In the color background study, is it possible to have the ""entire chart"" background colored when condition is met? For example, if condition is crossing from below, I would like to see the entire chart that I'm looking at colored (not only from the point of the crossing but the entire background I'm looking at) green let's say. And then when condition is crossing from above the entire chart would switch to a different color. And so on. So when you stop and look at the chart, instead of seeing alternating colors where the conditions were met up or down, you see the ""entire chart"" either one colour or the other depending on what was the last met condition.
Thank you for your help.
[2018-10-23 21:08:16]
Sierra Chart Engineering - Posts: 104368
No but you can do this using ACSIL and change the background color of the chart programmatically.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-10-23 22:30:45]
Sawtooth - Posts: 4162
You could also do this with the Spreadsheet/System Alert study.
[2019-01-15 14:16:16]
User468762 - Posts: 19
Update: I know nothing of programming but I found the solution in the free bundle of Sierra Chart studies offered by "simplesystemtrading", one of the third party programmers listed here on Sierra Chart site. Thank you!!
[2019-01-28 21:10:04]
Sawtooth - Posts: 4162
is it possible to have the ""entire chart"" background colored when condition is met?

You can do this with a spreadsheet study.
To also be able to get alerts, add the Spreadsheet System/Alert study.
-Give it a name in the Spreadsheet Name field.
-Assign alert numbers to Column K Alert and Column M Alert.
-On the Subgraphs tab, set the Draw Style of SG1 and SG3 to Background, and set SG1 and SG3 to the up and down colors, respectively.
-Press OK and OK
On the spreadsheet:
-Put this formula in cell K3:
=ID2.SG1@$3>ID3.SG1@$3
-Put this formula in cell M3:
=ID2.SG1@$3<ID3.SG1@$3
where ID2.SG1 and ID3.SG1 are two MAs, or any two studies or subgraphs whose lines would cross; edit the ID#s and/or SG#s as needed.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account