Support Board
Date/Time: Fri, 07 Feb 2025 18:19:50 +0000
alert sound every N seconds
View Count: 1398
[2021-10-28 18:37:06] |
User30743 - Posts: 365 |
is there any way to set up alert sound more often than once in a bar? let say a have a simple line on daily high, and i want to be alerted as soon as price croses it and trading continues above it. but i use 5 minute chart, and i want to hear the altert more often then once in 5 minutes. i want to hear it for example every 5 seconds. how do i do it? |
[2021-10-28 23:26:52] |
John - SC Support - Posts: 37828 |
You can certainly have the alert go off intra-bar as soon as the condition for the alert is met, just make sure the options for Alert Only Once per Bar and Evaluate on Bar Close are not enabled. The tricky part of this, however, is that for an alert to go off again, it has to go back to False and then True again. So if you are checking that a value is greater than another (X > Y), then when X is greater than Y the alert is True and you get your notification. But until X becomes less than Y, the alert stays True. When X becomes less than Y and the alert is False, then when it goes above again, you will get another notification. The one thing the system can not do, and we are not sure if this is what you are asking, is that it can not continuously alert at some interval that you set when becomes True. There is an option to run a program when an Alert is True, so you could create this yourself. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-10-29 14:55:40] |
User30743 - Posts: 365 |
The one thing the system can not do, and we are not sure if this is what you are asking, is that it can not continuously alert at some interval that you set when becomes True. There is an option to run a program when an Alert is True, so you could create this yourself.
yes, this is what I actually want. because i don't watch the markets all the time, I have some sr zones, i put the lines there, and i want to be alerted when the price is in the zone (meaning eg above daily high). i want to be alerted even when it stays there, not only when it goes below and back high again. The reason why one alert per bar is not enough is because i might not be at that very moment at the laptop, or maybe i will not hear it, because i do other work - and so i will miss it. But if it would be beeping every five seconds, then there is a good chance that i will not miss it. so is this possible? probably only with ACSIL right? |
[2021-10-29 16:00:51] |
John - SC Support - Posts: 37828 |
As we noted above, you would have to either program it with ACSIL, or you could create a program that is run when the alert is true. Refer to the following: https://www.sierrachart.com/index.php?page=doc/GeneralSettings.html#RunProgramOnAlert For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-09-08 15:34:49] |
whats1thingnow - Posts: 407 |
related to this issue of alert sound at intervals i have a 30s chart and when the alert condition is TRUE, sound goes off which is great however, when it stays TRUE, the sound keeps going off every 30 seconds (i have 'reset alert condition on new bar' + 'alert only once per bar' on) the alert condition can stay TRUE for 5 minutes to 2 hours ... so hearing the alert every 30 seconds isn't ideal however, i would like to hear it every 5 minutes as long as the condition is TRUE ... is there a way to code this alert condition? as per https://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php#BaseGraphIdentifiers: BARTIME = The Time of the beginning (open) of a bar as an SCDateTime type. For further information and for Spreadsheet functions which can be used with these Date-Time values, refer to Serial DateTime Values. It is recommended to use the TIME function when making comparisons to the BARTIME identifier.
However, making an equals comparison to a time value is imprecise and will not give a TRUE result. This can be solved by calculating the absolute value of the difference between BARTIME the other time value and checking if it is less than a certain value like 1 minute. Example: ABS(BARTIME - TIME(10, 0, 0)) < TIME(0, 0, 1). can we do something like below to check if current bartime divisible by 5 minutes: = ABS(BARTIME / TIME(0, 5, 0)) < TIME(0, 1, 0)
if it's divisible, that means the alert will only be TRUE every 5 minutes (aka at minute 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55) ... wouldn't work for minute 60 because that's 0, but still better than nothing thanks |
[2022-09-08 17:48:54] |
John - SC Support - Posts: 37828 |
It's theoretically possible, you just need to ensure that the alert is false for the other times. You would probably need to use an IF statement. This is not something we have the time to work on, but if you figure out how to do it, please post for others. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-09-08 18:21:13] |
Sawtooth - Posts: 4173 |
Try this formula to find 5 min interval bars on a time-based chart of a smaller timeframe: =BARTIME=MROUND(BARTIME,5/1440) (5/1440 equals 5 minutes in SerialDateTime because there are 1440 minutes in a 24hr day.) This would alert every 5 min, but would miss the initial alert before the first 5 min multiple: =AND(YourAlertConditionTRUE,BARTIME=MROUND(BARTIME,5/1440)) So use another instance of the Color Bar Based On Alert Condition study to create a persistent TRUE when the alert happens, then release it when it goes FALSE, like this: =IF(YourAlertConditionTRUE,1,IF(YourAlertConditionFALSE,0,ID2.SG1[-1])) where ID2 is this Color Bar study. Hide this study. Then use a formula like this in the other Color Bar study: =OR(AND(ID2.SG1[-1]=0,ID2.SG1=1),AND(ID2.SG1,BARTIME=MROUND(BARTIME,5/1440))) where ID2 is the hidden Color Bar study. This will alert at the first YourAlertConditionTRUE, and alert again at every 5 min multiple until YourAlertConditionFALSE. It finds the transition from FALSE to TRUE, and it finds when it's TRUE at every 5 min multiple. Date Time Of Last Edit: 2022-09-08 19:18:37
|
To post a message in this thread, you need to log in with your Sierra Chart account: