Breakout strategy based on previous day last 5 mints candle

I want to create breakout strategy based on previous day last 5 mints candel which 3.25pm candel and I want trade to happen everyone time it cross from up to down and down to up

Also lock my profit to rs 300 and trail from there for every 300 positive should lock profit, example if profit reache to 600 rs the profit should lock to 600

You can try with ’ Initialize Variable ’ for getting values of high and low of previous day last 5 min candle. Use that variables in entry conditions.

For locking profit you can set that in advance setting

I am not finding that keyword, can you please send me sample code same and entry should be taken every time it breaks high or low of previous day 5 mints candle also first entry should fresh break of current day