Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 04:50:40 +0000



Question on Color Background ased on Alert Condition...

View Count: 654

[2016-10-28 15:13:14]
User670902 - Posts: 3
Hello -

I am using an Alert Condition, as shown below, which detects when (4) of my Stochastic Studies are below 20 to paint the background a color.

=AND( AND( ID14.SG2 < 20.0 , ID9.SG2 < 20.0 ) , AND( ID12.SG2 < 20.0 , ID13.SG2 < 20.0 ) )

It works for the most part, but often Colors the Background when several of the Stochastic Studies are less then about 30, not 20.

Is there a reason for this, or something I overlooked? I've only been using Sierra Charts for a couple of months.

Thank you,
[2016-10-28 17:04:01]
Sierra Chart Engineering - Posts: 104368
A more simple way to write this is:

=AND(ID14.SG2 < 20.0 , ID9.SG2 < 20.0, ID12.SG2 < 20.0 , ID13.SG2 < 20.0)

It is impossible from our perspective to say what the problem is. In general we would check the values of the referenced studies using the Chart Values Tool:
http://www.sierrachart.com/index.php?page=doc/Tools.html#ChartValues
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
Date Time Of Last Edit: 2016-10-28 17:04:34
[2016-10-28 18:06:03]
User670902 - Posts: 3
Ok, Thank you. I will try that now.

Another Question - I set Value Format to ".0001" in both "Chart->Chart Settings" and the "Color Back Ground Alert Study->Settings", but that did not seem to make any difference in this case.

My Question is - Since Chart->Chart Settings->Value Format is on the Main Price Graph, does it affect other Chart Regions that have their own studies and subgraphs?

Thank you for the help.
[2016-10-28 18:16:24]
Sierra Chart Engineering - Posts: 104368
You need to set the Value Format setting on the studies that the alert is referencing.

Refer to:
http://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php#ValueFormat
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
[2016-10-28 18:40:09]
User670902 - Posts: 3
Thank you. The way you wrote the AND Logic seems to make a difference. That seems to solve the issue.

I did set precision on the Study, like you mentioned.

To that point -> when you set precision, shouldn't you also set the "Use Full Precision When Evaluating Formula" ?

Thank you for the help.
[2016-10-28 18:51:31]
Sierra Chart Engineering - Posts: 104368
Whether you use full precision or not, is up to you. That is not always a good thing to use.
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

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

Login

Login Page - Create Account