This library comes with everything you need to add an On Balance Volume (OBV) filter to your strategy.
getOnBalanceVolumeFilter(source, maType, fastMaLength, fastMaLength) Get the fast and slow moving average for on balance volume Parameters: source: hook this up to an 'input.source' input maType: Choose from EMA, SMA, RMA, or WMA fastMaLength: int smoothing length for fast moving average fastMaLength: int smoothing length for fast moving average int smoothing length for slow moving average Returns: Tuple with fast obv moving average and slow obv moving average
Add this to your strategy ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾ ▾