There are several ways to do it:
For example, you want to open a market buy order with a stoploss level being 10% from its entry price.
Refer to the TechDoc's PlaceOrder section, you can do it as in line #19.
Alternatively, you can use the UpdateOpenedOrder function to update the stoploss level after an order has been successfully opened. Just in line #26 and #28.