Fix type-errors with stake_amount
This commit is contained in:
parent
52f0ed5310
commit
bd4dd8403b
@ -279,7 +279,7 @@ class Backtesting:
|
||||
return bt_res
|
||||
return None
|
||||
|
||||
def backtest(self, processed: Dict, stake_amount: int,
|
||||
def backtest(self, processed: Dict, stake_amount: float,
|
||||
start_date, end_date,
|
||||
max_open_trades: int = 0, position_stacking: bool = False) -> DataFrame:
|
||||
"""
|
||||
@ -405,7 +405,7 @@ class Backtesting:
|
||||
# Execute backtest and print results
|
||||
all_results[self.strategy.get_strategy_name()] = self.backtest(
|
||||
processed=preprocessed,
|
||||
stake_amount=self.config.get('stake_amount'),
|
||||
stake_amount=self.config['stake_amount'],
|
||||
start_date=min_date,
|
||||
end_date=max_date,
|
||||
max_open_trades=max_open_trades,
|
||||
|
Loading…
Reference in New Issue
Block a user