Electrified

Momentum

Electrified 업데이트됨   
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:
릴리즈 노트:
v2 Cleanup.
릴리즈 노트:
v3 Fixed function docs.
릴리즈 노트:
v4 Republish for debugging server error
릴리즈 노트:
v5 Updated reference with improved MovingAverage lib.
릴리즈 노트:
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.
릴리즈 노트:
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.
파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.