Support Board
Date/Time: Mon, 21 Apr 2025 17:55:42 +0000
Is there a way to trigger color bar alerts on a particular second?
View Count: 127
[2025-02-17 19:03:54] |
TopGunTrader - Posts: 191 |
Hi, There are some instances where I want an alert to go off 10 seconds before say one minute bar closes. I know how to use BARTIME but not sure if it only can trigger at the beginning of the bar. So if I wanted an alert for last ten seconds can it be BARTIME>TIMEVALUE("12:59:50") If this works is there an * or identifier that will run it every bar such as AND(BARTIME=TIMEVALUE("**:**:50") so it would run last 10 secs of each one min bar? |
[2025-02-17 19:22:44] |
John - SC Support - Posts: 39380 |
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 |
[2025-02-18 19:12:05] |
TopGunTrader - Posts: 191 |
Thank you so much!!!
|
To post a message in this thread, you need to log in with your Sierra Chart account: