Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 12:16:11 +0000



Alert that references time remaining in bar

View Count: 1303

[2018-06-22 13:55:14]
infpz - Posts: 826
I'm looking to be alerted to criteria that only trigger when a certain amount of time is remaining in the bar. For instance if I have criteria in my alert, and I have the alert study on a 15 minute chart I only want the alert to fire if there is 5 minutes or less remaining in the bar. Any idea on how to incorporate this? Please refer me to the documentation.
Date Time Of Last Edit: 2018-06-22 13:55:35
[2018-06-22 18:09:09]
Sierra Chart Engineering - Posts: 104368
Use the Countdown Timer study to access the remaining time. You will find the documentation for it here:
Countdown Timer

Be sure to change the Input for Display Remaining Time as Seconds Only to Yes. You can then reference the Subgraph datain terms of seconds left.

For example, if the Countdown Timer is the first study (ID1), then in order to only have an alert trigger when there is 60 seconds left in a bar, you would use =ID1.SG1 < 60.

To combine this with other tests, use the AND or OR function. You will find the documentation for these here:
Study/Chart Alerts And Scanning: OR and AND Functions
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

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

Login

Login Page - Create Account