Support Board
Date/Time: Mon, 25 Nov 2024 11:29:31 +0000
Color Bar Based On Alerts - Color Volume Bars Based on Previous Down Candles Only
View Count: 201
[2024-03-06 00:37:10] |
User261655 - Posts: 28 |
I'm trying to use Color Bar Based On Alerts to achieve the following: Color a volume bar if the associated price candle closes up, and volume is greater that any one of the last five price down candles. I'm using this: = V>MAX(V[-1], V[-2], V[-3], V[-4], V[-5]) But I can't figure out how to apply it only to up volume based on the five previous down candles, (if that's even possible with this study). Thanks in advance for any help. |
[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 |
To post a message in this thread, you need to log in with your Sierra Chart account: