Aquila Reale Gold/DXY Correlation v1.4 by giua64🦅 Aquila Reale Gold/DXY Correlation — by giua64
WHAT IT DOES
This indicator measures the rolling inverse correlation between Gold and the US Dollar in real time. Gold and the Dollar normally move in opposite directions — when that relationship holds, the Dollar is the driver and you can trust it. When the relationship breaks, something else is pushing Gold (real yields, safe-haven flows, fear). Spotting that break is the real edge.
HOW TO READ IT
The correlation is inverted so the chart is intuitive:
Line HIGH and GREEN = strong inverse link (healthy). Gold and Dollar move opposite as they should.
Line YELLOW = the link is weakening.
Line LOW and RED (below zero) = the link is broken. Gold and Dollar are moving the same way — anomaly. Gold is running on its own, not on Dollar weakness.
The midline (zero) is the key reference: above it the inverse relationship is still alive, below it the relationship has flipped.
WHY USDX AND NOT DXY
By default you can use any Dollar symbol in the input. I personally use USDX instead of TVC:DXY because USDX carries volume data, while the TVC Dollar index does not. Correlation is symmetrical (corr A,B = corr B,A), so you only need this indicator on ONE chart — Gold or Dollar, it reads the same link from either side. Using USDX simply lets you keep volume on the Dollar panel.
SETTINGS
Gold symbol and Dollar symbol: fully editable.
Length mode: Auto (preset per timeframe) or Manual. Auto adapts the lookback to the chart TF: 5m=14, 15m=16, 30m=18, 1h=20, 4h=24.
Healthy-link threshold: the level above which the inverse link is considered strong. Suggested sets — Scalping 0.4, Intraday 0.5, Swing 0.6.
ALERTS
Link BROKEN (correlation drops below threshold)
Link RESTORED (correlation back above threshold)
ANOMALY (correlation turns negative — moving together)
DISCLAIMER
This script is for educational and informational purposes only. It is not financial advice. Trading involves risk; always do your own analysis and manage your risk.
🦅 Royal Eagles — born to fly, born to dare!
🦅 Aquile Reali — Be Stable. Be Strong. Indicator

Indicator

X Trading Auto-Pilot V2.0Welcome to X Trading Auto-Pilot V2.0 — the ultimate minimalist trading system designed for traders who want zero chart clutter and 100% execution clarity.
We stripped away the noise, removed the complex lines and bands, and built a highly accurate, automated signal engine optimized strictly for the 15-Minute timeframe.
🌟 Core Features:
1. Zero Clutter, Pure Action
Analysis paralysis is the enemy of profitability. This indicator removes all visual noise from your chart. You will only see the institutional macro trend and the exact entry signals.
2. High-Accuracy 15m Engine
By locking the algorithm to the 15-minute chart, we eliminate the random algorithmic wicks of the lower timeframes. The engine runs quietly in the background, measuring hidden market exhaustion (RSI/ATR alignment) and waiting for high-volume engulfing candles in the direction of the macro trend.
3. Automated Trade Management
When a signal triggers, the script instantly calculates a mathematically perfect 1:2 Risk-to-Reward ratio based on current market volatility. It plots a clean, visual box on your chart detailing your exact:
💰 ENTRY Price
😢 STOP LOSS Price
🔥 TARGET (Take Profit) Price
4. Bot-Ready JSON Alerts (Fully Automated)
Want to trade hands-free? The alert system has been re-engineered to output clean, structured JSON webhooks. Whether you use 3Commas, Cornix, or your own custom trading bot, the indicator sends perfectly formatted data instantly:
{"Action": "BUY", "Asset": "BTCUSDT", "Entry": 65120.50, "SL": 64800.00, "TP": 65760.50}
5. Universal Asset Compatibility
This Auto-Pilot suite dynamically adapts its risk math to the asset you are trading. Fully compatible with: EURUSD, USDCAD, BTCUSDT, ETHUSDT, XAUUSD, XAGUSD, US100, WTI, and DXY.
How to get access:
This is a premium, Invite-Only system locked exclusively for the X Trading community.
📲 To request access, ask questions, or see how we automate these trades, reach out to me on TikTok: @xtrading38 Indicator

