@ -43,7 +43,7 @@ class PercentageCommisionScheme(bt.CommInfoBase):
)
def _getcommission(self, size, price, pseudoexec):
return size * price * self.p.commission + 4 # 290rub/month
return abs(size * price * self.p.commission) + 4 # 290rub/month
class Investing(bt.Strategy):