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!
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?