-
Hello, First of all, great thanks for this powerful framework. I am starting to get the hang of it. For my purpose I found the from_order_func the most appropriate way to backtest my strategies. However, some basic stuff I didn't quite figure out yet. When you place an order in order_func_nb I would like to set a TP and SL for that specific order, which will automatically be executed by the framework (closing the position). How can I achieve this? Also I am interested in setting TP and SL specific to each order, i.e. not constant over time (like some percentage of the entry price) as in the from_order/from_signal methods. Also, I was wondering if there is the option of changing the mode between single-asset (only long or short positions, i.e. when you sell into a long position, it will reduce the long position) and hedge (long and short positions open at the same time)? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Anybody has an idea? |
Beta Was this translation helpful? Give feedback.
Anybody has an idea?