Now I see a sample chart of the bars in question I can see why you say they are simple. In real life, you won't find too many adjacent bar double top or double bottoms like that (I don't think the sample chart is even an actual chart). If you just want to program such a pattern, the logic provided above (or similar logic) will let you program such pattern matching in EL, but you are unlikely to find many matches. There are a lot more
practical three bar group patterns you can explore, for example the ones mention in
Suri's book
The first ELD ...SURIBARS below is not an actual indicator, just the functions for matching the three bar groups pattern. The second ELD, ...SURI.CANDLEREADER is an indicator, capable of matching several candle stick patterns, written by Suri. You should be able to use that as an example to explore more simple patterns.