vectorbt
vectorbt copied to clipboard
Examples for from_order_func stop orders
Hi, thanks for the great library and all your hard work.
I am really struggling to get my head around from_order_func. Specifically around stop orders. I want to place and trail a stop loss according to custom logic. It is a pairs strategy so there will be a set of two stops. However right now I cannot even work out how to place a simple stop.
Are there any examples of stop orders set from from_order_func?
I did not see the Discussions before. https://github.com/polakowo/vectorbt/discussions/336 answers my questions!