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!
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?