Support Board
Date/Time: Sat, 08 Nov 2025 22:34:39 +0000
Post From: Help with Creating a Volume-Based Color Bar Alert (1 AM - 7 AM Time Range
| [2025-11-05 20:20:07] |
| John - SC Support - Posts: 42874 |
|
We are curious where you found "ALERT_CONDITION_TIME_RANGE" from? If this exists in our documentation somewhere, then we need to remove it, as that is not a valid function. You have the general idea right, and the Volume test is correct. Just the time is the issue. To limit the time, it is easiest to use the "BARTIME" and "TIME(HH, MM, SS)" functions. BARTIME gives you the opening time for a bar, so can control things relative to the bars. For example, to check if the time is after 1 am, you would use the following formula: =BARTIME > TIME(01, 00, 00) Therefore, the formula for what you want would be the following: =AND(BARTIME > TIME(01, 00, 00), BARTIME < TIME(07, 00, 00), V > 2000) Refer to the following: Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#TIME_Function For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
