amibroker code Help

Hi,

my strategy is bolinger band when price closes above and Top band and nex candle should be reversal candle then sell for sell vice virsa

I want avoid the trade when first candle closes above should not be too big. if it is more than 1.5% then no buy else it can be continute to buy.

Please Help