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