Files
ttools/tests/test_ntb.ipynb
David Brazda 1906bb8eec daily fix
2024-10-21 13:47:54 +02:00

1.8 KiB

In [2]:
%load_ext autoreload
%autoreload 2
import vectorbtpro as vbt
from ttools.vbtindicators import register_custom_inds
from ttools.indicators import CUVWAP


register_custom_inds(None, "override")
#chopiness = vbt.indicator("technical:CHOPINESS").run(s12_data.open, s12_data.high, s12_data.low, s12_data.close, s12_data.volume, window = 100)
#vwap_cum_roll = vbt.indicator("technical:ROLLING_VWAP").run(s12_data.open, s12_data.high, s12_data.low, s12_data.close, s12_data.volume, window = 100, min_periods = 5)
#vwap_cum_d = vbt.indicator("ttools:CUVWAP").run(s12_data.high, s12_data.low, s12_data.close, s12_data.volume, anchor="D", drag=50)
#vwap_lin_angle = vbt.indicator("talib:LINEARREG_ANGLE").run(vwap_cum_d.vwap, timeperiod=2)

vbt.IF.list_indicators("ttools")
The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload
Out[2]:
['CUVWAP', 'DIVRELN']