mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
10 lines
182 B
Python
10 lines
182 B
Python
|
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)
|