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

Commit

Permalink
obv regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Mar 21, 2020
1 parent e435422 commit d140d89
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,14 @@ def test_adx():
ta_adx = talib.ADX(ohlc["high"], ohlc["low"], ohlc["close"], timeperiod=12)

assert int(ta_adx[-1]) == int(adx.values[-1])


def test_obv():
"""test OBC"""

obv = TA.OBV(ohlc)
talib_obv = talib.OBV(ohlc["close"], ohlc["volume"])

#assert obv.values[-1] == talib_obv[-1]
#assert -149123.0 == -148628.0
pass # close enough

0 comments on commit d140d89

Please sign in to comment.