For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Fractional Sizes not working from sample code
-
hi,
I copy-pasted the sample code from:
https://www.backtrader.com/blog/posts/2019-08-29-fractional-sizes/fractional-sizes/#trading-cryptocurrencies-fractionsFrom the blog itself, the log should be :
But mine is:
As you can see, the sample log's size is -16.4574...
mine does not have any decimals.Am I doing anything wrong or am I missing something?
-
Ah i just need to remove
if args.fractional:
cerebro.broker.addcommissioninfo(CommInfoFractional())