backtrader.indicators.dv2 module

DV2 Indicator Module - RSI(2) alternative.

This module provides the DV2 indicator developed by David Varadi as an alternative to RSI(2).

Classes:

DV2: DV2 indicator (RSI(2) alternative).

示例

class MyStrategy(bt.Strategy):
def __init__(self):

self.dv2 = bt.indicators.DV2(self.data)

def next(self):
if self.dv2[0] > 50:

self.buy()

class backtrader.indicators.dv2.DV2[源代码]

基类:Indicator

RSI(2) alternative Developed by David Varadi of http://cssanalytics.wordpress.com/

This seems to be the Bounded version.

__init__(*args, **kwargs)
frompackages = ()
packages = ()