Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 12:25:24 +0000



[User Discussion] - Saving an alert condition

View Count: 1025

[2014-09-26 22:13:24]
User75277 - Posts: 33
I have a number of alerts on a chart that trigger based on various bar conditions on the chart after the market opens.

Let me call them alerts A and B. On each bar of the chart, I would like to be able to test if these alerts have happened previously on the chart (i.e. they were triggered).

Is there some way that I can store the results of the alerts A and B have happened in the chart so that I can test for condition C; and so, when C is true, I would like to paint on the chart and play a sound.

Is there a way to store these results on the chart?

Thanks, in advance.
Date Time Of Last Edit: 2014-09-26 22:17:48
[2014-09-26 22:28:25]
Sawtooth - Posts: 3980
One way is to use the Color Bar Based On Alert Condition study. Put the formula on its Alerts tab. This will give a visual of all close-of-bar alerts.

You don't have to use the Color Bar draw style; you could set it to something else.


[2014-09-26 23:05:25]
User75277 - Posts: 33
Thanks Tom,
But, I don't understand. Is there an example I can look at?
[2014-09-26 23:23:56]
Sawtooth - Posts: 3980
Attached is a study collection example. It colors the price bars at each MA crossover. Notice that the formula needs to reference the ID#s.
attachmentMarked alerts via Color Bar study.StdyCollct - Attached On 2014-09-26 23:23:35 UTC - Size: 18.68 KB - 330 views
[2014-09-27 19:58:51]
User75277 - Posts: 33
Hi - Thanks for providing the example. I can use that to simplify something else I am doing.

However, that example is not the type of thing I am asking about, but I can use it to be more clear about what I am asking:

Suppose I have that study working. I would like to store whether the CROSSOVER went from the small MA crossing over the big MA or whether the small MA was crossing under the big MA. For example's sake let me reduce this to a TRUE/FALSE condition.

Now as the day goes on and I am also looking (for instance) for when the 60 ma has turned down; I know how to do this using a simple alert.

My question is: Is there a way to refer to that TRUE/False condtion (at some place that a TRUE/FALE condition was stored) so while I am testing if the 60 MA has turned I can also test for that TRUE/FALSE condition?

Thanks, in advance.
[2014-09-27 21:17:45]
Sierra Chart Engineering - Posts: 104368
In response to the first post, this can be done with the Color Bar Based on Alert Condition study:
https://www.sierrachart.com/index.php?page=doc/doc_TechnicalStudiesReference.html#s245
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
[2014-09-28 02:52:21]
Sawtooth - Posts: 3980
You can use two instances of the Color Bar Based On Alert Condition study, one for each crossover. Set the colors differently so you can visually distinguish them.

The bar will be colored when the condition is TRUE; no bars will be colored when the condition is FALSE.

There is also an Alert Manager that lists the alerts in a log.
Go to Window >> Show/Hide Alert Manager

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

Login

Login Page - Create Account