You can use this one
Dear mladen and mrtools ( or anyone )
Can you help me to fix this indic when BBUpperBand or BBLowerBand cross the level 50.
I try to do that but it is wrong.
Many many thanks in advance
You are trying to use i that has negative values when you are checking for alerts
Try the attached