OPEN-SOURCE SCRIPT
TIDEFORGE [ThrowMaster]

TIDEFORGE [ThrowMaster] — Adaptive WaveTrend Confluence Context
════════════════════════════════════════════
WHAT IT IS
════════════════════════════════════════════
TIDEFORGE Free is a context and confluence oscillator built on the classic WaveTrend engine, redesigned around one idea: fixed overbought/oversold numbers do not travel. A level that means "exhausted" on BTC 4H means nothing on a low-cap altcoin on 15m — yet most WaveTrend-family tools hard-code the same numbers for every market and every era.
This tool replaces every fixed threshold with self-calibrating percentile bands, reads the market through five independent dimensions, and fuses them into a single 0–100 confluence score. It does not print buy/sell signals and has no TP/SL. Instead it prints hints — attention markers that light up when several independent conditions align at once — so you look at the right place at the right moment and make your own decision.
════════════════════════════════════════════
HOW IT WORKS
════════════════════════════════════════════

1. WaveTrend core — the proven momentum engine (channel 9 / average 12 / smooth 3 on hlc3), kept exactly as the classic.
2. Adaptive bands — overbought/oversold are percentiles of WT2 (85th/96th and 15th/4th by default) over a rolling calibration window (300 bars). The zones breathe with each symbol and timeframe instead of forcing one number onto every chart. The bands you see are the actual live thresholds.
3. Real money flow — a true volume-based Money Flow Index, not a candle-body imitation. On symbols without volume data the script automatically falls back to a body-flow proxy mapped onto the same 0–100 scale and keeps working. The engine also detects absorption (new price low while flow refuses to make a new low) and distribution (the bearish mirror).
4. Regime awareness — a Kaufman Efficiency Ratio, percentile-ranked over the same calibration window, classifies conditions as RANGE / MID / TREND, so mean-reversion evidence is weighted with context instead of being trusted blindly inside strong trends.
5. Higher-timeframe anchor — WaveTrend bias from a higher timeframe of your choice, read strictly from the last completed HTF bar (lookahead off).
6. Structure — regular and hidden divergences detected on WT2 only. One source, one voice: no double counting the same momentum information across multiple correlated oscillators. Each divergence contributes to the score with linear decay over a memory window, then expires.
Each dimension contributes points — Zone 30 · Flow 20 · Divergence 25 · HTF 15 · Regime 10. Nothing vetoes anything: evidence votes. When WaveTrend crosses on a confirmed bar, the score is sampled:
• Hint (small circle) — moderate confluence.
• Strong hint (diamond, with a soft background flash) — high confluence.
════════════════════════════════════════════
GOLD MARKERS
════════════════════════════════════════════

The community-famous "gold circle" concept, re-engineered adaptively. A GOLD Bull prints when a confirmed regular bullish divergence has its origin pivot inside the extreme oversold percentile zone (capitulation territory) and money flow confirms (absorption or rising flow). GOLD Bear is the exact mirror on the extreme overbought side.
Because all three ingredients — extreme zone, divergence, flow — must coincide, GOLD markers are rare by construction. They are the strongest "look here" this tool can give. They are context, not commands.
════════════════════════════════════════════
NON-REPAINT POLICY & LIMITATIONS
════════════════════════════════════════════

• All events fire on confirmed bars only. Nothing flickers intra-bar.
• Higher-timeframe values come exclusively from completed HTF bars (lookahead off).
• Divergence connector lines are drawn back to their pivots for visual context — structure is only knowable in hindsight. The event, its marker, and its score contribution fire at the confirmation bar, never earlier. A pivot confirms Pivot-Right bars after it forms; this delay is the honest price of a non-repainting divergence.
• The first ~300 bars are a calibration period. Markers intentionally stay silent until the percentile bands are statistically meaningful.
• The dashboard updates live by design (display layer only, not a signal).
• This is an educational context tool. It makes no predictions and no performance claims. Markets carry risk — always do your own analysis and manage your own risk.
════════════════════════════════════════════
HOW TO USE
════════════════════════════════════════════

Load it on any symbol and timeframe and let it calibrate. Read the dashboard: WT2 value with its live percentile and zone, flow state, regime, HTF direction, last divergence, last GOLD, and the live long/short scores. Treat hints as invitations to analyze, GOLD as rare high-context moments, and combine everything with your own structure, levels, and risk plan. A Compact Mode is included for TradingView on mobile.
All thresholds are exposed as inputs with tooltips, but the defaults are deliberate — resist the urge to tune before you have watched enough live bars to know what you are tuning.
════════════════════════════════════════════
WHAT MAKES IT ORIGINAL
════════════════════════════════════════════
• Self-calibrating percentile bands replacing fixed overbought/oversold levels — the thresholds adapt per symbol and timeframe, and you can see them breathe on the chart.
• Orthogonal evidence design: one momentum voice (WaveTrend), one flow voice (real volume MFI with automatic fallback), one regime voice (Efficiency Ratio), one HTF voice, one structure voice — instead of stacking correlated oscillators that repeat each other.
• Additive confluence scoring with decaying divergence memory, sampled at confirmed crosses — no all-conditions-must-align gates.
• The gold-circle concept rebuilt on adaptive percentile logic with flow confirmation, plus a bearish mirror.
• Strict non-repaint discipline across every layer, disclosed honestly above.
════════════════════════════════════════════
CREDITS
════════════════════════════════════════════
Ground-up Pine Script v6 re-engineering inspired by "VuManChu B Divergences" by VuManChu, which itself builds on LazyBear's WaveTrend Oscillator, with concepts from dynausmaux, falconCoin, RicardoSantos, LucemAnb and andreholanda73. Published open-source with respect and gratitude to that lineage.
════════════════════════════════════════════
WHAT IT IS
════════════════════════════════════════════
TIDEFORGE Free is a context and confluence oscillator built on the classic WaveTrend engine, redesigned around one idea: fixed overbought/oversold numbers do not travel. A level that means "exhausted" on BTC 4H means nothing on a low-cap altcoin on 15m — yet most WaveTrend-family tools hard-code the same numbers for every market and every era.
This tool replaces every fixed threshold with self-calibrating percentile bands, reads the market through five independent dimensions, and fuses them into a single 0–100 confluence score. It does not print buy/sell signals and has no TP/SL. Instead it prints hints — attention markers that light up when several independent conditions align at once — so you look at the right place at the right moment and make your own decision.
════════════════════════════════════════════
HOW IT WORKS
════════════════════════════════════════════
1. WaveTrend core — the proven momentum engine (channel 9 / average 12 / smooth 3 on hlc3), kept exactly as the classic.
2. Adaptive bands — overbought/oversold are percentiles of WT2 (85th/96th and 15th/4th by default) over a rolling calibration window (300 bars). The zones breathe with each symbol and timeframe instead of forcing one number onto every chart. The bands you see are the actual live thresholds.
3. Real money flow — a true volume-based Money Flow Index, not a candle-body imitation. On symbols without volume data the script automatically falls back to a body-flow proxy mapped onto the same 0–100 scale and keeps working. The engine also detects absorption (new price low while flow refuses to make a new low) and distribution (the bearish mirror).
4. Regime awareness — a Kaufman Efficiency Ratio, percentile-ranked over the same calibration window, classifies conditions as RANGE / MID / TREND, so mean-reversion evidence is weighted with context instead of being trusted blindly inside strong trends.
5. Higher-timeframe anchor — WaveTrend bias from a higher timeframe of your choice, read strictly from the last completed HTF bar (lookahead off).
6. Structure — regular and hidden divergences detected on WT2 only. One source, one voice: no double counting the same momentum information across multiple correlated oscillators. Each divergence contributes to the score with linear decay over a memory window, then expires.
Each dimension contributes points — Zone 30 · Flow 20 · Divergence 25 · HTF 15 · Regime 10. Nothing vetoes anything: evidence votes. When WaveTrend crosses on a confirmed bar, the score is sampled:
• Hint (small circle) — moderate confluence.
• Strong hint (diamond, with a soft background flash) — high confluence.
════════════════════════════════════════════
GOLD MARKERS
════════════════════════════════════════════
The community-famous "gold circle" concept, re-engineered adaptively. A GOLD Bull prints when a confirmed regular bullish divergence has its origin pivot inside the extreme oversold percentile zone (capitulation territory) and money flow confirms (absorption or rising flow). GOLD Bear is the exact mirror on the extreme overbought side.
Because all three ingredients — extreme zone, divergence, flow — must coincide, GOLD markers are rare by construction. They are the strongest "look here" this tool can give. They are context, not commands.
════════════════════════════════════════════
NON-REPAINT POLICY & LIMITATIONS
════════════════════════════════════════════
• All events fire on confirmed bars only. Nothing flickers intra-bar.
• Higher-timeframe values come exclusively from completed HTF bars (lookahead off).
• Divergence connector lines are drawn back to their pivots for visual context — structure is only knowable in hindsight. The event, its marker, and its score contribution fire at the confirmation bar, never earlier. A pivot confirms Pivot-Right bars after it forms; this delay is the honest price of a non-repainting divergence.
• The first ~300 bars are a calibration period. Markers intentionally stay silent until the percentile bands are statistically meaningful.
• The dashboard updates live by design (display layer only, not a signal).
• This is an educational context tool. It makes no predictions and no performance claims. Markets carry risk — always do your own analysis and manage your own risk.
════════════════════════════════════════════
HOW TO USE
════════════════════════════════════════════
Load it on any symbol and timeframe and let it calibrate. Read the dashboard: WT2 value with its live percentile and zone, flow state, regime, HTF direction, last divergence, last GOLD, and the live long/short scores. Treat hints as invitations to analyze, GOLD as rare high-context moments, and combine everything with your own structure, levels, and risk plan. A Compact Mode is included for TradingView on mobile.
All thresholds are exposed as inputs with tooltips, but the defaults are deliberate — resist the urge to tune before you have watched enough live bars to know what you are tuning.
════════════════════════════════════════════
WHAT MAKES IT ORIGINAL
════════════════════════════════════════════
• Self-calibrating percentile bands replacing fixed overbought/oversold levels — the thresholds adapt per symbol and timeframe, and you can see them breathe on the chart.
• Orthogonal evidence design: one momentum voice (WaveTrend), one flow voice (real volume MFI with automatic fallback), one regime voice (Efficiency Ratio), one HTF voice, one structure voice — instead of stacking correlated oscillators that repeat each other.
• Additive confluence scoring with decaying divergence memory, sampled at confirmed crosses — no all-conditions-must-align gates.
• The gold-circle concept rebuilt on adaptive percentile logic with flow confirmation, plus a bearish mirror.
• Strict non-repaint discipline across every layer, disclosed honestly above.
════════════════════════════════════════════
CREDITS
════════════════════════════════════════════
Ground-up Pine Script v6 re-engineering inspired by "VuManChu B Divergences" by VuManChu, which itself builds on LazyBear's WaveTrend Oscillator, with concepts from dynausmaux, falconCoin, RicardoSantos, LucemAnb and andreholanda73. Published open-source with respect and gratitude to that lineage.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.