candle pattern indicator coding

 
Hi is there anyone out there that can possibly code an indicator for a specific candle stick pattern i use. just a simple alert and arrow would be great.

pattern for a bullish signal would be bull bar followed by two bear bars that come to the base of the bull (or less) followed by a bull bar equal to the first bar. vica versa for sell.

I would really appreciate the help
Regards leigh
 
 The 2 red candles don't go lower than the green candle before? So the indicator would not trigger here? Or did I misunderstand you? I can do some coding, but I am not a good trader, so I might got you wrong.