TradingView
wbburgin
12 mar 2023 21:31

wbburgin_utils 

Beskrivning

Library "wbburgin_utils"

trendUp(source)
  Parameters:
    source

smoothrng(source, sampling_period, range_mult)
  Parameters:
    source
    sampling_period
    range_mult

rngfilt(source, smoothrng)
  Parameters:
    source
    smoothrng

fusion(overallLength, rsiLength, mfiLength, macdLength, cciLength, tsiLength, rviLength, atrLength, adxLength)
  Parameters:
    overallLength
    rsiLength
    mfiLength
    macdLength
    cciLength
    tsiLength
    rviLength
    atrLength
    adxLength

zonestrength(amplitude, wavelength)
  Parameters:
    amplitude
    wavelength

atr_anysource(source, atr_length)
  Parameters:
    source
    atr_length

supertrend_anysource(source, factor, atr_length)
  Parameters:
    source
    factor
    atr_length

Versionsinformation

v2

Added "selective_ma(bool condition, float source, int length)". The selective MA only adds data into its average if the condition is met, for example:

selective_ma( close > open, close, 200 ) will return the close values in the last 200 bars only if the close is greater than the open.
Mer