mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
14 lines
349 B
Python
14 lines
349 B
Python
import pandas as pd
|
|
|
|
from freqtrade.indicator_helpers import went_down, went_up
|
|
|
|
|
|
def test_went_up():
|
|
series = pd.Series([1, 2, 3, 1])
|
|
assert went_up(series).equals(pd.Series([False, True, True, False]))
|
|
|
|
|
|
def test_went_down():
|
|
series = pd.Series([1, 2, 3, 1])
|
|
assert went_down(series).equals(pd.Series([False, False, False, True]))
|