Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 15:14:04 +0000



Post From: color bar based on open and close within prior bar range

[2022-06-05 12:32:12]
Sawtooth - Posts: 4173
Is there a study that will color a bar or identify bars based on the open and close of the current bar being within the prior bar's range?
Use the Color Bar Based On Alert Condition study, with this formula on its Alerts tab:
=AND(MAX(O,C)<H[-1],MIN(O,C)>L[-1])

Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables
Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart