backtrader.indicators.contrib package

Contributed Indicators Module - Community-contributed technical indicators.

This module contains technical indicators contributed by the community that are not part of the standard indicator set.

Indicators:

Vortex: Vortex Indicator for trend identification.

Example

Using Vortex indicator in a strategy: >>> class MyStrategy(bt.Strategy): … def __init__(self): … self.vortex = bt.indicators.Vortex(self.data, period=14) … … def next(self): … if self.vortex.vi_plus[0] > self.vortex.vi_minus[0]: … self.buy()

Submodules