backtrader.indicators.contrib.vortex module¶
Vortex Indicator Module - Vortex Movement Indicator.
This module provides the Vortex indicator, which measures trend movement direction and identifies the start of a trend.
- Classes:
Vortex: Vortex Movement Indicator (Vortex).
Example
>>> 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()