PINE LIBRARY
업데이트됨 MomentumSignals

Library "MomentumSignals"
Contains utilities varying algorithms for detecting key changes in momentum. Note: Momentum is not velocity and should be used in conjunction with other indicators. A change in momentum does not mean a reversal of velocity or trend.
simple(primary, secondary, len) Compares two series for changes in momentum to derive signal values.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
len: The number of bars to measure the change in momentum.
filtered(primary, secondary, len, stdlen, stdMultiple) Compares two series for changes in momentum to derive signal values. Uses statistics to filter out changes in momentum.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
len: The number of bars to measure the change in momentum.
stdlen: The number of bars to measure the change in momentum for filtering.
stdMultiple: The multiple of the change in momentum to use before reversiing.
special(primary, secondary, stdlen, stdMultiple) Compares two series for changes in momentum to derive signal values. Uses statistics to filter out changes in momentum. Does not signal when likely overbought or oversold.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
stdlen: The number of bars to measure the change in momentum for filtering.
stdMultiple: The multiple of the change in momentum to use before reversiing.
Contains utilities varying algorithms for detecting key changes in momentum. Note: Momentum is not velocity and should be used in conjunction with other indicators. A change in momentum does not mean a reversal of velocity or trend.
simple(primary, secondary, len) Compares two series for changes in momentum to derive signal values.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
len: The number of bars to measure the change in momentum.
filtered(primary, secondary, len, stdlen, stdMultiple) Compares two series for changes in momentum to derive signal values. Uses statistics to filter out changes in momentum.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
len: The number of bars to measure the change in momentum.
stdlen: The number of bars to measure the change in momentum for filtering.
stdMultiple: The multiple of the change in momentum to use before reversiing.
special(primary, secondary, stdlen, stdMultiple) Compares two series for changes in momentum to derive signal values. Uses statistics to filter out changes in momentum. Does not signal when likely overbought or oversold.
Parameters:
primary: The primary series (typically a moving average) to look for changes in momentum.
secondary: The secondary series (typically derived moving average of the primary) to use as a comparison value.
stdlen: The number of bars to measure the change in momentum for filtering.
stdMultiple: The multiple of the change in momentum to use before reversiing.
릴리즈 노트
v2 Updated Thumbnail릴리즈 노트
v3 Added stochRSI signal.Added:
stochRSI(fast, fast, rsiLen, stochLen, src, kmode, upper, lower) Returns a signal value representing the stage of where the RSI is in its cycle.
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.
upper: The upper band of the range.
lower: The lower band of the range.
Returns: [K, D]
릴리즈 노트
v4 Fixed function docs.릴리즈 노트
v5릴리즈 노트
v6 Exposed 'stage' to stochRSI signal.릴리즈 노트
v7 Updated reference with improved Momentum/MovingAverages.릴리즈 노트
v8: Revised 'stage' values and improve signals.+1 oversold and rising
+2 rising above lower boundary
+3 rising above mid
+4 overbought
-1 overbought and falling
-2 falling above mid
-3 falling below upper boundary
-4 oversold
Updated:
stochRSI(smoothK, smoothD, rsiLen, stochLen, src, kmode, upper, lower) Returns a signal value representing the stage of where the RSI is in its cycle.
Parameters:
smoothK: The length to average the stochastic.
smoothD: 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.
upper: The upper band of the range.
lower: The lower band of the range.
Returns: [signal, stage] Where stage is: +1 is oversold and rising, +2 rising above lower bound but less than mid. +3 rising above mid. +4 is overbought. Negative numbers are the reverse.
릴리즈 노트
v9 Sensitivity revisions.릴리즈 노트
v10 Improved signal logic.파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.