Leverage only works for short positions
Renke Ludwig last edited by
Okay so I'm currently backtesting my crypto strategy and I normally use leverage. If I let the backtest run without leverage (cerebro.broker.setcommission(commission=0.00075)) I can see that the position size is equal for both long and short positions:
If I now add leverage (cerebro.broker.setcommission(commission=0.00075, leverage=10)) I can clearly see that only short positions get leveraged and long positions not at all:
Does anyone have an idea or did I miss something?