In PI EXPERT ADVISOR CAN WE GIVE TARGET %

SUPPOSE IF THE SIGNAL GENERATES AND IN THE BUY EXIT I NEED TO CODE THE TARGET PERCENTAGE LIKE 1% OR 0.5% FROM THE BUY PRICE IS IT POSSIBLE? THEN HOW CAN I CODE THAT PLEASE ADVICE

EG:

IF NIFTY BUY SIGNAL AT 8300 AND ALSO THE BUY EXIT AT 8320 IF ACHIEVED

it is not possible to code based on percentage exactly with tradescript