self.adjust_cashΒΆ
- lumibot.strategies.strategy.Strategy.adjust_cash(self, amount: float, reason: str = 'manual_adjustment', allow_negative: bool | None = None) float
Adjust cash directly during backtesting.
Positive values add cash, negative values remove cash. This method is intended for framework-supported strategy cashflows (for example synthetic withdrawals/deposits and custom financing accruals) without mutating private internals.