Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 09:52:06 +0000



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

[2013-11-21 19:23:31]
Sawtooth - Posts: 3993
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")))