For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
About Commission
-
Hi Admin,
I would like to get an analyzer to get overall commission in the strategy.
Tried to look into internet and manual but no luck, nearest one i find is theget_analysis
but seems it does not provide such info. Not sure anyway i can do it? -
You could use the order.executed.comm to retrieve the commissions and run a function to add all of them and give you a total. I do recommend reading the order and trade documentation.
-
@robin-dhillon said in About Commission:
order.executed.comm
Thanks Robin, I did some further studies on how to store the commission info. Turns out the easiest way is to use
notify_trade
nicely.https://community.backtrader.com/topic/950/print-trade-simple-question/11