Topic: I need help on writing this code in Mql4 kindly help

I have been studying this pattern for a very long time and I think its profitable so I want to create a custom indicator for it an indicator  that paint a Signal for Long & Short once conditions are met
.............................................
Bollinger Bands & candle stick

For a Long trade setup

1. Candle 1 & 2 must be an opposite candle
(Candle 1 Bull) (candle 2 Bear)

2. LowerBB must be less than the close of candle (2) & open of candle (1)

3. The candle(0) must close above the close of candle (1) for the indicator to paint a Buy signal
..............................................................

For Short trade


1. Candle 1 & 2 must be an opposite candle
(Candle 1 Bear) (candle 2 Bull)

2. HigherBB must be less than the close of candle (2) & open of candle (1)

3. The candle(0) must close Below the close of candle (1) for the indicator to paint a Sell signal

NB: the same rule also for Middle BB
See the image to understand it clearly

Post's attachments

IMG_20180324_214016_680.jpg 286.73 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.