Support Board
Date/Time: Wed, 02 Jul 2025 04:43:56 +0000
Color Bar Alert for Price Retracement
View Count: 234
[2024-08-11 21:26:32] |
alexo2022 - Posts: 49 |
How can I set up color bar alert that calculates if the current bar movement is covering 30%-50% from the previous bar range. |
[2024-08-12 12:23:48] |
emmanuel - Posts: 63 |
I'll give you some hints. Prior bar's range: H[-1] - L[-1] 50% of the bar's range: ((H[-1] - L[-1]) * 0.5) 30% of the bar's range: ((H[-1] - L[-1]) * 0.3) The price at 50% of the prior bar's range: H[-1] - ((H[-1] - L[-1]) * 0.5) The price at 30% of the prior bar's range, from the prior bar's high: H[-1] - ((H[-1] - L[-1]) * 0.3) The price at 30% of the prior bar's range, from the prior bar's low: This is your homework. Detecting a bearish 30% retracement from the prior bar's high: L < H[-1] - ((H[-1] - L[-1]) * 0.3) Detecting a bearish 30%-50% retracement from the prior bar's high: AND(L < H[-1] - ((H[-1] - L[-1]) * 0.3), L >= H[-1] - ((H[-1] - L[-1]) * 0.5)) |
To post a message in this thread, you need to log in with your Sierra Chart account: