How to use the finta.TA.BASP function in finta

To help you get started, we’ve selected a few finta examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github peerchemist / finta / tests / test_unit.py View on Github external
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