Setting stoploss

Mohit
Hi,

I went to put a stoploss on my positions and this stoploss need to be updated every N minutes.

e.g. Let's say I have a long position in NIFTY future. Current price is 8200. My SL is 8100.

First, how can I put the Stoploss ?

Second, if the NIFTY price increases to 8300, my SL is 8150. How can I change it ?

A sample code would be highly appreciated.

Best Regards,
Mohit
This discussion has been closed.