Support Board
Date/Time: Thu, 23 Jan 2025 21:25:01 +0000
Post From: Code for HIGH > Highest High of last X bars
[2018-12-11 04:27:10] |
Sawtooth - Posts: 4162 |
Since you can't use a range in Simple Alert syntax, the easiest way to do what you want is to add the Highest High/Lowest Low Over N Bars study, and reference it in the color bar's formula, like this: =H>ID1.SG1[-1] where ID1 is the HH/LL Over N Bars study. Otherwise your formula would look like this: =AND(H>H[-1],H>H[-2],H>H[-3],H>H[-4],H>H[-5],H>H[-6],H>H[-7],H>H[-8],H>H[-9]) ...etc. |