PINE LIBRARY
Cập nhật 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.
Phát hành các Ghi chú
v2 Updated ThumbnailPhát hành các Ghi chú
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]
Phát hành các Ghi chú
v4 Fixed function docs.Phát hành các Ghi chú
v5Phát hành các Ghi chú
v6 Exposed 'stage' to stochRSI signal.Phát hành các Ghi chú
v7 Updated reference with improved Momentum/MovingAverages.Phát hành các Ghi chú
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.
Phát hành các Ghi chú
v9 Sensitivity revisions.Phát hành các Ghi chú
v10 Improved signal logic.Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.