开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Placing Trailing Stop Limit Orders


 

Hello,

Anyone who uses this order type, can you please confirm whether this code is correct to create an order with 1% trail? Most interested in the 'trailingPercent' field i.e. whether to pass the percent value as 1 or 0.01.

Are there any other fields needed for the order to correctly execute?

Thanks so much!

trailingStopOrder = ibi.Order(action=closingAction, totalQuantity=acccountPosition.position, orderType='TRAIL LIMIT', trailingPercent=1, account=acccountPosition.account, outsideRth= True, tif= "DAY")

Join [email protected] to automatically receive all group messages.