Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 09:56:55 +0000



Post From: Color Bar Based on Closing Price Above Bollinger Bands

[2016-11-17 16:13:08]
User600819 - Posts: 43
Top bollinger Band is ID2.SG1. I'm attempting to create an alert that says count 5 bars that have closed above the top bollinger band after the first bar closed below the top bollinger band. Essentially, count the first five closes above the bollinger band. I attempted to create that below by having trying to think of a way to initiate the count which was count the last bar close below the top bollinger band and then start the count after that close. The fifth bar that closes above the top bollinger band should be highlighted.

My attempt which is not working:
=AND(C <= ID2.SG1[-5], C >= ID2.SG1[-4],C >= ID2.SG1[-3],C >= ID2.SG1[-2],C >= ID2.SG1[-1], C >= ID2.SG1)