PINE LIBRARY

vidya_calculate

198
Library "vidya_calculate"
:
Calculates the Variable Index Dynamic Average (VIDYA).
Computes the VIDYA, which adjusts the degree of smoothing based on the strength of price momentum (absolute value of CMO),
and then returns the 15-period(variable) Simple Moving Average (SMA) of that VIDYA.
VIDYA tends to follow prices more closely when price fluctuations are large, and is smoothed more when fluctuations are small.
CMO = Chande Momentum Oscillator.

vidya(src, vidyaLength, vidyaMomentum, vidyaTrendPeriod)
  : Calculates the Variable Index Dynamic Average (VIDYA)
  Parameters:
    src (float): : Source
    vidyaLength (int): : VIDYA Length
    vidyaMomentum (int): : VIDYA Momentum
    vidyaTrendPeriod (int): : VIDYA Trend Period (Display)
  Returns: : the 15-period(variable) Simple Moving Average (SMA) of that VIDYA

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.