Stop loss based on previous few candles to Entry Price

How to enter Stop loss based on previous few candles to Entry Price. Lowest low of previous 5 candles of entry candle to be placed as stop loss?