Any updates on this topic? I am trying to obtain simpler risk management except that when the current close price is greater than 5% of my entry price, I want to be able to amend my initial stop loss to breakeven stop.
I tried using the bracket example in backtrader and manually add orders when the TP1 is obtained. Then I place a new order. However, when the trade is closed, that newly issued breakeven stop is still dangling.
Is there any example that shows how I can implement bracket order with amdendent?
@floomi orders are issued for certain data feed. you can easily get signals on one data feed and issue buy/sell orders on another. data feeds are added to cerebro before the strategy is backtested, therefore you can not create a data feed inside the strategy.