Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 22:37:50 +0000



ALERT

View Count: 891

[2015-06-02 16:22:51]
User82486 - Posts: 43
MY STUDY HAS TWO LINES, sg1 AND sg3.
I NEED THE WORDING OF AN ALERT TO TYPE IN

The alert will appear as an arrow and trigger a sound when:
SG1 is moving up and SG3 is moving down both at the same time either during or at the end of a bar

Fred
[2015-06-02 22:17:14]
Sawtooth - Posts: 3993
Try this:

-Add the Color Bar Based On Alert Condition study
-Put this formula on its Alerts tab:
=OR(AND(ID1.SG1[-1]<ID1.SG1[-2],ID1.SG1>ID1.SG1[-1],ID2.SG3<ID2.SG3[-1]),AND(ID1.SG1>ID1.SG1[-1],ID2.SG3[-1]>ID2.SG3[-2],ID2.SG3<ID2.SG3[-1]))
-Set the Draw Style to Arrow Up.
[2015-06-03 19:31:38]
User82486 - Posts: 43
Thanks, but I am getting an ERROR message when I copy and paste your Alert in the study alert window. The error states that there is no study referenced...study is unknown. Perhaps I should have been more specific.

This alert should apply to the top and bottom lines (SG1 and SG3) of a Bolinger Band on the price bars of the main chart. The Bolingeer Band study is in Region 1 and is based on price. I want an Alert when the upper line SG1 goes up and the lower line SG3 goes down during and at he end of the price bar.

The alert should trigger a sound and an arrow on t5he main chart.

I appreciate the help as I am too old (91) to learn this myself.

Fred
[2015-06-03 21:48:44]
Sawtooth - Posts: 3993
Sorry, I forgot to say that you need to edit the ID# to match your BB study.

Or you can tell me the ID# and I'll repost the formula.
[2015-06-04 14:17:49]
User82486 - Posts: 43
I went to the study and I think what you are asking for is (ID:7)
I did not know there were ID numbers.
Fred

[2015-06-04 14:47:41]
Sawtooth - Posts: 3993
If your BB study is ID7, then use this formula:

=OR(AND(ID7.SG1[-1]<=ID7.SG1[-2],
ID7.SG1>ID7.SG1[-1],
ID7.SG3<ID7.SG3[-1]),
AND(ID7.SG3[-1]>=ID7.SG3[-2],
ID7.SG3>ID7.SG3[-1],
ID7.SG1<ID7.SG1[-1]))

[2015-06-04 18:34:17]
User82486 - Posts: 43
You have been very helpful. I am getting a sound alert when the conditions are met.
I have tried to use the same alert on "Color Bars study, but no luck. I put the same alert into that study but I get #1 not #7.
need visual (ARRoWS?) when the Alert is triggered.

Give me a clue

Thanks

Fred
[2015-06-04 18:54:21]
Sawtooth - Posts: 3993
To get a visual in addition to an audible, you must use a study that can draw.

In the Color Bar Based On Alert Condition study, the default draw style is Color Bar, but you can set the draw style to Arrow Up (or Arrow Down).

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

Login

Login Page - Create Account