shaili8910

Bollinger Band Open Gap Alert V1

This is the bare bones of what I'm trying to achieve through pine script. The purpose of the script is to:

1. On a 15m chart, calculate and plot upper & lower Bollinger bands and simple moving average of 20 periods. (DONE)

2. On a new day, when the first 15m candle of a session forms, I want to check if a) the low of the new candle is outside the upper Bollinger band (also known as an open gap up) or b) if the high of the candle is the outside the lower Bollinger band (also known as open gap down). In other words, I want to know if the Bollinger Bands are not touching the new candle's wicks/shadows. (DONE)

3. Alert me if the above happens. (DONE)

4. Run the indicator through an entire watch list. I'm not sure if that's possible, yet. (HELP)

For the above job, this is what I could come up with. I need guidance for the last step. And any suggestions for corrections or improvements would be greatly appreciated!
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?