How to backtest any strategy for only intraday and with 1% stop loss?

the syntax for giving 1% stoploss..

buy/sell * 1.01

if you multiply * 1.01 is equal to 1%

1 Like

where to write this code?
in exit Long Position?

Please also give solution for backtesting only for intraday.
Can I do time base(say at 3:15 pm) Auto squareoff ?