Need Price,fixed percentage based Target pi script

need pi script for if:
my condition met and I buy at 100, now I want to fix my SL at 90 and target at 120…??
I want to place my SL at 5% and TGT at 10%.
please create pi code for it.

I also want to know this. Kindly let us know.