mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Merge pull request #1072 from freqtrade/datesorting-backtest-fix
Use pandas own min and max
This commit is contained in:
commit
78f8c6566e
|
@ -77,7 +77,7 @@ class Backtesting(object):
|
||||||
:return: tuple containing min_date, max_date
|
:return: tuple containing min_date, max_date
|
||||||
"""
|
"""
|
||||||
timeframe = [
|
timeframe = [
|
||||||
(arrow.get(min(frame.date)), arrow.get(max(frame.date)))
|
(arrow.get(frame['date'].min()), arrow.get(frame['date'].max()))
|
||||||
for frame in data.values()
|
for frame in data.values()
|
||||||
]
|
]
|
||||||
return min(timeframe, key=operator.itemgetter(0))[0], \
|
return min(timeframe, key=operator.itemgetter(0))[0], \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user