Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 13:14:38 +0000



Post From: Color Bar Based On Alerts - Color Volume Bars Based on Previous Down Candles Only

[2024-03-06 16:15:48]
John - SC Support - Posts: 36238
An Up candle is generally defined as the Close is greater than the Open. But, you can modify this in the Graphics Settings. If you use the traditional nomenclature, then to add this to your existing alert, you would have the following:
=AND(C > O, V>MAX(V[-1], V[-2], V[-3], V[-4], V[-5]))

In terms of the last 5 down candles, this gets tricky depending on whether you want to just view the down candles for the last 5 bars, or actually find the last last 5 down candles.

In either case, you would be best served to use the Spreadsheet Study to do what you want. You can set the Draw Style for the subgraph that has the resulting value to "Color Bar" if you just want to color the bar, so you would not need the Color Bar Based on Alert Condition study.

Refer to the following:
Working with Spreadsheets

Chart Studies: Subgraphs Tab >> Draw Style
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing