MQL5 Expert Advisor Help

I trade bollinger bands to trade divergence in a range of 50 candles, how can i code the ea to spot the previous candles that will cross the bollinger band ?

Hi, did you visit websites which I sent you? Regards Greg