vectorbt icon indicating copy to clipboard operation
vectorbt copied to clipboard

Examples for from_order_func stop orders

Open adampointer opened this issue 3 years ago • 1 comments

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?

adampointer avatar Jul 14 '22 15:07 adampointer

I did not see the Discussions before. https://github.com/polakowo/vectorbt/discussions/336 answers my questions!

adampointer avatar Jul 14 '22 17:07 adampointer