Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 14:42:21 +0000



Post From: Color bar on alert detecting x consecutive bars

[2025-01-14 19:15:10]
John - SC Support - Posts: 37808
There are a number of ways to do this, including the Color Bar Based on Alert Condition. What exactly do you want to have occur when you have this situation occur (color a bar, place a marker, sound an alert, etc.)?

The general formula for testing for 3 up bars in a row would be the following:
=AND(C[-2] > O[-2], C[-1] > O[-1], C > O)

Where C is the Close of the bar, O is the Open of the bar and the [-2] [-1] reference the number of bars back from the current bar. 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
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing