Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 03:19:54 +0000



how to shade the background of a chart for a specific period of time.

View Count: 2421

[2013-11-21 18:17:38]
jgomez - Posts: 6
Hello, I want to know how can I shade the background of a chart for a specific period of time. Let´s say I want to make a little bit darker or shade the color of the background of a chart from the openning till a specific time, let say from 9:30am to 11:00am E.T. What I want is that sierra chart automatically shade the color of the chart when bars are being formed at 9:30am and stop shading the background at 11:00am. And also if it is possible to add a sound for the beginning of that time and the end of that time. So that Sierra Chart makes a sound exactly at 9:30am at starts shading the background color and makes another sound at 11:00am and stop shading the background color.

Thanks in advance.
[2013-11-21 19:06:56]
Sierra Chart Engineering - Posts: 104368
This can be done by using the Time Range Highlight study.

For the time-based Sound Alerts refer to this page:
http://www.sierrachart.com/index.php?l=doc/doc_AlertCondAndScan.html

Also refer to example 6 at the bottom of the page.
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: 2013-11-21 23:41:16
[2013-11-21 19:23:31]
Sawtooth - Posts: 3976
To color the background, add the Color Background Based On Alert Condition study, and use this formula in the Alerts tab:
AND(BARTIME>TIMEVALUE("09:30:00"),BARTIME<TIMEVALUE("10:59:59"))

To get an audible alert at two times per day, put this formula in any other study's Alerts tab, or in the Simple Alert Condition field on the Advanced Settings tab in Chart >> Chart Settings:

=OR(AND(BARTIME>TIMEVALUE("09:29:59"),BARTIME<TIMEVALUE("09:30:02")),AND(BARTIME>TIMEVALUE("10:59:59"),BARTIME<TIMEVALUE("11:00:02")))
[2013-11-21 23:27:21]
Sawtooth - Posts: 3976
There is a native study that does this:

Time Range Highlight

Then you could put the audible alert formula in its Alerts tab. Everything in one study.
[2013-11-21 23:41:47]
Sierra Chart Engineering - Posts: 104368
Yes, we meant Time Range Highlight and not Time Line. We corrected our posting.
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
[2013-11-22 00:01:49]
jgomez - Posts: 6
Oh yeah thanks. When I was checking the time line study info, I realized there was exactly the indicator I was looking for with the Time range highlight - transparent study. That was exactly what I was looking for. Thank you very much to all of you and thank you tomglib for the exact formula also for the audible alert. I´ll try it tomorrow when the market opens.
[2019-06-18 07:06:58]
User164231 - Posts: 278
What about if I want to shade a specific section of time; say contract roll over week, or even a day of FOMC release. How can I highlight it on a daily or intraday chart?

Thanks.

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

Login

Login Page - Create Account