Support Board
Date/Time: Sat, 15 Mar 2025 16:17:25 +0000
[Programming Help] - How Can I have a alert go only with specific time periods of every 5 minute period.
View Count: 824
[2022-07-19 04:40:08] |
User611454 - Posts: 5 |
I would like some help of how to have a alerts fire off in a certain time of a 5 minute period but my Trading alerts are on a 4 second Chart. See Pics. I have and tried reading many support threads, and have not been able to figure out the coding or possibly the format for the time. I have used countdown timer on a 5 minute Chart that I then use or project on my 4 seconds Trading chart (see pic) using the “Text Display from Chart) I want my alerts to either fire off in the last ⅓ (100 seconds) for shorts , Or fire off in the first 100 seconds of a 5 minute period. On the 4 seconds chart, the count down timer text is ID21.SG1. So I thought I could just do a simple Alert AND(ID15.SG1<ID16.SG1, ID21.SG1<100, ID21.SG1>1) This does not work though. Should I use a different study to bring over the countdown timer, Different Format etc etc. AND(BARTIME>= TIME(17, 00, 00), BARTIME <= TIME(18, 00, 00)). |
Attachment Deleted. ![]() ![]() |
[2022-07-19 22:29:20] |
Sawtooth - Posts: 4183 |
The Countdown Timer study's output is only accessible with an alert formula if 'Display Remaining Time As Seconds Only' is set to Yes. However, that value is not passed to the Text Display For Study From Chart study. You must use the Study/Price Overlay study on the 4 sec chart. Try a formula like this: =AND(CROSSFROMABOVE(ID15.SG1,ID16.SG1),ID22.SG1<100,ID22.SG1>1) where ID22 is the Study/Price Overlay study. |
To post a message in this thread, you need to log in with your Sierra Chart account: