Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 12:26:24 +0000



How do i customize time of day when to trigger or display alerts?

View Count: 59

[2024-04-19 11:08:08]
User488171 - Posts: 21
Dear Support,

I would like Color Background Based Alerts to be displayed at certain times. I do have a code but it doesn't seem to be working. Issues i am having it doesn't display my alert at all if i remove time of day it works. Could you please help me get this to work. Thanks

=AND((id1.sg32=1), BARTIME >= TIME(9, 30, 0), BARTIME <= TIME(15, 00, 0))
[2024-04-19 16:59:14]
John - SC Support - Posts: 31334
Your Alert formula looks fine. We do not see any reason why it should not work, particularly in relation to how you have entered the Time related components.

The one thing we would question is whether ID1.SG32 actually gets set to 1 or if it is true for any non-zero value. If the latter, then you would want to change that to just be "ID1.SG32", this will give a False when it is 0 and True otherwise.

If you continue to have issues, then use the Spreadsheet Formula study and work through each item individually and then start adding them together. Despite its name, the Spreadsheet Formula uses the Alert syntax, so you can use it to view the results of your formula at each bar and work through the troubleshooting using it. Refer to the following:
Spreadsheet Formula
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account