OPEN-SOURCE SCRIPT
Ichimoku Equilibrium Distance (Kijun/Tenkan)

Ichimoku Equilibrium Distance (Kijun/Tenkan)
Ichimoku Equilibrium Distance (Kijun/Tenkan) is a conservative Ichimoku-internal context indicator that visualizes how far price is extended away from the core equilibrium lines:
The focus is on equilibrium, extension, and context — not on “magic signals”.
All calculations are derived from Ichimoku components only (no RSI/ATR filters).
Concept
In Ichimoku, Kijun-sen and Tenkan-sen are often treated as dynamic equilibrium references.
When price is close to them, the market is often in a more balanced state.
When price is far away, the market is extended — which can matter for:
This script makes the “distance to equilibrium” visible in a clean oscillator-style panel.
Core Features
1) Distance Lines (Ichimoku-internal)
Optional plotting of:
2) Conservative Normalization Modes
Distances can be displayed as:
3) Background Context (Current or Higher TF)
Optional background shading for quick bias reading:
4) Confluence Background (Optional)
A single background layer with dynamic opacity:
5) Alerts & Markers (Optional)
Classic Ichimoku relationships as selectable signals:
These are explicit Ichimoku meanings (not re-branded “new” signals).
6) MTF Histogram (Current Close vs HTF Kijun)
Optional histogram “tags” showing:
Useful to see extension relative to higher timeframe equilibrium.
How To Use (Ambitious Beginners)
A) Learn equilibrium behavior
Start with one line:
Goal: understand equilibrium pull, not force reversal trades.
B) Avoid chasing
In trends, entries often fail because traders buy/sell while price is already stretched.
Use distance as a simple checklist:
C) Use Tenkan vs Kijun as “pressure” context
Enable Tenkan-Kijun Distance:
Combine with price action (structure, breaks, retests).
D) Keep it simple
Recommended learning workflow:
How To Use (Advanced Traders)
1) Extension mapping across timeframes
Combine:
Goal: detect when the current move is extended relative to higher timeframe equilibrium.
2) Trend continuation vs pullback risk
Observe “distance regime” instead of single-point signals:
3) Confluence as a bias overlay (minimal, conservative)
Use Confluence Background to quickly see agreement:
4) Alert workflow (discretionary, not automated)
Example approach:
Notes
Best Suited For
Ichimoku Equilibrium Distance (Kijun/Tenkan) is a conservative Ichimoku-internal context indicator that visualizes how far price is extended away from the core equilibrium lines:
- Kijun-Price Distance (Close − Kijun)
- Tenkan-Price Distance (Close − Tenkan)
- Tenkan-Kijun Distance (Tenkan − Kijun)
The focus is on equilibrium, extension, and context — not on “magic signals”.
All calculations are derived from Ichimoku components only (no RSI/ATR filters).
Concept
In Ichimoku, Kijun-sen and Tenkan-sen are often treated as dynamic equilibrium references.
When price is close to them, the market is often in a more balanced state.
When price is far away, the market is extended — which can matter for:
- avoiding “chasing” in trends
- spotting stretched conditions before pullbacks / mean reversion
- gauging trend pressure and acceleration phases
This script makes the “distance to equilibrium” visible in a clean oscillator-style panel.
Core Features
1) Distance Lines (Ichimoku-internal)
Optional plotting of:
- Price − Kijun distance
- Price − Tenkan distance
- Tenkan − Kijun distance
2) Conservative Normalization Modes
Distances can be displayed as:
- Raw (price units)
- % of Price (cross-market comparable)
- % of Ichimoku Range (Highest−Lowest of the Ichimoku window; no ATR)
3) Background Context (Current or Higher TF)
Optional background shading for quick bias reading:
- Current timeframe background
- Next higher timeframe background (mapped conservatively)
4) Confluence Background (Optional)
A single background layer with dynamic opacity:
- Stronger opacity = stronger agreement between selected Ichimoku distance sources
- You can choose which sources contribute to confluence (independent from line plots)
5) Alerts & Markers (Optional)
Classic Ichimoku relationships as selectable signals:
- Price crosses Kijun
- Price crosses Tenkan
- Tenkan crosses Kijun (TK/KJ cross)
These are explicit Ichimoku meanings (not re-branded “new” signals).
6) MTF Histogram (Current Close vs HTF Kijun)
Optional histogram “tags” showing:
- Close − 4H Kijun
- Close − D Kijun
- Close − W Kijun
- Close − M Kijun
Useful to see extension relative to higher timeframe equilibrium.
How To Use (Ambitious Beginners)
A) Learn equilibrium behavior
Start with one line:
- Enable Kijun-Price Distance
- Watch how often price re-centers toward Kijun after large extensions
Goal: understand equilibrium pull, not force reversal trades.
B) Avoid chasing
In trends, entries often fail because traders buy/sell while price is already stretched.
Use distance as a simple checklist:
- Distance small/medium -> easier to justify continuation entries
- Distance large -> consider waiting for pullback or consolidation
C) Use Tenkan vs Kijun as “pressure” context
Enable Tenkan-Kijun Distance:
- Positive TK−KJ often aligns with bullish pressure
- Negative TK−KJ often aligns with bearish pressure
Combine with price action (structure, breaks, retests).
D) Keep it simple
Recommended learning workflow:
- Use % of Price mode for easier comparison
- Enable only one or two distance lines
- Turn on background only after you understand the lines
How To Use (Advanced Traders)
1) Extension mapping across timeframes
Combine:
- Current TF distance lines
- Higher TF background
- MTF histogram (4H/D/W/M)
Goal: detect when the current move is extended relative to higher timeframe equilibrium.
2) Trend continuation vs pullback risk
Observe “distance regime” instead of single-point signals:
- Steady trend: distance oscillates but holds directional bias
- Acceleration: distance expands rapidly (risk of late entry increases)
- Transition: TK−KJ compresses / flips while price distance decays
3) Confluence as a bias overlay (minimal, conservative)
Use Confluence Background to quickly see agreement:
- Kijun distance + TK−KJ alignment -> stronger directional context
- Mixed readings -> reduce aggressiveness / wait for clarity
4) Alert workflow (discretionary, not automated)
Example approach:
- Enable alert for “Price crosses Kijun”
- Use it as a context prompt to check structure and risk
- Do not treat the alert as an entry by itself
Notes
- This is a context and equilibrium tool, not an automated trading system.
- Large distance does not guarantee reversal — strong trends can remain extended.
- Ichimoku components are derived values; interpret together with structure, volatility behavior, and risk management.
- If you trade different markets, prefer normalized modes for comparability.
Best Suited For
- Ichimoku traders who prefer conservative, method-aligned tools
- Ambitious beginners learning equilibrium and extension behavior
- Discretionary intraday and swing traders
- Users who want clean charts with optional higher timeframe context
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.