Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_basp():
"""test TA.BASP"""
basp = TA.BASP(ohlc)
assert isinstance(basp["Buy."], series.Series)
assert isinstance(basp["Sell."], series.Series)
assert basp["Buy."].values[-1] == 0.066916805574281202
assert basp["Sell."].values[-1] == 0.091486900946605054