Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 16:44:20 +0000



Alert more than once per bar

View Count: 2307

[2016-04-06 18:03:28]
User174857 - Posts: 11
How do you get an alert more than once per bar. The alert works fine, but need it to alert for the whole bar when condition is true. An Example would be if the close(of new bar) goes above the close of the last bar it will alert once. But will not alert for any of the other closes that are above the last close(of last bar). It will alert once for the whole bar(after alert turns true) if it is a 5 bar and no more even as the close(last) goes higher. Need an alert to function like the New Daily High/Low alert study does. It will alert at ALL new high/lows for day and not stop at one alert for the whole day. I am using the alerts on a “color bar based on alert condition” studies on 5min charts and need it it to alert more than once per bar. I can do this easily in TradeStation but need it to work in SC to help switch over platforms..
[2016-04-06 18:19:43]
Sierra Chart Engineering - Posts: 104368
So we understand you are using the Color Bar Based on Alert Condition study.

Other than the alert formula, what are the settings on the Alerts tab of the Study Settings window for this study?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-04-06 18:20:00
[2016-04-06 18:38:40]
User174857 - Posts: 11
=AND(c>c[-1],c>c[-2]... Colors bar if c > c-1,-2... (5 min) and will color the whole bar as I want it to. But will only "sound" alert once per bar, rather than everytime condition is true in bar. Checked Enabled with an alert sound under alerts tab, no other boxes checked
[2016-04-07 06:33:00]
Sierra Chart Engineering - Posts: 104368
It is hard for us to know what the problem is because we do not understand the formula or see all of it and actually see it visually working with the data in the chart and see its results.

From here:
https://www.sierrachart.com/index.php?page=doc/doc_StudyChartAlertsAndScanning.php#AlertOptions

It says:

Alert Only Once Per Bar

When the Alert Only Once Per Bar option is enabled, then when the Alert Condition Formula becomes TRUE, goes back to FALSE and becomes TRUE more than once when a bar is forming, only one alert signal will be given.

Even when this option is disabled, if an Alert Condition Formula becomes TRUE and remains TRUE during the formation of a bar, then there will only be one alert signal given.

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-07 13:02:28]
User174857 - Posts: 11
The formula is =And(c>c[-1],c>c[-2]) Paste it in the “color bar based on alert condition” study. Add a sound alert and you can see it visually work with data in the chart and see its results. You can visually see it work on a minute chart or other time frames. It will color the bar when goes past the closes set in formula ALL the time, but alert only ONCE. You have programmed a great piece of software which does many things effectively, but would like a simple sound alert that works more than once per bar. Is there a way to program a sound alert when always true and not when false? There is a button option for it now and should be easy to program. Would be a simple on and off switch. The option for ALL sound alerts per bar, or alert only ONCE per bar. Looks like you where already going that direction and put an option button for that in the alerts section of the software. Maybe you could add an “All Alerts Per Bar” button to separate it from the other button options to avoid conflicts in program. That alert option should really be available to use. It would make it a better program for traders that need to use alerts in that manner, and is not in the program at this time.
[2016-04-07 17:00:13]
Sierra Chart Engineering - Posts: 104368
There is no problem with this at all.

That alert will signal multiple times per bar.


We tested it just now. Look at Bar Start Time in the below Alerts Log confirming there are multiple signals on the same bar:

