PINE LIBRARY

vidya_calculate

223
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

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。