Merge commit 'd13d6736b92ebfed1e172b60c77029e6c10b29a6' into feature/objectify

This commit is contained in:
Gerald Lonlas
2018-03-04 00:51:49 -08:00
3 changed files with 58 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
import pandas as pd
from freqtrade.indicator_helpers import went_up, went_down
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]))