Alert on touch or cross upper or lower BB - page 2

 
Don't use double spacing!
 
Vladimir Karputov:

Here is the first version: pay attention - I made a very strict condition in this version: the previous bar (both the price of 'high' and the price of 'low') should be outside.

If this is a very strict condition, I can mitigate it: instead of the prices 'high' and 'low' use the prices 'open' and 'close'.

First of all, thank you for sharing this piece of code. Is it possible to play a sound as an alert instead of drawings on chart?
Reason: