freqtrade_origin/freqtrade/indicator_helpers.py

10 lines
182 B
Python
Raw Normal View History

2018-02-13 09:37:59 +00:00
from pandas import Series
def went_up(series: Series) -> Series:
return series > series.shift(1)
def went_down(series: Series) -> Series:
return series < series.shift(1)