Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
TA.ROC regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Mar 24, 2020
1 parent d140d89 commit 30b491e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ def test_mom():
assert round(talib_mom[-1], 5) == round(mom.values[-1], 5)


def test_roc():
"""test TA.ROC"""

roc = TA.ROC(ohlc, 10)
talib_roc = talib.ROC(ohlc["close"], 10)

assert round(talib_roc[-1], 5) == round(roc.values[-1], 5)


def test_rsi():
'''test TA.RSI'''

Expand Down

0 comments on commit 30b491e

Please sign in to comment.