Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 23:07:39 +0000



Post From: CountDown Timer Alert Code

[2020-11-22 22:31:35]
Sawtooth - Posts: 3976
It works for me. Maybe the alert is not Enabled, or the Alert Sound is set to No Alert Sound.

With 'Display Value Only' set to Yes, the CountDown Timer Study outputs a value that can be used in an alert formula.

You can test this visually in two ways, using Replay Chart:
1. Add the Color Bar Based On Alert Condition study and put the =ID1.SG1 < 30 formula on its Alerts tab (Assuming the CountDown Timer study is ID1).
When the alert is FALSE, you will see all price bars colored except the current bar; when the alert is TRUE, you will see all price bars colored including the current bar.
2. Move the CountDown Timer study to the top of the Studies to Graph list, then add the Spreadsheet Study study. You will see the CountDown Timer's output in row 3 of column AA. You will notice that all rows are 0 except row 3 (Row 3 is the current bar, earlier bars are in rows below).

The spreadsheet study linked in post #2 is not difficult to use. If you add that custom study to Chart 1, just set the times and thresholds in the colored cells. If you add it to another chart#, you'll need to copy/paste the those user input cells to another sheet. Let me know if you need help with this.