Files
snippets/vbt-helper.ipynb
David Brazda 9a0b9c1c81 update
2024-10-10 11:01:46 +02:00

1.7 KiB

In [4]:
import vectorbtpro as vbt

vbt.IF.list_indicators("*SMA")
vbt.phelp(vbt.indicator("talib:MACD").run)
MACD.run(
    close,
    fastperiod=Default(value=12),
    slowperiod=Default(value=26),
    signalperiod=Default(value=9),
    timeframe=Default(value=None),
    short_name='macd',
    hide_params=None,
    hide_default=True,
    **kwargs
):
    Run `MACD` indicator.
    
    * Inputs: `close`
    * Parameters: `fastperiod`, `slowperiod`, `signalperiod`, `timeframe`
    * Outputs: `macd`, `macdsignal`, `macdhist`
    
    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 `MACD.run_pipeline`.