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).

示例

>>> 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()
class backtrader.indicators.contrib.vortex.Vortex[源代码]

基类:Indicator

See:
plotlines = <backtrader.metabase.plotlines_obj object>
__init__(*args, **kwargs)
frompackages = ()
packages = ()