Support and resistance zone

 

Hi! I am new in coding, especially in MQL5

There are situations, where price wont go up like hitting ceilings, but price[].high for several candles are not the same, but very similar. Is there a way to desribe in MQL5 this 3-4 candle block for EA?