Help in algorithm

Is it possible to create an algo which gives a buy signal when the open of a 5min candle =low of the 5min candle