Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 03:13:20 +0000



Creating Alert to Show On Chart and then Disappear Before Bar is Complete?

View Count: 715

[2019-08-09 16:24:19]
absorrel4 - Posts: 92
I have created a simple alert via the Spreadsheet System/Alert (e.g., if certain technical conditions exist AND the current price is less than the previous bar's close, then trigger the alert). My alert shows on the chart as a "triangle" at the current price. I reset the alert for every bar and if the conditions are satisfied when the bar starts, the "triangle" shows up and stays on the chart/bar as long as the conditions are satisfied....and then is reset when the next bar starts.

I desire the alert (triangle) to disappear after a short period of time (before the bar is completed). For example, if I am using 30 second bars, I would like my alert/triangle to show on the chart for only 10 seconds and then disappear....there would be 20 seconds left before the bar is complete and the alert would no longer be showing on the chart.

How can I accomplish this? Do I need to tie the alert to the Countdown timer in some way?
[2019-08-10 11:57:08]
Sierra Chart Engineering - Posts: 104368
You really have to develop this using ACSIL and the implementation of this is outside of the scope of our support.

Refer to:
Advanced Custom Study Interface and Language (ACSIL)
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: 2019-08-10 11:57:13
[2019-08-10 12:22:29]
Sawtooth - Posts: 3993
You could compare J41 with A3, like this:
=AND(yourconditions,ROW()=3,FRACTIME($J$41)-FRACTIME(A3)<=10/86400)

This will not show any historical alerts, only an alert in the current bar.
[2019-08-11 01:34:21]
absorrel4 - Posts: 92
I follow the logic and will give it a shot.....but, I do not understand the need for "row()=3". Nevertheless, I will give it a go....thanks!
[2019-08-11 11:48:23]
Sawtooth - Posts: 3993
I do not understand the need for "row()=3".
Row 3 is the current bar, but actually it is not needed in this case.
=AND(yourconditions,FRACTIME($J$41)-FRACTIME(A3)<=10/86400)
[2019-08-11 19:54:01]
absorrel4 - Posts: 92
This worked perfectly....awesome trick! Thanks again...

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

Login

Login Page - Create Account