Login Page - Create Account

Support Board


Date/Time: Sun, 15 Jun 2025 16:45:50 +0000



Post From: Question about a specific candlestick pattern

[2025-06-02 15:42:59]
John - SC Support - Posts: 40422
It sounds like you can do this using an alert condition, so you could use the "Color Bar Based on Alert Condition" study to color the bar itself when this occurs.

We do not know how many bars you need to test, but here would be the alert condition in which a bar has a close that is higher than the previous two bars high:
=AND(C > H[-1], C > H[-2])

Where C is the Close of the bar, H is the High of the bar, and the [-1], [-2] reference the previous bar and the bar two previous respectively. Refer to the following:
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

You would put that condition into the Alerts tab for the "Color Bar Based on Alert Condition" and if you just want to color that bar, then you would not need to change anything else in the study. Refer to the following:
Color Bar Based on Alert Condition
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing