indicator_decorator#

API documentation for tradeexecutor.strategy.pandas_trader.indicator_decorator Python module in Trading Strategy.

Module description#

Decorator syntax for indicators.

  • Allow shorter definition of indicators using Python decorators, over the manual methods provided in tradeexecutor.strategy.pandas_trade.indicator module.

  • See IndicatorRegistry for usage.

Classes#

IndicatorDecoration

Internal struct capturing information we need about indicators.

IndicatorRegistry

Decorator-based helper class for defining strategy indicators.

Functions#

detect_source(func, source)

Based on indicator function arguments, detect what kind of data source it needs.

extract_args(func)

Get the names of Python function arguments.