How to implement a bracket order with trailing stop loss and **trailing take profit** · polakowo vectorbt · Discussion #782 · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In vectorbt how can we implement the following bracket order?
For a long trade on a stock that is currently trading at 110 USD, send three orders:
Parent order: A limit buy order @ 100 USD, with a limited time in force
A trailing stop loss order with a stop amount of 5 USD, i.e. once the parent buy order is executed at 100 USD, the trailing stop will be initiated at 95 USD and the trailing stop price will increase whenever the stock price increases, but trailing stop price never decrease
A trailing take profit order where the take profit price is linked to the trailing stop price plus some add-on, i.e. trailing take profit price is always equal to the trailing stop price plus 15 USD.
Trailing stop and trailing take profit orders will be activated only if the parent order is executed.
Trailing stop and trailing take profit orders will be canceled if the parent order is cancelled.
Trailing stop loss and trailing take profit orders form a one-cancels-others (OCO) set. If one of them is executed the other will be canceled.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji
3946
reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
In vectorbt how can we implement the following bracket order?
For a long trade on a stock that is currently trading at 110 USD, send three orders:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions