def test_bop(): """test TA.BOP""" bop = TA.BOP(ohlc).round(decimals=8) assert isinstance(bop, series.Series) assert bop.values[-1] == 0.03045138
def test_bop(): """test TA.BOP""" bop = TA.BOP(ohlc) assert isinstance(bop, series.Series) assert bop.values[-1] == 0.03045137813051517
prices["STOCH"] = TA.STOCH(ohlc) prices["STOCHD"] = TA.STOCHD(ohlc) prices["STOCHRSI"] = TA.STOCHRSI(ohlc) # Williams %R is a technical analysis oscillator prices["WR"] = TA.WILLIAMS(ohlc) # Awesome Oscillator - measures market momentum prices["awesome_oscil"] = TA.AO(ohlc) prices["ultimate_oscil"] = TA.UO(ohlc) # Mass index - measures high-low range expansion to identify trend reversals. Essentially volatility indicator prices["MI"] = TA.MI(ohlc) # Balance of power indicator prices["BOP"] = TA.BOP(ohlc) # Vortex indicator is two oscillating lines one for positive trend movement and one for negative trend movment prices["VIm"], prices["VIp"] = TA.VORTEX(ohlc) # Know sure thing momentum oscillator prices["KST_k"], prices["KST_signal"] = TA.KST(ohlc) # True strength index momentum oscillator prices["TSI"], prices["TSI_signal"] = TA.TSI(ohlc) # Typical price is average of high, low and close prices["True_Price"] = TA.TP(ohlc)