Login Page - Create Account

Support Board


Date/Time: Thu, 19 Sep 2024 22:25:20 +0000



bartime alert

View Count: 1869

[2014-08-28 16:58:28]
mkata - Posts: 103
I'm trying to set a simple alert condition for a range bar greater than 30 minutes. I've tried to use the following and several other formats but can't get it to work. What would the correct format be for a simple alert?
=BARTIME>(0,30,0)
[2014-08-28 17:54:09]
Sawtooth - Posts: 4091
The BARTIME function uses the spreadsheet Serial Date Time format, and is the timestamp at the bar open. There is no way to do this with a Simple Alert formula because there is currently no Simple Alert function for the Last Bar End DateTime. Maybe SC Support could add it.

Until then, you can do this, but it will only alert for the previous bar:
=BARTIME[1]-BARTIME>TIMEVALUE("00:30:00")

You could create a real-time current-bar alert with the Spreadsheet System/Alert study.
Date Time Of Last Edit: 2014-08-28 18:16:20
[2014-08-28 19:09:03]
mkata - Posts: 103
Tom,
Thank you for the helpful explanation, I didn't understand how to properly include the TIMEVALUE portion. With your example and reading the documentation again it makes much more sense now.

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

Login

Login Page - Create Account