Support Board
Date/Time: Thu, 23 Jan 2025 04:59:46 +0000
[Programming Help] - Alert Based on ZigZag Tot. Accum. Volume Comparison
View Count: 1194
[2018-11-15 06:42:47] |
User68474 - Posts: 201 |
Is it possible to create an alert(Color Bar/or Background)based upon a ">" or "<" condition of the Accumulated Total Volume(usually Subgraph 5) for any given pair of Zig Zag Highs or Lows (i.e. comparing the Tot. Vol. Accum. of any given "leg" of a ZZ "swing", UP or DOWN, to the previous similar UP/DOWN swing)? To clarify, I'm not wanting to compare Subgraph 5 to the previous leg[-1](which, obviously, is in the opposite direction), but rather to the PREVIOUS similar UP/DOWN leg which is, in effect, the Accumulated Volume [-2].
Date Time Of Last Edit: 2018-11-15 06:46:11
|
[2018-11-15 13:25:34] |
Sawtooth - Posts: 4162 |
You'll need to use the Spreadsheet System/Alert study to do what you want. It can't be done with the Color Bar studies because you'll need to create a persistent variable of the previous leg's value. In fact, you'll need to do it for the two most recent legs because the most recent leg isn't finalized for n bars. Here's an example set of formulas: Spreadsheet Example Formulas and Usage: Return Last Two Zig Zag Reversal Values You'll need to modify these to get the two most recent ZZ highs/Lows, then write an alert formula based on them. |
To post a message in this thread, you need to log in with your Sierra Chart account: