OPEN-SOURCE SCRIPT

On Balance Volume wi Normalization (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 indicator is a normalized OBV that never dulls and has a better divergence accuracy than RSI
  • 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
- Normalized On Balance Volume
  • MA Type: Type of moving average for calculating the normalized OBV, default is SMA
  • MA Period: Period of moving average of normalized OBV, which is SMA14 by default
  • NOBV Sigma: Upper and lower range of normalized OBV, but the function is reserved

- Normalized On Balance Volume 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) 指标说明
  • 该指标是 OBV 的归一化版本,永不钝化,背离准确率高于 RSI
  • 该指标绘制于 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) 参数说明
- Normalized On Balance Volume
  • MA Type: 计算归一化 OBV 的移动平均的类型,默认为 SMA
  • MA Period: 计算归一化 OBV 的移动平均的周期,默认为 SMA14
  • NOBV Sigma: 归一化 OBV 的过滤区间,其功能暂时保留

- Normalized On Balance Volume 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: 是否绘制隐藏顶背离提示


祝大家交易愉快
DivergenceOn Balance Volume (OBV)

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור