How to set Stoploss = Signal candle's previous candle's low

I am making a strategy, in which buy should trigger when RSI crosses value 70.
Now after that I want to place Stop Loss.

Stop Loss = Signal candle’s previous candle’s low.

Time frame = 15 mnt
Buy Signal is generated at 9:45-10:00 candle.
So here my stop loss is low of 9:30-9:45 Candle’s low.

I have searched a lot in blogs and templates, but I am not able to find out how to do that.
Can anyone please guide me on how I can set stop loss as above condition.


This will require condition action to store the value of candle low in a variable.
Please write an email to [email protected] for this