PINE LIBRARY

LibrarySupertrend

Library "LibrarySupertrend"

selective_ma(condition, source, length)
  Parameters:
    condition (bool)
    source (float)
    length (int)

trendUp(source)
  Parameters:
    source (float)

smoothrng(source, sampling_period, range_mult)
  Parameters:
    source (float)
    sampling_period (simple int)
    range_mult (float)

rngfilt(source, smoothrng)
  Parameters:
    source (float)
    smoothrng (float)

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

zonestrength(amplitude, wavelength)
  Parameters:
    amplitude (int)
    wavelength (simple int)

atr_anysource(source, atr_length)
  Parameters:
    source (float)
    atr_length (simple int)

supertrend_anysource(source, factor, atr_length)
  Parameters:
    source (float)
    factor (float)
    atr_length (simple int)
inputsMATHstatistics

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer