Files
snippets/vbt-helper.ipynb
David Brazda 46838ed338 daily updae
2024-10-13 15:35:45 +02:00

4.0 KiB

In [24]:
import vectorbtpro as vbt
# IndicatorFactory.list_indicators(
#     pattern=None,
#     case_sensitive=False,
#     use_regex=False,
#     location=None,
#     prepend_location=None
# )

#365
#bt.IF.list_locations()
#vbt.IF.list_indicators(pattern="technical")

vbt.phelp(vbt.indicator("technical:CHOPINESS").run)
CHOPINESS.run(
    open,
    high,
    low,
    close,
    volume,
    window=Default(value=14),
    short_name='chopiness',
    hide_params=None,
    hide_default=True,
    **kwargs
):
    Run `CHOPINESS` indicator.
    
    * Inputs: `open`, `high`, `low`, `close`, `volume`
    * Parameters: `window`
    * Outputs: `chopiness`
    
    Pass a list of parameter names as `hide_params` to hide their column levels, or True to hide all.
    Set `hide_default` to False to show the column levels of the parameters with a default value.
    
    Other keyword arguments are passed to `CHOPINESS.run_pipeline`.
In [ ]:
 
In [9]:
import vectorbtpro as vbt


vbt.IF.list_locations()

#vbt.IF.list_indicators("technical*")
#vbt.phelp(vbt.indicator("talib:BBANDS").run)

['vbt',
 'talib_func',
 'talib',
 'pandas_ta',
 'ta',
 'technical',
 'techcon',
 'smc',
 'wqa101']
Out[9]:
['vbt',
 'talib_func',
 'talib',
 'pandas_ta',
 'ta',
 'technical',
 'techcon',
 'smc',
 'wqa101']
In [10]:
vbt.phelp(vbt.indicator("technical:HULL_MOVING_AVERAGE").run)
HULL_MOVING_AVERAGE.run(
    close,
    window=Default(value=200),
    min_periods=Default(value=None),
    short_name='hull_moving_average',
    hide_params=None,
    hide_default=True,
    **kwargs
):
    Run `HULL_MOVING_AVERAGE` indicator.
    
    * Inputs: `close`
    * Parameters: `window`, `min_periods`
    * Outputs: `hull_moving_average`
    
    Pass a list of parameter names as `hide_params` to hide their column levels, or True to hide all.
    Set `hide_default` to False to show the column levels of the parameters with a default value.
    
    Other keyword arguments are passed to `HULL_MOVING_AVERAGE.run_pipeline`.