Want PI Script for exit

Hi @nithin .
I’m new to PI and Scripts
I just want to do backtest in PI

Buy: RSI below 25 { i saw it from help guide : RSI(Close,14)<25}

Exit: i want a profit of 3% of my purchase

what is the exit script ?

the buy script which is mentioned in transcript documentation is correct
you can use below transcript for exit

RSI(Close,14)<25 *1.03