backtesting.py
backtesting.py copied to clipboard
Dynamic leverage / ability to adjust margin while backtest is running
I want to request the ability to adjust the margin while backtesting.
Why is this important? When implementing a strategy, there are periods where we want to have less or more leverage based on some market fundamentals. This will enable a better backtest where we can be more aggressive in bullish periods and conservative in bearish periods.