Need help to get result target and stoploss

Seniors, Need help ..

I have written afl where i am getting BUY and SELL alerts, i want to help to make this code more advanced

like system given me BUY signle at 10:30 for buy in NIFTY-I at price 10445 with 0.0050 SL i.e. 10090 with targets 10193 / 10234 / 10319

and at 03:15 system given me a SELL signle for same symbol at price 10390

I want to prepare exploration with result.

need super help, guide me.

I want to know HIGH and LOST between BUY and SELL trigger .

Thank you in advance.