X Trading Universal L3 - Liquidity & Order FlowWelcome to the pinnacle of algorithmic scalping: X Trading Universal L3.
This indicator bridges the gap between Smart Money Concepts (SMC) and Level 2 Order Flow (Bookmap-style liquidity tracking). It has been mathematically engineered from the ground up to dynamically scale its risk engine across the world's most heavily traded institutional assets.
🌐 Universal Asset Compatibility
This suite is locked and optimized strictly for the 5-minute timeframe on the following premium assets:
Forex: EURUSD, USDCAD, DXY
Crypto: BTCUSDT, ETHUSDT
Commodities: XAUUSD (Gold), XAGUSD (Silver), WTI (Oil)
Indices: US100 (Nasdaq/NDX)
🌟 Level 3 Core Mechanics:
1. Simulated Order Flow & Liquidity Pools
We bring Level 2 book data visualization directly to your chart. The L3 engine actively scans for overlapping structural pivots to map out dense concentrations of institutional limit orders.
Watch price gravitate toward these dashed Liquidity Bands to hunt stops before reversing.
2. Dynamic ATR Risk Scaling (Universal Engine)
You no longer need to adjust inputs when switching from Crypto to Forex. The mathematical engine reads the real-time True Range (ATR) of the asset you are viewing and dynamically builds your Stop Loss and Take Profit boxes to perfectly fit that exact market's pip/tick volatility.
3. The L3 Sniper Signal Matrix
Signals are highly filtered and only trigger when three institutional factors align:
Macro Alignment: Price must be trading with the 1-Hour Institutional Trend.
Liquidity Sweep: Price must sweep a major L3 Liquidity Pool or structural Order Block.
Volume Imbalance: A massive engulfing candle must confirm the market makers are stepping in.
When these align, you receive the exact 💰 Entry, 😢 Stop Loss, and 🔥 Take Profit zones drawn beautifully on your chart.
4. Advanced Trade Management (Breakeven Tech)
The live Win Rate dashboard doesn't just track raw wins and losses. It features professional trade management: if a trade reaches 50% of the Take Profit target, the algorithm internally moves your Stop Loss to Breakeven, protecting your capital and accurately updating your win rate stats.
5. The X Trading Dashboard & Market Rhythm
Live Session Overlays: Clean background shading for Asia, London, and NY sessions.
Market Rhythm: Real-time dashboard tracking of the 1H trend, current active asset, live ATR volatility, and overall daily range.
How to get access:
This is a premium, Invite-Only system locked exclusively for the X Trading community.
📲 To request access, ask questions, or watch this system dominate live in action, reach out to me on TikTok: @xtrading38 Indicator

Indicator

X Trading - BTCUSDT Master SuiteWelcome to the X Trading Master Suite BTCUSDT ONLY— a complete, all-in-one algorithmic trading system engineered specifically for high-probability scalping and day trading.
Built around the core concepts of Smart Money Concepts (SMC), market rhythm, and the AMD (Accumulation, Manipulation, Distribution) cycle, this suite gives you institutional-level context directly on your chart without the clutter.
🌟 Core Features:
1. The X Trading Dashboard (Live Rhythm Tracking)
Never second-guess market conditions again. The live dashboard tracks the current trading session (Asia, London, NY), the 1-Hour macro trend, today's total range ($ move), and the exact market state (Break vs. Retest) so you know exactly when to execute.
2. Institutional SMC Matrix
The algorithm automatically tracks major liquidity zones in real-time:
Order Blocks (OB): Dynamic support and resistance boxes drawn from structural pivots.
Fair Value Gaps (FVG): Auto-detected market imbalances showing where institutions left unfilled orders.
3. Precision Signals with Automated Risk Management
When a highly filtered, institutional liquidity sweep aligns with market momentum, the indicator fires a Sniper Buy/Sell signal. It instantly plots:
💰 Exact Entry Line
😢 Dynamic Stop Loss (SL) and an Extended SL (🛡️) for high volatility.
🔥 Target Take Profit (TP) Box: A visual "ghost candle" showing the exact zone to take profits.
🚀 Runner Target: For extended momentum plays.
4. Market Rhythm & Momentum
Session Backgrounds: Clean, transparent overlays showing the Asian, London, and NY sessions.
Double Bollinger Band Faint Overlays: Visually identifies when the market is ranging, breaking out, or retesting the mean.
EMA Ribbon (8/34) & Moving Averages: A custom momentum ribbon fill paired with the 50, 100, and 200 EMAs to keep you on the right side of the trend.
Early Exit (X Marks): If momentum shifts sharply against your trade, the algorithm prints a visual "X" to warn you to secure profits early.
5. Automated Alert System
Fully compatible with PulseWire alerts. Receive exact Entry, SL, and TP prices directly to your device the second a setup occurs, as well as high-momentum session open warnings.
How to get access:
This is a premium, Invite-Only system locked for the X Trading community.
📲 To request access, ask questions, or watch this system dominate live in action, reach out to me on TikTok: @xtrading38 Indicator

X Trading V3.0 - Ultimate Master Suite Welcome to the X Trading Master Suite XAUUSD ONLY— a complete, all-in-one algorithmic trading system engineered specifically for high-probability scalping and day trading.
Built around the core concepts of Smart Money Concepts (SMC), market rhythm, and the AMD (Accumulation, Manipulation, Distribution) cycle, this suite gives you institutional-level context directly on your chart without the clutter.
🌟 Core Features:
1. The X Trading Dashboard (Live Rhythm Tracking)
Never second-guess market conditions again. The live dashboard tracks the current trading session (Asia, London, NY), the 1-Hour macro trend, today's total range ($ move), and the exact market state (Break vs. Retest) so you know exactly when to execute.
2. Institutional SMC Matrix
The algorithm automatically tracks major liquidity zones in real-time:
Order Blocks (OB): Dynamic support and resistance boxes drawn from structural pivots.
Fair Value Gaps (FVG): Auto-detected market imbalances showing where institutions left unfilled orders.
3. Precision Signals with Automated Risk Management
When a highly filtered, institutional liquidity sweep aligns with market momentum, the indicator fires a Sniper Buy/Sell signal. It instantly plots:
💰 Exact Entry Line
😢 Dynamic Stop Loss (SL) and an Extended SL (🛡️) for high volatility.
🔥 Target Take Profit (TP) Box: A visual "ghost candle" showing the exact zone to take profits.
🚀 Runner Target: For extended momentum plays.
4. Market Rhythm & Momentum
Session Backgrounds: Clean, transparent overlays showing the Asian, London, and NY sessions.
Double Bollinger Band Faint Overlays: Visually identifies when the market is ranging, breaking out, or retesting the mean.
EMA Ribbon (8/34) & Moving Averages: A custom momentum ribbon fill paired with the 50, 100, and 200 EMAs to keep you on the right side of the trend.
Early Exit (X Marks): If momentum shifts sharply against your trade, the algorithm prints a visual "X" to warn you to secure profits early.
5. Automated Alert System
Fully compatible with PulseWire alerts. Receive exact Entry, SL, and TP prices directly to your device the second a setup occurs, as well as high-momentum session open warnings.
How to get access:
This is a premium, Invite-Only system locked for the X Trading community.
📲 To request access, ask questions, or watch this system dominate live in action, reach out to me on TikTok: @xtrading38 Indicator

X Trading Master Suite (SMC & Price Action)Welcome to the X Trading Master Suite XAUUSD ONLY— a complete, all-in-one algorithmic trading system engineered specifically for high-probability scalping and day trading.
Built around the core concepts of Smart Money Concepts (SMC), market rhythm, and the AMD (Accumulation, Manipulation, Distribution) cycle, this suite gives you institutional-level context directly on your chart without the clutter.
🌟 Core Features:
1. The X Trading Dashboard (Live Rhythm Tracking)
Never second-guess market conditions again. The live dashboard tracks the current trading session (Asia, London, NY), the 1-Hour macro trend, today's total range ($ move), and the exact market state (Break vs. Retest) so you know exactly when to execute.
2. Institutional SMC Matrix
The algorithm automatically tracks major liquidity zones in real-time:
Order Blocks (OB): Dynamic support and resistance boxes drawn from structural pivots.
Fair Value Gaps (FVG): Auto-detected market imbalances showing where institutions left unfilled orders.
3. Precision Signals with Automated Risk Management
When a highly filtered, institutional liquidity sweep aligns with market momentum, the indicator fires a Sniper Buy/Sell signal. It instantly plots:
💰 Exact Entry Line
😢 Dynamic Stop Loss (SL) and an Extended SL (🛡️) for high volatility.
🔥 Target Take Profit (TP) Box: A visual "ghost candle" showing the exact zone to take profits.
🚀 Runner Target: For extended momentum plays.
4. Market Rhythm & Momentum
Session Backgrounds: Clean, transparent overlays showing the Asian, London, and NY sessions.
Double Bollinger Band Faint Overlays: Visually identifies when the market is ranging, breaking out, or retesting the mean.
EMA Ribbon (8/34) & Moving Averages: A custom momentum ribbon fill paired with the 50, 100, and 200 EMAs to keep you on the right side of the trend.
Early Exit (X Marks): If momentum shifts sharply against your trade, the algorithm prints a visual "X" to warn you to secure profits early.
5. Automated Alert System
Fully compatible with PulseWire alerts. Receive exact Entry, SL, and TP prices directly to your device the second a setup occurs, as well as high-momentum session open warnings.
How to get access:
This is a premium, Invite-Only system locked for the X Trading community.
📲 To request access, ask questions, or watch this system dominate live in action, reach out to me on TikTok: @xtrading38 Indicator

Day Vertical LineDay Vertical Line
A simple, lightweight tool that draws a vertical line on every occurrence of a chosen weekday. Pick a day from the dropdown — for example, Friday — and the indicator marks every Friday on your chart with a clean vertical line.
Features
Select any day of the week (Sunday through Saturday) from a single dropdown
Vertical lines drawn automatically on every matching day across your full chart history
Customizable line color
Adjustable line width (1–5)
Choice of line style: solid, dashed, or dotted
Lines extend the full height of the chart for clear visual reference
How to Use
Add the indicator to your chart
Open the settings and choose your target day under "Show Line On"
Adjust color, width, and style to match your chart theme
Best Practices
Works on any timeframe. For one clean line per day, apply it to the daily (D1) timeframe. On intraday charts, a line is drawn on each bar belonging to the selected day.
Use Cases
Useful for marking weekly anchor points, highlighting specific session days, backtesting day-of-week patterns, or keeping track of recurring events tied to a particular weekday. Indicator

Indicator

RSI Volume-Validated Overbought/OversoldRSI Volume-Validated Overbought/Oversold
OVERVIEW
This indicator combines a standard RSI with a volume validation layer. The core idea: an RSI reading in overbought or oversold territory does not by itself guarantee that price will decelerate or reverse — the move often needs participation (volume) behind it to be meaningful. This script accumulates volume while price sits inside an overbought or oversold RSI zone and only flags the episode once that accumulated volume reaches a defined threshold, distinguishing zones with real participation from zones with weak, low-volume RSI extremes that are more likely to be ignored by price.
WHAT IT IS MADE OF
1. RSI Engine
A standard RSI (configurable length and source) checked against two configurable levels: an overbought level (default 70) and an oversold level (default 30).
2. Volume Accumulator
From the moment RSI enters an overbought or oversold zone, the indicator starts summing the volume of every bar for as long as RSI remains inside that zone. This running total resets to zero each time a new zone episode begins (i.e., each fresh entry into overbought or oversold after having been outside it).
3. Volume Threshold
A simple moving average of volume (default length 20) multiplied by a user-defined factor (default 8) forms the validation threshold. This threshold is recalculated on every bar using current volume conditions.
4. Validation Logic
The indicator continuously compares the accumulated zone volume against the threshold. The first bar where the accumulated volume reaches or exceeds the threshold — while RSI is still inside the zone — triggers the signal for that episode. Only one signal can fire per zone episode; once triggered, the indicator will not signal again until RSI exits the zone and re-enters it later.
WHAT IT SIGNALS AND HOW
- A green upward triangle below the bar marks a validated oversold episode (accumulated volume met the threshold while RSI was oversold).
- A red downward triangle above the bar marks a validated overbought episode (accumulated volume met the threshold while RSI was overbought).
- A label is plotted at the signal bar showing the exact accumulated volume figure for that episode, so the reader can see how much participation triggered the validation.
- RSI readings that reach overbought/oversold but never accumulate enough volume before exiting the zone produce no signal at all. These "weak" episodes are intentionally left unmarked.
HOW TO INTERPRET IT
A signal does not mean "buy here" or "sell here." It means: at this point, price has been overbought/oversold for long enough, with enough volume behind that condition, that the RSI extreme is more likely to carry real weight. Historically, this tends to coincide with one of three outcomes:
- Price decelerates and reverses direction.
- Price decelerates and consolidates/pauses before continuing.
- Price continues in the same direction, but at a reduced pace.
The signal is a condition-strength marker, not a directional entry trigger.
HOW TO USE IT
Use this indicator as a filter or confirmation layer on top of your own analysis — for example, alongside support/resistance, structure, or other timing tools — to judge whether a given overbought/oversold reading is likely to matter. It is best suited as a heads-up that momentum may be about to change character, not as a standalone trigger for opening positions.
LIMITATIONS
- This indicator does NOT generate buy/sell entries. It only flags when a volume-validated overbought/oversold condition occurs. Any trading decision based on it requires additional confirmation and risk management from the user.
- It does not predict the magnitude or exact timing of a reversal or deceleration — only that the condition has met a volume-based validation threshold.
- The volume SMA and threshold factor are fully adjustable; results will vary significantly by asset, timeframe, and the chosen factor. Defaults shown here (SMA length 20, factor 8) were tuned through visual backtesting and may need re-calibration for other instruments or timeframes.
- On instruments or data feeds where volume data is unavailable or unreliable (e.g., some spot forex feeds), the volume accumulation and threshold comparison will not function as intended.
- This script does not repaint: each signal is generated and locked in on the bar where the volume threshold is met and does not change on historical bars after that point. Indicator

Vortex Signals [Gabremoku]Vortex Signals is a reworked version of the classic Vortex Indicator designed to make directional shifts easier to read and less reactive than raw crossover-based interpretations.
Instead of treating every VI+ / VI- crossover as a direct trading signal, this script uses the Vortex lines as a regime detector first, then looks for signal quality through spread expansion and re-activation after a pullback. The goal is to reduce the noisy sequence of repeated entries and exits that often appears when the standard Vortex is used on its own.
What the script does:
Plots the classic Vortex components, VI+ and VI-.
Fills the space between the two lines with a dynamic gradient that reflects which side is dominant and how strong the current spread is.
Detects bullish and bearish dominance regimes.
Uses a signal engine based on regime change, spread expansion, and first valid continuation after weakening.
Prints compact chart markers for LONG, SHORT, and CLOSE events.
Includes a dashboard to show current state, sequence status, setup condition, spread, slope, and directional bias.
How it works:
Regime: the script first determines whether VI+ is above VI- or VI- is above VI+.
Spread: it measures the distance between the two Vortex lines to evaluate whether dominance is meaningful or weak.
Expansion: a regime becomes more relevant when the spread rises above its short baseline and continues widening.
Trigger logic: instead of firing on every crossover, the script waits for either an early valid impulse after regime change or the first useful re-expansion after a pullback inside the same regime.
Why this is different from the classic Vortex:
The built-in Vortex is often read through raw line crossovers.
This script reframes the indicator as a dominance and continuation tool rather than a pure crossover trigger.
The signal engine is designed to capture cleaner transitions and continuation phases while avoiding part of the back-and-forth noise that often occurs in choppy conditions.
How to use it:
In Long mode, focus on bullish dominance and the appearance of a LONG marker after spread expansion or re-expansion.
In Short mode, focus on bearish dominance and the appearance of a SHORT marker after the same logic on the opposite side.
CLOSE markers appear when the opposite Vortex condition breaks the active sequence.
Suggested use:
This script is generally better suited to trending or directional environments than to highly compressed sideways markets.
In my testing and chart observation, the signals can appear cleaner on the 1H timeframe, where short-term noise is often reduced compared with very low timeframes, but users should still adapt settings to the instrument and market structure they trade.
Notes:
This indicator is not predictive and does not guarantee profitable signals.
It should be used as a decision-support tool together with price structure, risk management, and broader market context.
As with any directional model, false signals can still occur during whipsaw or transition phases. Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

RSI - Div - TDI (Conf + MTF)# RSI/TDI Multi-Timeframe Confirmed Divergences
**What it is**
A momentum tool that detects RSI divergences and — this is the point of the script — only reports them once they are confirmed on bar close, then checks whether the same divergence is occurring on several timeframes at once. It is built on the well-known RSI + TDI framework, but its purpose is not to re-display RSI or the TDI; it is to solve two specific problems with ordinary divergence scripts: they repaint while a bar is forming, and they treat a noisy 1-minute divergence the same as a broad 4-hour one. This script addresses both.
---
**What is original here (and why it is not just a mashup)**
Most open-source divergence indicators evaluate the divergence on the live, still-forming bar. That means a divergence can appear, then disappear before the candle closes — it repaints, and you cannot trust what you see in real time. This script gates every divergence to confirmed bars (it only commits a signal when the candle has closed), so a printed signal is final and will not vanish.
On top of that, it adds a multi-timeframe agreement engine that does not exist in the built-in or common divergence scripts:
- It runs the identical divergence calculation on up to five user-selected timeframes.
- It latches each timeframe's result only when that timeframe's own bar closes, so the cross-timeframe reading does not flicker as higher bars form.
- It uses a recency window so a higher-timeframe divergence stays "active" long enough to line up with the chart timeframe (since divergences on different timeframes rarely print on the same candle).
- It counts how many timeframes agree and recolors the signal when the count crosses a threshold you set.
That combination — non-repainting confirmation plus per-timeframe close-latched divergence agreement with a colored confluence output — is the original behavior, and the reason the components are bundled into one script rather than used separately.
---
**How the pieces work together**
Each component has a job; none is decorative:
- **RSI** is the momentum gauge — it measures whether recent buying or selling has more force.
- **The TDI Bollinger Bands on RSI** give that momentum a volatility/mean context, so you can see when RSI is stretched relative to its own recent range, not just relative to fixed levels.
- **The divergence detector** is the actual signal: it compares price extremes against RSI extremes and flags when they disagree.
- **The confirmation gate** removes the repainting so the signal is trustworthy.
- **The multi-timeframe layer** is the filter that separates a throwaway low-timeframe divergence from a broad, meaningful one — the higher the agreement, the more independent momentum readings are calling the same exhaustion at once.
Used together they answer one question: *is momentum genuinely exhausting here, across enough of the market to matter?*
---
**The concept behind the calculation**
A divergence is price and momentum disagreeing. A trend continues while each push carries more force than the last; when price makes a new extreme but RSI does not, the force behind the move is fading.
Over a lookback window the script tracks the running highest and lowest price and the RSI reading at those points, then:
- **Bullish divergence:** price makes a lower low, but RSI does not make a matching new low and begins turning up — selling pressure is drying up.
- **Bearish divergence:** price makes a higher high, but RSI fails to confirm with a higher high and rolls over — buying pressure is drying up.
The signal is therefore a read on **momentum exhaustion**, not a guaranteed turn. The higher-timeframe layer matters because a higher-timeframe RSI aggregates far more order flow into one reading, so a divergence there reflects a broad shift in control rather than local noise.
---
**How to use it**
- Add it to a separate pane and run it on the timeframe you trade.
- A dot marks a confirmed divergence (green = bullish, red = bearish). The dot only appears once the bar has closed.
- A purple dot means the divergence is present on multiple timeframes at once — the higher-conviction case.
- Treat it as exhaustion/reversal context. It is most useful combined with a price level (a prior high/low, support/resistance) and your own entry confirmation, rather than as a standalone buy/sell. Optional alerts are included for single-timeframe and multi-timeframe divergences.
---
**Settings**
- **RSI Length / Lookback** — the momentum period and the window the divergence is measured against.
- **Confirmed divergences only** — keep on for non-repainting signals; turn off to see live (flickering) divergences earlier.
- **Compare timeframes (up to 5)** — the timeframes checked for agreement, each with an on/off toggle.
- **Timeframes needed for purple** — how many must agree before the dot recolors.
- **Other-TF recency** — how long another timeframe's divergence stays active so it can align with the chart.
- **Colors** — every plot (RSI line, bands, divergence dots, agreement color, pivots) is user-configurable.
- TDI Bollinger Band length/type, second RSI, and overbought/oversold levels are included for context and configurable.
---
**Notes and limitations**
- Signals are non-repainting on the chart timeframe because they confirm on close. Higher-timeframe components naturally finalize only when their own bar closes, which is expected multi-timeframe behavior — read the multi-timeframe agreement on closed bars.
- Divergence indicates momentum exhaustion, which does not guarantee an immediate reversal; trends can remain divergent for some time. Use confirmation.
- This script is for analysis and education and is not financial advice.
---
**Credits**
Built on the open-source RSI and Traders Dynamic Index (TDI) divergence approach. Original RSI/TDI divergence logic credit to QuantTherapyThe confirmed-on-close handling and the multi-timeframe divergence-agreement engine are additions in this version.
Indicator

Indicator

Indicator

Candle Density Indicator v2Candle Density Indicator (EN/KR)
The Candle Density Indicator (CDI) is a dynamic support and resistance tool that mathematically extracts the most heavily congested price levels within a lookback window. Unlike volume profiles that require tick/volume data, this indicator breaks down the precise proportional overlap of candle bodies across volatility-calculated price bins.
🔑 Key Features
1. Multi-Bin Density Engine
The script dynamically segments the price action between the highest and lowest candle bodies of the lookback period into adaptive price bins (steps regulated by ATR). It calculates exactly how much of each candle's body lived inside each bin.
2. Time-at-Price Concurrency (Hits)
It scores each price bin based on candle body overlap. The bin with the highest score represents the true point of control where price compressed heavily. If the maximum score doesn't pass the minimum threshold (Min Hits), it organically hides to prevent noise.
3. Verification Stabilization (Hold Filter)
To prevent the S/R box from rapidly shifting and causing chart chaos during choppy price action, a 5-bar verification loop is built in. The dense zone will only update and lock onto a new level after it has proven structural stability, acting as an automatic debounce filter.
⚙️ Settings Guide & My Personal Setup
💡 Developer's Personal Setup: I engineered this indicator for tight intraday executions. I personally use this on the Bitcoin (BTC) 3-minute chart for high-frequency scalping. When the gray CDI Box remains flat for a long time, it defines a major value area. A sharp close outside this zone often signals an explosive expansion phase.
CDI Box Length: The lookback window (default 30 bars) to measure density. Smaller values focus on immediate scalping nodes; higher values map macro structural balance zones.
CDI Min Hits: The threshold score required to draw a zone. Keeps the chart clean by filtering out loose, volatile price action that lacks density.
============================================================
한국어 버전 설명
📝 개요 (Description)
Candle Density Indicator (CDI)는 캔들 몸통의 중첩 밀집도를 분석하여, 특정 기간 동안 가격이 가장 치열하게 싸우며 머물렀던 '핵심 균형 가격대'를 찾아주는 고성능 알고리즘 지표입니다. 거래량 매물대(Volume Profile)와 유사하지만, 오직 가격 데이터와 변동성(ATR) 매칭을 통해 시간과 캔들 실체가 가장 많이 묶인 진짜 지지/저항 축을 계산해 냅니다.
🌟 주요 기능 (Key Features)
1. 변동성 기반 가격 밴드 분할 연산
설정한 룩백 기간(Box Length) 내의 최고점과 최저점 몸통 범위를 구한 뒤, 현재 시장의 변동성(ATR)을 기준으로 가격 구간을 촘촘한 빈(Bin)으로 자동 쪼갭니다. 이후 각 캔들의 몸통이 어느 가격대에 가장 많이 걸쳐 있었는지 수학적 비중을 계산합니다.
2. 가로축 밀집도 스코어링 (Hits)
단순히 터치한 횟수가 아니라, 캔들의 실체가 머문 시간을 누적 점수화합니다. 가장 높은 점수를 받은 가격대를 찾아내어 차트에 회색의 'CDI 밸런스 박스'로 채워줍니다. 만약 설정한 최소 밀집 점수(Min Hits)를 넘지 못하면 시장에 뚜렷한 기준 축이 없다고 판단해 신호를 숨김 처리합니다.
3. 락온(Lock-on) 안정화 필터
횡보 장세나 미세한 가격 변동 때문에 매물대 상하단 라인이 지저분하게 흔들리는 것을 막기 위해 5캔들 연속 검증 제어 장치가 내장되어 있습니다. 새로 계산된 밀집 구역이 최소 5캔들 동안 구조적 안정성을 유지할 때만 차트의 박스를 갱신하여 휩소를 방지합니다.
⚙️ 세팅 가이드 & 개발자 실전 활용법
💡 개발자 실전 팁: 저는 주로 비트코인(BTC) 3분봉 차트에서 단기 스캘핑(Scalping)을 진행할 때 이 지표를 핵심 가이드라인으로 활용합니다. 회색 박스가 길게 유지될수록 강력한 에너지가 응축되고 있음을 뜻하며, 이 박스 상단이나 하단을 캔들 실체가 강하게 이탈하며 마감할 때 매우 높은 확률로 강력한 추세 확장(돌파) 타점이 나옵니다.
CDI Box Length: 매물대 밀집도를 분석할 과거 캔들 개수(기본값 30)입니다. 단기 스캘핑 시에는 값을 낮추고, 스윙이나 매크로 작도 시에는 값을 높여 큰 추세의 매물대를 잡을 수 있습니다.
CDI Min Hits: 박스를 표시하기 위한 최소 밀집 점수 기준입니다. 이 값을 높이면 어설픈 횡보 구간의 박스는 모두 걷어내고, 정말 단단하게 뭉친 핵심 자리만 선별해 차트를 깔끔하게 유지할 수 있습니다. Indicator

Strategy

Indicator
