In my strategy, I want to set the stoploss as the minimum price between 24 hours.
lowest = ta.lowest(low, 25)
if (4.2 >= stoploss and stoploss >= 1.7)
strategy.entry("LONG", strategy.long, when=long)
strategy.exit("exit", "LONG", loss= lowest, profit= close * 4)
However, if I use the lowest I set, the bar will continue to pile up after entering from the long, and the minimum value will change.
How can I use it as a stoploss by fixing the minimum value between 25 hours?