backtesting.py
backtesting.py copied to clipboard
Setting position size to 10% for each trade
I want to trade with 10% of my total capital for each orders...
Can't find any information about it in the documentation.
So is there any way to do that while backtesting?
Can't find any information about it in the documentation.
That's peculiar, since it's literally mentioned everywhere that you can use order size= between 0 and 1 to mean a fraction of equity:
self.buy(size=0.1) # =10%