Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 14:49:11 +0000



Post From: Help With Indicator

[2021-07-12 03:16:24]
Sawtooth - Posts: 4173
Try this:

Add the Bar Time Duration study. Hide the study.

Add the Color Bar Based On Alert Condition study.
Use a formula like this on its Alerts tab:
=ID1.SG1 * 86400 < 180
where the Bar Time Duration study is ID1.

The Bar Time Duration study outputs the bar's duration in Serial DateTime format, without the Date.
There are 86400 seconds in 24 hours.
When you multiply the Bar Time Duration's output by the number of seconds in 24 hours, it returns the duration of the bar in seconds.
Then compare it to your alert threshold in seconds.