i need a little indicator thanks who helps me

 

I would need an indicator to tell me in any way when it occurs that two neighboring candles have highs no more than 3 pips apart in an uptrend and when two neighboring candles occur that have lows no farther than 3 pips in a trend bearish