When backtesting, pass the candle_type to load_data.
This commit is contained in:
parent
a5742b3bbc
commit
3d9360bb8c
@ -196,6 +196,7 @@ class Backtesting:
|
|||||||
startup_candles=self.required_startup,
|
startup_candles=self.required_startup,
|
||||||
fail_without_data=True,
|
fail_without_data=True,
|
||||||
data_format=self.config.get('dataformat_ohlcv', 'json'),
|
data_format=self.config.get('dataformat_ohlcv', 'json'),
|
||||||
|
candle_type=self.config.get('candle_type_def', CandleType.SPOT)
|
||||||
)
|
)
|
||||||
|
|
||||||
min_date, max_date = history.get_timerange(data)
|
min_date, max_date = history.get_timerange(data)
|
||||||
@ -224,6 +225,7 @@ class Backtesting:
|
|||||||
startup_candles=0,
|
startup_candles=0,
|
||||||
fail_without_data=True,
|
fail_without_data=True,
|
||||||
data_format=self.config.get('dataformat_ohlcv', 'json'),
|
data_format=self.config.get('dataformat_ohlcv', 'json'),
|
||||||
|
candle_type=self.config.get('candle_type_def', CandleType.SPOT)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.detail_data = {}
|
self.detail_data = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user