How to use the finta.TA 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_sma():
    """test TA.ma"""

    ma = TA.SMA(ohlc, 14)

    assert isinstance(ma, series.Series)
    assert ma.values[-1] == 6922.3392206307135
github peerchemist / finta / tests / test_unit.py View on Github external
def test_tema():
    """test TA.TEMA"""

    ma = TA.TEMA(ohlc)

    assert isinstance(ma, series.Series)
    assert ma.values[-1] == 6307.4815184378531