Alert - Chart: Replay 60.0X: XAUUSD [M] 10 Min #1 | Study: Color Bar Based On Alert Condition | Formula: =AND(C>C[-1],C>C[-2]) is TRUE. | Last Price: 1228.85 | Bar Start Time: 2016-04-07 03:00:00 | Alert: AlertSound (1)
Alert - Chart: Replay 60.0X: XAUUSD [M] 10 Min #1 | Study: Color Bar Based On Alert Condition | Formula: =AND(C>C[-1],C>C[-2]) is TRUE. | Last Price: 1228.83 | Bar Start Time: 2016-04-07 03:00:00 | Alert: AlertSound (1)
Alert - Chart: Replay 60.0X: XAUUSD [M] 10 Min #1 | Study: Color Bar Based On Alert Condition | Formula: =AND(C>C[-1],C>C[-2]) is TRUE. | Last Price: 1228.83 | Bar Start Time: 2016-04-07 03:00:00 | Alert: AlertSound (1)
Alert - Chart: Replay 60.0X: XAUUSD [M] 10 Min #1 | Study: Color Bar Based On Alert Condition | Formula: =AND(C>C[-1],C>C[-2]) is TRUE. | Last Price: 1228.84 | Bar Start Time: 2016-04-07 03:00:00 | Alert: AlertSound (1)
Alert - Chart: Replay 60.0X: XAUUSD [M] 10 Min #1 | Study: Color Bar Based On Alert Condition | Formula: =AND(C>C[-1],C>C[-2]) is TRUE. | Last Price: 1228.91 | Bar Start Time: 2016-04-07 03:00:00 | Alert: AlertSound (1)

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-07 17:46:41]
User174857 - Posts: 11
Use this =and(C>C[-1]) or whatever code would color the bar for a higher close over last bar close. Watch a color bar and listen for alert real time for a bar that moves a lot above the close and will find it does not. Will not signal on alert manager window more than once unless goes below and then above alert condition of the close of last bar. Put a chart with a 1 min bar realtime and you will see.
[2016-04-07 17:52:11]
Sierra Chart Engineering - Posts: 104368
Will not signal on alert manager window more than once unless goes below and then above alert condition of the close of last bar. Put a chart with a 1 min bar realtime and you will see.
We think we misunderstood what you wanted. Yes, this will certainly be the case and is understood.


So what is it that you are looking for? A continuous alert sound when the formula remains TRUE? That is not supported.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-07 18:13:52]
User174857 - Posts: 11
Yes. Much like you have programmed in the "New Daily High/Low Alert" study. For as you know to be alerted ONCE for a new high or new low the whole day would not be much benefit. And the same is true for other things. Will it be supported as I need that function..
[2016-04-07 18:31:54]
Sierra Chart Engineering - Posts: 104368
What we recommend that you do is go to the Alert Settings in General Settings:
https://www.sierrachart.com/index.php?page=doc/doc_GeneralSettings.html#AlertSoundSettings

And set the Number of Times to Play This Alert for the particular Alert Number you want to change to the number of times that you want to hear it.

But this is all that is offered. There are no plans to add anything else.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-07 18:35:50]
User174857 - Posts: 11
need more than times to play... thanks... will have to go back to what I was using elsewhere for this then..
[2016-04-07 18:50:40]
Sawtooth - Posts: 4173
It would be possible to latch an alert with a spreadsheet study, then you could do all kinds of things.
What do you want to do with a latched alert?
[2016-04-07 20:10:32]
User174857 - Posts: 11
All I am looking for is a simple sound alert the whole time a color bar takes effect, no more.
So like an example of =(C>C[-1]) It colors the bar if close is greater than the previous close, and gives me a sound alert the whole time it does this. What good would a color bar be if it only colored the bar once, and only once for the whole bar? The whole rest of the bar no matter how large would stop coloring at the previous close in the example. Which is the only option on a sound alert given in the software now. I would like the always true sound alert function to work on the example so I can use that logic on other alerts I use and would not have to use other software to accomplish this.
[2016-04-07 22:06:36]
Sawtooth - Posts: 4173
The intrabar alert is continuously TRUE when the bar is colored, not just when it first goes TRUE.
When it goes TRUE, it initiates the playing of a .wav file, but it may stay TRUE longer than the duration of the .wav file. If it goes FALSE, the bar will stop being colored. If it goes TRUE again in the same bar, it will color the bar again, and initiate another play of the .wav file. If the .wav file is very long, it may play into the time when the formula is FALSE.

If you were to put that formula in a row 3 cell on the spreadsheet, as =E3>E4, you would see it go to a 1 and stay until it was no longer TRUE, the it would go to 0. This is probably what you want.
[2016-04-08 01:20:40]
User174857 - Posts: 11
Looking for an sound alert that would sound at each and every new higher tick after it goes over the close in the last bar, as in the formula =(C>C[-1]) Very much like the "New Daily High/Low Alert" study works. It sounds alerts for each an every new high for the day. It is not a continuous alert or a once alert only. Perhaps if someone has the code on that study I could make it work for what I need. As that is the same logic except using a close and a smaller time frame.
[2016-04-08 02:39:09]
Sawtooth - Posts: 4173
What you want to do cannot be done with a Simple Alert formula.
It could only be done with a spreadsheet study if you added a very small timeframe chart, and this would really just be a workaround.

ACSIL would be the only way to do this properly.

If the source code is available for the New Daily High/Low Alert study, it would be in one of the studies#.cpp files in the ACS_Source folder in your Sierra installation.

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

Login

Login Page - Create Account