Electrified

Momentum

Electrified Telah dikemas kini   
Library "Momentum"
Contains utilities varying algorithms for measuring momentum.

simple(fast, slow, src, fastType, slowType) Derives momentum from two moving averages of different lengths.
  Parameters:
    fast: The length of the fast moving average.
    slow: The length of the slow moving average.
    src: The series to measure from. Default is 'close'.
    fastType: The type of moving average the fast should use. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.
    slowType: The type of moving average the slow should use. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.

stochRSI(fast, fast, rsiLen, stochLen, src, kmode) Returns the K and D values of a Stochastic RSI. Allows for different moving averages to produce the K value.
  Parameters:
    fast: The length to average the stochastic.
    fast: The length to smooth out K and produce D.
    rsiLen: The length of the RSI.
    stochLen: The length of stochastic.
    src: The series to measure from. Default is 'close'.
    kmode: The type of moving average to generate. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.
  Returns:

macd(fast, slow, signal, src, fastType, slowType, slowType) Same as well-known MACD formula but allows for different moving averages types to be used.
  Parameters:
    fast: The length of the fast moving average.
    slow: The length of the slow moving average.
    signal: The length of average to applied to smooth out the signal.
    src: The series to measure from. Default is 'close'.
    fastType: The type of moving average the fast should use. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.
    slowType: The type of moving average the slow should use. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.
    slowType: The type of moving average the signal should use. Values allowed are: SMA, EMA, WMA, VWMA and VAWMA.
  Returns:
Nota Keluaran:
v2 Cleanup.
Nota Keluaran:
v3 Fixed function docs.
Nota Keluaran:
v4 Republish for debugging server error
Nota Keluaran:
v5 Updated reference with improved MovingAverage lib.
Nota Keluaran:
v6 Added 'changeNormalized' function for normalizing the velocity of movement. Typically used for moving averages.

Added:
changeNormalized(src, len) Returns the 'change' (current - previous) in value normalized by standard deviation measured by the provided length.
  Parameters:
    src: The series to measure changes.
    len: The number of bars to measure the standard deviation.
Nota Keluaran:
v7 Updated DataCleaner and implemented normalize function.

Updated:
changeNormalized(src, len) Returns the 'change' (current - previous) in value normalized by standard deviation measured by the provided length.
  Parameters:
    src: The series to measure changes.
    len: The number of bars to measure the standard deviation.
Perpustakaan Pine

Di dalam semangat sebenar TradingView, pengarang telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka, jadi pengaturcara-pengaturcara Pine yang lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau pada penerbitan-penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini di dalam penerbitan adalah ditadbir oleh Peraturan Dalaman.

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.

Mahu gunakan perpustakaan ini?

Salin garisan ini dan tampalkan ia di dalam skrip anda.