Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 07:06:29 +0000



[Programming Help] - Alert settings

View Count: 1351

[2020-07-02 14:24:56]
Barbara Tobias - Posts: 35
I use CCI in my charts and I set alerts for when it goes up/down a certain amount. However, the alerts do not go off. It's not on mute .. I used to get an alert and the CCI line went red ... but now nothing. How do I get it to sound the alerts like it used to. Can anyone advise me please.
[2020-07-04 16:01:31]
bradh - Posts: 854
I assume you are also not seeing the alert in the Alert Manger window.

Can you post your alert formula?
[2020-07-06 16:04:21]
Barbara Tobias - Posts: 35
I am not sure what you mean by alert formula. I am in Chart settings -- Alert condition (+200/-200) for the CCI, have it ENABLED and RESET ALERT CONDITION ON NEW BAR with Alert Sound. And nothing happens. Don't really understand what is happening in the Alert Manager. However, when I opened it they say for all my charts which is for CCI - Alert Formula Error - Error #SYNTAX! / Formula =+200-200/No alert sound/email. And yet I have it set for sound. How do I set it for the CCI.
[2020-07-06 16:48:11]
bradh - Posts: 854
In the Box labeled Alert Condition, you need to enter an Alert Formula, which uses a specific format. Look here: Study/Chart Alerts And Scanning: Alert Formula Examples

You are getting "Alert Formula Error - Error #SYNTAX! / Formula =+200-200" because you didn't write the formula correctly.

The Formula needs to refer to the Study ID and SG you care about. For example, if the CCI study ("Commodity Channel Index") is ID1, then the CCI SG is SG1. You can then write an alert formula using your limits, and the study ID.

If you want to alert when CCI is > 200 the formula would look like this:
=ID1.SG1>200

for less than -200:
=ID1.SG1<-200


For either condition to be true:

=OR(ID1.SG1>200,ID1.SG1<-200)

[2020-07-06 17:00:37]
Barbara Tobias - Posts: 35
sorry to be a bother .. but where is the box that says Alert Condition .. can't find it
[2020-07-06 17:30:15]
bradh - Posts: 854
Chart Settings>>Alerts or in the study setting for CCI.
Date Time Of Last Edit: 2020-07-06 17:30:47
[2020-07-06 17:37:32]
Barbara Tobias - Posts: 35
I copied your formula and sound did go off .. but went off on +100 and not +200. I used the ID1.SG1. I know what the ID1 stands for because it shows that way in my studies, but what is SG1? Don't know why it's going off on +100, but did not go off on -200.
[2020-08-27 10:44:56]
Barbara Tobias - Posts: 35
Do I need to put the color red in the charts - it only goes in black.
[2020-08-27 11:05:20]
bradh - Posts: 854
I copied your formula and sound did go off .. but went off on +100 and not +200. I used the ID1.SG1. I know what the ID1 stands for because it shows that way in my studies, but what is SG1? Don't know why it's going off on +100, but did not go off on -200.

SG1 is Subgraph 1. When you open the Study's Settings, you will see the Subgraphs Tab. Most studies that display something like a line on the screen have at least one subgraph. This is just a number displayed in a graphical way. Alerts can look at that number, and compare it to a value and if the condition is met, sound the alert.

If you want one alert at +100 and another alert at +200, then merely create another alert using 200 as the value.

Do I need to put the color red in the charts - it only goes in black.

If the alert is doing something like coloring a bar, or the background, then you need to tell it what color to use. For example, after adding the Color Background Based on Alert Condition, go to the Subgraph tab of the alert study and click on the Color button and pick whatever color you want to represent the alert condition, then click OK.
[2020-08-27 11:14:51]
Barbara Tobias - Posts: 35
in your formula, you have certain things in red ... I cannot find any alert condition subgraph tab ... where do I find it. The alert settings is in CHART SETTINGS, there is nothing for color.
[2020-08-27 11:23:20]
Barbara Tobias - Posts: 35
here's the problem .. in the formula you show above =OR(ID1.SG1>200,ID1.SG1<-200) you have a few things in red. But I cannot find anywhere that I can change the color. I went to Studies, settings, and I can change the colors of the CCI lines, but not the alerts as you have it with the = in red, the -200 in red, and the parenthesis in red. It just comes out all black. Do I need to have these in red for the alert to work
[2020-08-27 12:28:14]
bradh - Posts: 854
It depends on what you want to happen when there is an alert. You can have just a sound, or something change on the screen.

I suggest you go here: Study/Chart Alerts And Scanning
[2020-08-27 12:44:41]
Barbara Tobias - Posts: 35
thanks, but that really doesn't helo me ... I am technologically challenged and didn't understand that at all. I have very simple charts but I use the CCI .. and my alerts are set for that. I had them set up correctly but somehow, lost all of them and have to set them up again. I need to know how to do it. First question is that you have the -200 in the formula in Red. Does it have to be in red to work and if yes, how do I change that color. The subgraph lets me change the colors of the studies, but not the alert for the formula. Will the formula work if the entire formula =OR(ID1.SG1>200,ID1.SG1<-200) is in black. I can't get the = sign, or the -200 in red as you have it. I tried copy and paste but it still came in all blak. I'm sorry, I really need how to change it in alerts. If it works in all black, I'm fine. I usually have sound and oolor - but don't know now since I had to re do it all and couldn't recover my previous chartbook.
[2020-08-27 12:49:10]
bradh - Posts: 854
Sorry, but this is all I can do over the support forum. If you want pay for a support call, please go here:
https://forgivingcomputers.com/training-and-installation/
[2020-08-27 16:10:59]
Sawtooth - Posts: 3976
To color the CCI when the alert is TRUE, you need to use the Color Bar Based On Alert Condition study.

Here's how:
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies
[2020-08-27 16:34:14]
Barbara Tobias - Posts: 35
thanks, I appreciate the response and help. Truly - but I just can't understand it and can't find what the site refers to. Am computer challenged as I am not young and only learned the computer about 10 years ago. So not very proficient and thankfully, Brad at least gave me the formula or I wouldn't have been able to set the alerts. For some reason, some are working and some are not - even though same formula is used.
[2020-08-27 17:38:59]
User90125 - Posts: 715
Both bradh and tomgilb both are power SC users, as well as private developers and programmers for users of SC.

bradh already gave you his details, so here's the same for tomgilb, who's known as a spreadsheet wizard:

https://www.sawtoothtrade.com/services/

Good luck!

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

Login

Login Page - Create Account