Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 00:21:28 +0000



Post From: Is there a way to trigger color bar alerts on a particular second?

[2025-02-17 19:22:44]
John - SC Support - Posts: 39395
BARTIME is not the function you need as that just gives the opening time of the bar. To get the current time you need to use the function NOW(). And to get an alert at the 50 second mark, you would use the following formula:
=INT(FRACTIME(NOW() * 24 * 60) * 60) = 50

You may want to give a bit of leniency on the timing, just to ensure that the actual second gets captured, so something like the following to allow for any value between 49 and 51:
=AND(INT(FRACTIME(NOW() * 24 * 60) * 60) >= 49, INT(FRACTIME(NOW() * 24 * 60) * 60) <= 51)

You would also want to set the alert to only alert once and to reset on new bar.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing