OPEN-SOURCE SCRIPT

Relative Strength Index (SRC)

Hello everyone, I'm sorry that the previous open-source version was hidden due to the house rules, I've re-edited the description and re-posted it

(1) Indicator introduction
  • This is RSI indicator with original divergence algorithm
  • This indicator is plotted on the klines and can display the divergence locations and corresponding divergence intensity
  • The tolerance of N Klines at the top or bottom positions for price and indicator is supported, which is set by the "Tolerant Kline Number"
  • Support the display of divergence intensity, that is, the REG/HID value displayed on the label, which is less than 0. The smaller the intensity value, the more obvious divergence
  • Support the filtering of divergence intensity, which is set by "Cov Threshold". The divergence that REG/HID divergence intensity greater than this value will be ignored
  • In the label, REG indicates regular top/bottom divergence while HID indicates hidden top/bottom divergence
  • In the label, SRC(x-y) indicates a divergence occurred from the x-th kline to the y-th kline
  • In the label, OSC(x-y) indicates a divergence occurred from the indicator corresponding to the x-th kline to the y-th kline


(2) Parameter introduction
- RSI Settings
  • Source: The source to calculate RSI, close by default
  • RSI Length: The length of RSI, 14 by default

- RSI Divergence
  • Pivot Lookback Right: Number of K-line bars recalling the pivot top/bottom point to the right
  • Pivot Lookback Left: Number of K-line bars recalling the pivot top/bottom point to the left
  • Max of Lookback Range: Maximum number of retracing K-line bars to find the pivot top/bottom point
  • Min of Lookback Range: Minimum number of retracing K-line bars to find the pivot top/bottom point
  • Tolerant Kline Number: Maximum tolerance in indexing top/bottom points of Klines and indicators
  • Cov Threshold: Divergence intensity, which is less than 0. The smaller the intensity value, the more obvious divergence
  • Plot Bullish: Whether to draw regular bullish divergence label
  • Plot Hidden Bullish: Whether to draw hidden bullish divergence label
  • Plot Bearish: Whether to draw regular bearish divergence label
  • Plot Hidden Bearish: Whether to draw hidden bearish divergence label


Happy trading and enjoy your life!

————————————————————————————————————————

各位朋友大家好,很抱歉之前的开源版本因为规则原因被隐藏,我已经重新编辑了说明并重新发布

(1) 指标说明
  • 该指标绘制于 K线 上,并在对应位置显示背离点以及背离程度
  • 支持顶底位置 N 根K线的容差,由 Tolerant Kline Number 参数设置
  • 支持背离强度的显示,即标签上显示的 REG/HID 值,该值小于 0,且越小说明背离程度越大
  • 支持背离强度的过滤,由 Cov Threshold 参数设置, REG/HID 值大于这个值的背离会被忽略
  • 标签中,REG 表示常规顶/低背离,而 HID 表示隐藏顶/底背离
  • 标签中,SRC(x-y) 表示从当前第 x 根 bar 开始到第 y 跟 bar 出现背离
  • 标签中,OSC(x-y) 表示从当前第 x 根 bar 所对应的指标开始到第 y 跟 bar 所对应的指标出现背离


(2) 参数说明
- RSI Settings
  • Source: 计算 RSI 指标的 source,默认为 close
  • RSI Length: 计算 RSI 指标的长度,默认为 14

- RSI Divergence
  • Pivot Lookback Right: 枢纽顶/底点往右回顾的 K线 bar 数量
  • Pivot Lookback Left: 枢纽顶/底点往左回顾的 K线 bar 数量
  • Max of Lookback Range: 回寻找枢纽顶/底点的最大回溯 K线 bar 数量
  • Min of Lookback Range: 回寻找枢纽顶/底点的最小回溯 K线 bar 数量
  • Tolerant Kline Number: K线和指标的顶/底点索引的最大误差
  • Cov Threshold: 背离程度,该值小于 0,且越小说明背离程度越大
  • Plot Bullish: 是否绘制常规底背离提示
  • Plot Hidden Bullish: 是否绘制隐藏底背离提示
  • Plot Bearish: 是否绘制常规顶背离提示
  • Plot Hidden Bearish: 是否绘制隐藏顶背离提示


祝大家交易愉快
DivergenceRelative Strength Index (RSI)

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité