chore: improved naming for method
This commit is contained in:
@@ -273,7 +273,7 @@ class Backtesting:
|
|||||||
self.futures_data: dict[str, DataFrame] = {}
|
self.futures_data: dict[str, DataFrame] = {}
|
||||||
|
|
||||||
def init_backtest(self):
|
def init_backtest(self):
|
||||||
self.prepare_backtest(False)
|
self.reset_backtest(False)
|
||||||
|
|
||||||
self.wallets = Wallets(self.config, self.exchange, is_backtest=True)
|
self.wallets = Wallets(self.config, self.exchange, is_backtest=True)
|
||||||
|
|
||||||
@@ -427,7 +427,7 @@ class Backtesting:
|
|||||||
def disable_database_use(self):
|
def disable_database_use(self):
|
||||||
disable_database_use(self.timeframe)
|
disable_database_use(self.timeframe)
|
||||||
|
|
||||||
def prepare_backtest(self, enable_protections):
|
def reset_backtest(self, enable_protections):
|
||||||
"""
|
"""
|
||||||
Backtesting setup method - called once for every call to "backtest()".
|
Backtesting setup method - called once for every call to "backtest()".
|
||||||
"""
|
"""
|
||||||
@@ -1692,7 +1692,7 @@ class Backtesting:
|
|||||||
:param end_date: backtesting timerange end datetime
|
:param end_date: backtesting timerange end datetime
|
||||||
:return: DataFrame with trades (results of backtesting)
|
:return: DataFrame with trades (results of backtesting)
|
||||||
"""
|
"""
|
||||||
self.prepare_backtest(self.enable_protections)
|
self.reset_backtest(self.enable_protections)
|
||||||
# Ensure wallets are up-to-date (important for --strategy-list)
|
# Ensure wallets are up-to-date (important for --strategy-list)
|
||||||
self.wallets.update()
|
self.wallets.update()
|
||||||
# Use dict of lists with data for performance
|
# Use dict of lists with data for performance
|
||||||
|
|||||||
Reference in New Issue
Block a user