OPEN-SOURCE SCRIPT

KDJ Divergence Indicator(Regular & Hidden)

340
📌 中文介绍

KDJ 背离指标(副图版,支持 Regular & Hidden)

这是一个基于 KDJ 指标 的背离检测工具,可以在副图中直观显示 Regular 背离(顶背离/底背离) 和 Hidden 背离(隐藏顶/隐藏底)。

功能特点:

可选计算基线:支持以 J 值 或 K 值 作为背离判定依据。

多种背离类型:

Regular Bullish(底背离):价格创新低,但指标不创新低 → 可能反弹。

Regular Bearish(顶背离):价格创新高,但指标不创新高 → 可能回落。

Hidden Bullish(隐藏底背离):价格不创新低,但指标创新低 → 可能延续上涨。

Hidden Bearish(隐藏顶背离):价格不创新高,但指标创新高 → 可能延续下跌。

连线显示:在副图用线条连接前后两个背离点,帮助更直观地发现趋势变化。

自定义选项:

可选择是否显示 Regular / Hidden 背离。

可调整回溯范围(左侧/右侧/最大最小)。

可自定义颜色和信号样式。

报警提醒:背离出现时会触发报警。

适合:

波段交易者寻找趋势反转。

短线交易者捕捉关键拐点。

技术分析结合 KDJ 的交易策略。

📌 English Introduction

KDJ Divergence Indicator (Sub-Chart, Regular & Hidden Supported)

This is a KDJ-based divergence detection tool, plotted in a sub-window, that highlights Regular Divergences (Bullish/Bearish) and Hidden Divergences (Hidden Bullish/Hidden Bearish).

Key Features:

Selectable Oscillator Line: Choose between J or K line as the basis for divergence detection.

Divergence Types:

Regular Bullish: Price makes a lower low, but oscillator makes a higher low → potential rebound.

Regular Bearish: Price makes a higher high, but oscillator makes a lower high → potential drop.

Hidden Bullish: Price holds higher low, but oscillator makes a lower low → potential trend continuation upward.

Hidden Bearish: Price holds lower high, but oscillator makes a higher high → potential trend continuation downward.

Line Connections: Draws connecting lines between divergence points for better visual clarity.

Customizable Settings:

Enable/disable Regular & Hidden divergences.

Adjustable left/right lookback and range filters.

Custom colors and shapes for signals.

Alert Ready: Alerts trigger when divergences are detected.

Best for:

Swing traders spotting trend reversals.

Short-term traders catching turning points.

Technical analysts using KDJ-based strategies.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.