For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Unrealized Trades Drawdown
-
I'm looking to find the max drawdown of the unrealized trades. So if a trade is -30% but goes to +30% before a close is executed, I want to be able to see the trade at some point was -30%.
Maybe a custom observer would do it, but I'm just coming back after a bit of a hiatus so I'm a bit rusty.
Any help would be great!
Thanks
-
@Daniel-Martens-0 seems you are looking for the max adverse excursion. Check out this if the analyzer from the https://community.backtrader.com/topic/1274/closed-trade-list-including-mfe-mae-analyzer thread helps you.
-
@ab_trader Wonderfull, Thanks so much