CandelaCharts - First P.FVG Killzone📝 Overview
The First P.FVG Killzone indicator automatically maps out user-defined trading sessions (Killzones) and highlights the First Presented Fair Value Gap (FVG) that forms within them.
Based on ICT concepts, killzones are specific time windows where high probability setups often occur. The first FVG to form in these sessions can act as a crucial reference point for the market's direction. This tool helps traders visualize the session range, the first institutional imbalance, and historical sweep probabilities.
📦 Features
Customizable Killzone Sessions (Asia, London, NY AM, NY Launch, NY PM, and Custom sessions)
First Presented FVG Detection within each session
Session Range Visualization (High, Low, and Mean lines with invalidation tracking)
FVG Visibility Filters (All, Bullish, Bearish, None)
Advanced FVG Styling (Midline, Borders, Labels, Extension Modes)
Session Dividers and Timeframe Separators
Historical Sweep Statistics (Probability of session High/Low sweeps)
⚙️ Settings
General: Adjust global text size and visibility of the brand watermark.
Imbalance Settings: Control the filtering, styling, and extension behavior (Fixed, Session End, Full) of the First P.FVG.
History: Set the total number of historical sessions to display.
Sessions (First to Eighth): Toggle visibility, set timeframes, and customize colors for each killzone.
Styles: Customize the appearance of the session box, borders, labels, and extended High/Low/Mean lines.
Statistics: Enable and configure historical probability tracking for session sweeps (Total Sweep vs. Session Overlap).
Dividers: Manage the style, width, and color of vertical session dividers and timeframe separators.
⚡️ Showcase
Killzone Sessions
Visualizing the different killzones with their defined ranges.
First Presented FVG
Highlighting the first FVG that forms inside the session.
Sweep Statistics
Displaying the historical probability of the session high or low being swept.
📒 Usage
The indicator is highly customizable, allowing you to use various session models and automatically detect the first Fair Value Gap (FVG) that forms within each defined session.
How to use in trading
The first Fair Value Gap of a specific session often sets the tone for subsequent price action. Price frequently gravitates towards and interacts with these initial imbalances later in the trading day. Because of this, the First Presented FVG can serve as a key intraday reference point, acting as strong dynamic support or resistance (S/R) levels. Traders can watch these extended FVG zones for high-probability continuation setups or potential reversal points when the price retraces back into them.
Below are some common reference times you can use when setting up your sessions:
ICT Killzones:
Asia: 2000-0000
London: 0200-0500
NY AM: 0930-1100
NY Launch: 1200-1300
NY PM: 1330-1600
Classic Sessions:
Sydney: 1700-0200
Tokyo: 1900-0400
London: 0300-1200
New York: 0800-1700
Harmonic Series:
Origin: 0000-0300
Prime: 0300-0600
Ascent: 0600-0900
Apex: 0900-1200
Meridian: 1200-1500
Entropy: 1500-1800
Vector: 1800-2100
Convergence: 2100-0000
🚨 Alerts
This script provides alert options for when a new First Presented FVG is formed in any of the configured Killzones.
Bearish Signal
A bearish signal is triggered when the first bearish P.FVG is formed within an active Killzone.
Bullish Signal
A bullish signal is triggered when the first bullish P.FVG is formed within an active Killzone.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Indicador

Gann Mass Pressure█ OVERVIEW
The Gann Mass Pressure indicator projects a seasonal price forecast for the remainder of the calendar year. It averages historical closes from the same calendar date across multiple past decades to produce a composite trend line that extends forward from the current bar through December 31. The method was documented by Constance Brown in The 32nd Jewel: Gann Analysis, Part 2, Price and Time (Chapter VII, Section L), reproducing W.D. Gann's original six-term formula with lookback intervals of 10, 20, 30, 40, 60, and 80 years.
█ HOW IT WORKS
For each calendar date, the indicator:
1 — Identifies the month and day.
2 — Looks back to that same calendar date at each of the six configurable intervals
(default: 10, 20, 30, 40, 60, and 80 years).
3 — Finds the closest matching trading day within a ±15-bar scan window
to handle weekends, holidays, and calendar drift.
4 — Averages all available (non-na) closes into a single Mass Pressure value.
On historical bars, this value is plotted as a colored line (gold when rising, blue when falling). On the last bar, the indicator generates a forward projection by computing Mass Pressure for every remaining weekday through December 31 and drawing it as a continuous line extending beyond the chart's current data. A label marks the final projected value at year-end.
The info table in the top-right corner shows each lookback term's resolved value, the bar count required to reach it, and whether it is active, unavailable, or beyond Pine Script's history limit. A forecast row displays the number of projected data points.
█ HOW TO USE
The forward projection line is the primary output. It maps the dominant seasonal tendency for the rest of the year based on the composite behavior of the selected historical intervals. When the projection trends upward, historical precedent favors rising prices for that calendar period. When it trends downward, the seasonal composite points to weakness.
Recommended timeframe: Weekly. On weekly charts, all six Gann lookback intervals (including the 60-year and 80-year terms) resolve within Pine Script's 10,000-bar history limit, giving you the complete formula as Gann intended. On daily charts, only the 10-year, 20-year, and 30-year terms will typically be available due to the bar limit. The indicator handles this gracefully and plots with whatever terms resolve, but fewer terms reduce the composite's reliability.
Confluence with other timing methods: Brown notes that Mass Pressure maps seasonal trends under normal conditions and is not suited for precise timing. It is most powerful when used in confluence with independent timing methods (cycle analysis, planetary geometry, Gann time counts) to confirm or filter signals from those primary tools.
Key inputs:
• Lookback 1 through 6 : The six year intervals. Defaults match Gann's original
formula (10, 20, 30, 40, 60, 80). Adjustable for experimentation.
• Min valid terms to plot : The minimum number of non-na lookback values required
before the indicator will plot. Default is 2. Increase to 3 or 4 for higher
confidence from more contributing terms.
• Smoothing : Optional SMA smoothing applied to the historical Mass Pressure line.
Default is 1 (no smoothing). Increase to reduce noise on volatile instruments.
• Forecast line color : Separate color for the forward projection (default: gold
with slight transparency to distinguish it from the historical plot).
• Colors and line width : Customizable rising/falling/flat colors and line thickness.
█ LIMITATIONS
Pine Script 10,000-bar history cap. Pine enforces a maximum of 10,000 bars for any history-referencing operator. At approximately 252 trading days per year on daily charts, this caps effective lookback depth at roughly 39 years. The 40-year term is borderline, and the 60-year and 80-year terms will return na on daily timeframes. Switching to weekly charts (52 bars/year) brings the 80-year lookback down to approximately 4,160 bars, well within the limit.
Insufficient chart data. The indicator will not appear on charts where the symbol lacks enough historical price data to satisfy the minimum number of lookback terms. Newer instruments (ETFs, crypto, recent IPOs) may have less than 10 years of data, in which case no terms resolve and nothing plots. The background shades red when available terms fall below the configured minimum. The info table always shows exactly which terms are active and which are not.
Calendar-date matching is approximate. The scan window of ±15 bars around the target offset matches the nearest available trading day when the exact calendar date falls on a weekend or holiday. In rare cases at the boundary of long market closures, the matched date could be slightly offset from the true anniversary.
Forward projection uses weekday estimates. The forecast line generates dates for Monday through Friday via Zeller's congruence. It does not account for market-specific holidays (e.g., Thanksgiving, exchange closures), so the projected point count may slightly exceed the actual number of remaining trading days.
Seasonal trend, not timing. As Brown notes, this indicator maps seasonal tendencies under normal conditions. It does not predict exact turning points. Divergences between Mass Pressure direction and actual price often occur around major non-seasonal events. The Time Factor and independent timing tools should always take precedence for entry/exit decisions. Brown also observes that for some instruments (Soybeans is cited), the indicator may display an inverse relationship to actual market trends.
█ NOTES
The formula and methodology are drawn directly from Constance Brown's The 32nd Jewel: Gann Analysis, Part 2, Price and Time (Chapter VII, Section L). Brown provides worked examples for DJIA and Cotton, documents the six default lookback intervals, and includes critical caveats about data sufficiency, seasonal-year offsets, and the distinction between seasonal trend indication and precise timing.
The info table provides full transparency into the indicator's internal state. Red "OVER 10K" entries indicate that a lookback exceeds Pine's bar limit at the current timeframe. Red "n/a" entries indicate the chart does not have data going back that far. Green term counts confirm the indicator is computing with adequate data. The forecast row shows the number of forward-projected points through December 31.
Background shading on historical bars provides an additional visual cue: a faint yellow tint indicates computation with fewer than all six terms, and a faint red tint indicates the term count has fallen below the configured minimum threshold.
█ THANKS
Constance Brown, for her meticulous documentation of Gann's methods in The 32nd Jewel . Her treatment of the Mass Pressure Chart, including its strengths, limitations, and the critical warning about data sufficiency, made this implementation possible. Indicador

Indicador

Indicador

Estratégia

MTF Bias DashboardMTF Bias Dashboard
MTF Bias Dashboard is a multi-timeframe trend and confluence dashboard for traders who want fast directional context across liquid markets. It is designed to answer one question quickly:
Is this symbol aligned enough to trade, or should I wait?
The indicator combines 1m, 5m, 15m, 30m, 1H, 4H, and 1D trend data on the active chart symbol, so you can see whether a short-term move is likely part of the bigger trend, a pullback, or a lower-quality conflict.
The Dashboard: Read It From Top To Bottom
ACTION - This is the first cell to read. It gives the current bias state: NO TRADE, WAIT, LONG WATCH, SHORT WATCH, LONG ONLY, SHORT ONLY, LONG BIAS, or SHORT BIAS.
WHY - Explains the main reason behind the action, such as H1/4H disagree, Low volatility, HTF risk, Strong bull confluence, or Bear regime only.
TF Rows - These are diagnostics for each timeframe. Use them to see which timeframe agrees or disagrees.
SESSION - Shows London, New York, London/New York overlap, Asia, or off-hours, plus the session multiplier.
How To Decide If It Is A Good Time To Enter
Start with ACTION .
If ACTION says NO TRADE , do not enter. The dashboard is blocking the setup.
If ACTION says WAIT , there is no clean edge yet.
If ACTION says LONG WATCH or SHORT WATCH , the intraday regime is starting to lean one way, but confluence is not strong enough yet.
If ACTION says LONG ONLY or SHORT ONLY , only look for your own setups in that direction. Do not chase immediately unless your execution plan confirms.
If ACTION says LONG BIAS or SHORT BIAS , confluence is strong in that direction, but entries are still discretionary.
Check WHY before entering. If it says H1/4H disagree, Low volatility, HTF risk, or No clean setup, the trade quality is weaker.
Use the 5m, 15m, 30m, and 1H rows to confirm your entry chart agrees with the active intraday direction.
Dashboard Terms
SCORE - A confluence score from -100 to +100. Positive favors long bias. Negative favors short bias.
H1+4H BULL - 1H and 4H are both bullish enough to prefer long setups.
H1+4H BEAR - 1H and 4H are both bearish enough to prefer short setups.
H1/4H CONFLICT - 1H and 4H disagree. In Aggressive and Balanced presets this is a context warning; in Conservative preset it blocks trades.
HTF RISK - The active intraday direction is fighting 4H or 1D context.
LIVE - Preview score from the currently forming candle. It can change before that timeframe closes.
ATR / EMA - Shows volatility condition and whether that timeframe's EMA stack is bullish, bearish, or mixed.
Chart Lines
The indicator can plot local and higher-timeframe moving averages. These are visual context lines, not automatic entry signals.
Local EMA 9 - Cyan. Fast current-chart momentum.
Local EMA 21 - Yellow. Short-term pullback/momentum guide.
Local EMA 50 - White. Current-chart trend guide.
1H EMA 50 - Orange. 1-hour dynamic support/resistance.
1H EMA 200 - Dark orange. Major 1-hour structure level.
4H EMA 50 - Magenta. 4-hour dynamic support/resistance.
4H EMA 200 - Purple. Major 4-hour structure level.
Practical use: if the dashboard is bearish and price bounces into a level you care about, such as a fib zone or moving average area, the dashboard helps confirm whether the broader intraday context still supports short-only thinking. The same applies in reverse for bullish pullbacks.
How The Trend Score Works
Each timeframe is scored using:
EMA stack alignment.
EMA slope normalized by ATR.
RSI regime and RSI direction.
Price location versus the EMA band.
VWAP location when available.
Volatility quality using ATR versus its baseline.
Bias Presets And Default Weighting
Aggressive - Prioritizes 5m, 15m, 30m, and 1H. 4H is light context.
Balanced - Default. Uses 15m, 30m, and 1H as the main intraday stack, with 4H as context.
Conservative - Requires stronger 1H/4H agreement and gives 4H more influence.
1D - Shown as regime context only. It is not part of the confluence weight.
Confirmed vs Live Preview
The main ACTION, WHY, SCORE, and alerts use confirmed multi-timeframe values to reduce repainting. The LIVE column is only an early preview and can change before the candle closes.
Session Weighting
London, New York, and the London/New York overlap receive higher confidence. Asia and off-hours receive lower confidence because intraday conditions can be less reliable.
Alerts Included
Strong Long Bias
Strong Short Bias
HTF Conflict / No-Trade Warning
Important Notes
This is an indicator, not an automated strategy.
Use it with your own risk management and execution rules.
The dashboard shows multi-timeframe bias and context. It does not mark exact entries.
The cleanest intraday setups usually come when 5m, 15m, 30m, and 1H agree, then price pulls back into a meaningful zone and stalls according to your own execution plan.
4H and 1D are context layers. In Aggressive and Balanced presets they warn about regime risk instead of automatically blocking every trade.
For the cleanest alerts, keep "Alerts only on confirmed chart bars" enabled.
Indicador

Indicador

[GYTS-CE] Pattern Texture Codex (PTC)Pattern Texture Codex (Community Edition)
🌸 Part of GoemonYae Trading System (GYTS) 🌸
🌸 --------- INTRODUCTION --------- 🌸
💮 What is the Pattern Texture Codex?
Standard technical analysis focuses on two dimensions: Amplitude (how far price moves) and Momentum (how fast price moves). The Pattern Texture Codex introduces a third: Structure (how price moves).
This indicator implements Permutation Entropy (PE), a complexity measure from dynamical systems theory that captures whether price evolves in structured patterns or chaotic noise. We call this "Market Texture":
🫧 Smooth Texture (Low Entropy): Price evolves in ordered, predictable patterns. Trends are durable and causality is high. Momentum strategies favoured.
🌵 Rough Texture (High Entropy): Price evolves chaotically. The market is noisy, trends are fragile. Mean reversion or defensive sizing recommended.
💮 Why Use This Indicator?
Most "entropy" indicators on TradingView fall into common traps:
Shannon entropy of price histograms — measures value distribution but ignores temporal sequence
Approximate Entropy (ApEn) — measures amplitude similarity with O(N²) computational cost
Volatility metrics labelled "entropy" — captures magnitude, not pattern structure
Mathematical errors — normalised values that don't form valid probability distributions
The Pattern Texture Codex provides true ordinal pattern analysis — it examines the sequence of price movements, not just their distribution or magnitude. A smooth uptrend and choppy consolidation may have identical volatility, but their texture is completely different.
↑ Pattern Texture Codex with dynamic threshold bands. Rough Texture (high entropy) often indicates reversals, while Smooth Texture (low entropy) often precedes trend continuation.
🌸 --------- HOW IT WORKS --------- 🌸
💮 Core Concept: Ordinal Patterns
Instead of analysing raw price values, Permutation Entropy converts price into ordinal patterns — the relative ordering of consecutive data points.
For example, with embedding dimension D=3 (three points per pattern):
Pattern "012": first < second < third → ascending
Pattern "210": first > second > third → descending
Pattern "102": middle value smallest → valley shape
The indicator counts how often each pattern appears over a lookback window, then calculates the Shannon entropy of this distribution.
↑ With D=3, three consecutive data points determine each pattern. Left: ascending pattern "012" (first point smallest, second middle, third greatest). Right: descending pattern "210" (first point greatest, second middle, third smallest).
💮 Calculation Overview
The normalised Permutation Entropy is computed as:
H = −∑ p(π) · ln(p(π)) / ln(D!)
Where:
• p(π) is the probability of each ordinal pattern π
• D is the embedding dimension (number of points per pattern)
• D! is the total possible patterns (e.g., 4! = 24 for D=4)
The result ranges from 0 to 1:
• H → 0 : One pattern dominates — highly structured, predictable
• H → 1 : All patterns equally likely — pure randomness
↑ Full calculation example at D=3 showing the lowest entropy point (green vertical line). With 3!=6 possible patterns, the monotonic rising pattern "012" dominates while three other patterns occur only once. The frequency column feeds into the entropy contribution formula, yielding H(3)=1.039. Normalising produces 0.4019 — matching the indicator output exactly.
💮 Theoretical Background
Permutation Entropy has deep theoretical foundations. For piecewise monotone maps, it converges to the Kolmogorov-Sinai entropy — the fundamental measure of chaos in dynamical systems.
Key scientific properties:
• Scale invariance — analyses rank orderings, invariant to monotonic transformations
• Noise robustness — ordinal encoding naturally filters high-frequency noise
• Computational efficiency — O(1) amortised per bar with lookup acceleration
• Micro-structure sensitivity — captures specific sequence patterns, not just distribution
🌸 --------- KEY FEATURES --------- 🌸
💮 Lookup Table Acceleration
Standard PE requires sorting each embedding vector — O(D log D) operations per bar. This implementation uses precomputed transition tables from Unakafova & Keller (2013), reducing complexity to O(D) per bar.
The key insight: successive ordinal patterns in overlapping windows share (D−1) data points. Rather than recomputing from scratch, the algorithm derives the new pattern from the previous one using a single table lookup.
Enabled by default for Delay=1 and Dimension ∈ {3, 4, 5}
Falls back to standard calculation for D=2, D=6
💮 Flexible Threshold Modes
The indicator supports four independent threshold modes for both Smooth and Rough detection:
Static — Fixed threshold values you define
Dynamic — Adaptive bands based on entropy baseline ± standard deviation
Percentile — Threshold at Nth percentile of recent entropy history
Disabled — No threshold for that direction
You can mix modes: for example, Dynamic for Smooth detection while using Percentile for Rough detection.
🌸 --------- CONFIGURATION --------- 🌸
💮 General Settings
• Source — Price series to analyse (default: close)
• Smoothing Critical Period — Smoothing via 2-pole Ultimate Smoother (default: 0 = disabled). Reveals underlying texture by filtering entropy noise.
💮 Entropy Calculation
Dimension (D) — Points per ordinal pattern:
• D=3: 6 patterns — fast, stable. Good for limited lookback.
• D=4: 24 patterns — balanced, captures V-reversals. Recommended.
• D=5: 120 patterns — sensitive, captures W/M patterns. Noisier.
• D=6: 720 patterns — maximum sensitivity. No lookup acceleration.
Lookback — Estimation window size. Hard minimum: D × 5. Statistical recommendation: 5 × D! (e.g., 120 for D=4). Default: 100.
Delay (τ) — Stride between points in each pattern (default: 1). Change only for oversampled data.
Lookup Acceleration — Enables transition tables for D ∈ {3, 4, 5} with Delay=1.
💮 Threshold Management
Rough/Smooth Mode — Static, Dynamic, Percentile, or Disabled for each threshold
Static Values — Fixed threshold when Static mode selected
Std Dev Multiplier — Band width for Dynamic mode (default: 2.0σ)
Baseline/Deviation Length — Lookback for Dynamic mode calculations
Percentile Settings — Lookback and percentile values for Percentile mode
💮 Visualisation & Alerts
Palette — Colour scheme (default: GYTS Purple)
Colouring Bars — Applies texture colours to chart candles
Dark Mode — Optimises colour intensity for dark backgrounds
Alerts — Triggers when entropy crosses above/below thresholds
🌸 --------- USAGE GUIDE --------- 🌸
💮 Getting Started
Apply the indicator with default settings:
• Dimension: 4 (balanced complexity, captures V-shaped reversals)
• Lookback: 100 (responsive; statistical ideal: ≥120 for 5× coverage)
• Smooth Threshold: Dynamic mode with 2.0σ multiplier
Observe how entropy rises during choppy consolidation and falls during clean trends.
💮 Interpretation
Entropy Value (0 to 1):
Below 0.6: Strong pattern dominance — highly ordered
0.7–0.9: Normal complexity — typical market behaviour
Above 0.95: Near-random — patterns uniformly distributed
Transitions:
Watch for regime changes. When entropy rises sharply after a prolonged smooth period, the trend may be losing coherence. When entropy falls from elevated levels, a new trend may be establishing.
↑ Texture transitions during a trend-to-consolidation regime change. During the uptrend, similar patterns (D=3) recur frequently and entropy decreases. As the market transitions to consolidation, entropy rises — signalling the trend is losing structure.
💮 Trading Applications
Trend Filtering — Only take trend-following signals during Smooth texture.
Mean Reversion Timing — Elevated entropy often precedes mean reversion.
Position Sizing — Reduce exposure during Rough texture.
Exit Management — Tighten stops when entropy rises during a position.
💮 Integration with GYTS Suite
The Pattern Texture Codex exports two signals:
PE Continuous — Raw entropy value (0 to 1)
PE Ternary — State signal (+1 = Rough, 0 = Neutral, −1 = Smooth)
These can be read by Flux Composer or used as filter conditions with Market Regime Detector .
🌸 --------- PARAMETER TUNING --------- 🌸
💮 Lookback Selection
Shorter lookbacks react faster but may produce unstable estimates:
50–100: Responsive. Good for intraday regime detection.
100–200: Balanced. Recommended for swing trading.
200–500: Stable. Better for position trading or noisy instruments.
The indicator enforces a hard minimum of D × 5 to prevent meaningless output.
↑ Three dimensions (D=3, D=4, D=5) with their academically recommended minimum lookback periods.
💮 Threshold Tuning
For Smooth Detection:
Dynamic mode with 2.0σ works well across most instruments. Lower multipliers (1.5σ) detect structure earlier but may false-trigger.
For Rough Detection:
Percentile mode at 90th percentile identifies only extreme chaos. Static threshold of 0.95+ focuses on near-random conditions.
Consider disabling Rough detection entirely if your strategy only cares about identifying structured trends.
↑ The three threshold modes on the same PTC calculation. Both upper and lower thresholds are independently configurable.
🌸 --------- LIMITATIONS --------- 🌸
Amplitude Blindness — PE treats all patterns equally regardless of magnitude. A 0.1% drift and a 10% crash produce identical entropy if their ordinal patterns match.
Equal Values (Ties) — Handled via temporal tie-breaking (recent values rank higher), but heavily discretised data may produce edge-case behaviour.
Sample Size Requirements — Very short lookbacks (below D × 5) produce unreliable estimates. Statistical reliability improves with larger samples.
Not Predictive Alone — Low entropy indicates structure exists, not that the trend will continue. Combine with directional analysis for trading decisions.
Lag During Transitions — The sliding window approach introduces inherent lag when market texture changes.
🌸 --------- CREDITS --------- 🌸
💮 Academic Sources
Bandt, C., & Pompe, B. (2002). Permutation entropy: A natural complexity measure for time series. Physical Review Letters, 88 (17), 174102. DOI
Unakafova, V., & Keller, K. (2013). Efficiently measuring complexity on the basis of real-world data. Entropy, 15 (10), 4392-4415. DOI
Ehlers, J. F. (2024). The Ultimate Smoother. Technical Analysis of Stocks & Commodities , 2024-04. TASC
💮 Libraries Used
FiltersToolkit — Ultimate Smoother and other curated filters
PatternTransitionTables — Precomputed lookup tables for O(1) pattern transitions
ColourUtilities — Gradient palette generation and colour management
Indicador

HTF + LTF Market Structure ICTHTF + LTF Market Structure ICT
A dual-stream ICT-style market structure tool that detects MSS (Change of Character) and BOS (Break of Structure) events on both a higher timeframe and the current chart timeframe simultaneously — so you can read HTF context and LTF structure on a single chart.
What it does
The indicator runs the same fractal-based structure detector twice in parallel:
HTF stream (default M15) — runs via request.security with lookahead_off, so events are confirmed at the HTF candle close. Each event renders as a small labeled ribbon tag (e.g. M15 CHoCH ↑) on the LTF bar where the HTF candle closed. Bull tags sit below the bar, bear tags above. No projected lines.
LTF stream — runs on the chart TF directly. Each event renders as a break-level line spanning the broken fractal pivot to the firing bar, plus a minimal CHoCH / BOS text label at the line's midpoint — colored text only, no background fill. Bull text floats above the line, bear below.
Each stream tracks its own trend state, so the HTF and LTF can disagree — that disagreement is the actionable read (e.g. HTF still bullish while LTF just printed a CHoCH down = first sign of a pullback against trend).
How structure is classified
Each stream maintains its own directional bias:
MSS / CHoCH — the first break against the prior structural trend (reversal signal).
BOS — a break in the same direction as the current trend (continuation).
The very first event of each stream is classified as MSS by default since there's no prior reference. Line style differs: solid for MSS, dashed for BOS by default.
Detection logic
A fractal swing pivot is confirmed when a high/low is the extreme over a configurable length (default 5).
A break fires when the bar's close crosses through the most recent unbroken fractal (above for bull, below for bear), with barstate.isconfirmed so events don't repaint.
Auto-suppression
When the chart timeframe equals the chosen HTF (e.g. you're viewing the M15 chart with HTF = M15), the HTF ribbon is hidden — both streams would otherwise detect the exact same events on the same bars.
Inputs
HTF stream — HTF (15min / 30min / 1H / 4H / 1D), fractal length, MSS / BOS toggles
LTF stream — fractal length, MSS / BOS toggles
Display — line on/off, forward-extend latest line, LTF text on/off, history depth
Style — line styles (MSS solid / BOS dashed), line width, HTF ribbon size + transparency, LTF text size, bull / bear colors
Alerts
Ten preconfigured alertconditions:
HTF Bull CHoCH / Bear CHoCH / Bull BOS / Bear BOS
LTF Bull CHoCH / Bear CHoCH / Bull BOS / Bear BOS
LTF bull aligned with HTF-bull bias (confluence)
LTF bear aligned with HTF-bear bias (confluence)
Suggested use
Works on any symbol or timeframe. Default M15 HTF on an M1 / M3 / M5 chart gives a clean intraday read; for swing structure, try chart TF = 1H with HTF = 4H or 1D. The fractal length controls signal density — drop to 3 for more frequent events on lower-volatility instruments, raise to 7+ to filter for stronger swings.
This is a structure visualization tool, not a trading system — it doesn't take trades, manage risk, or compute lot sizes. Use it to read HTF context and LTF trigger timing.
Disclaimer
This script is for educational and analytical purposes only. It does not provide financial advice and does not guarantee profitability. Past performance of any structural pattern does not imply future results. Always combine with your own analysis and risk management.
Quick adjustments you might want before publishing: short title for TV (e.g. HTF+LTF MSS ICT), and grab a chart screenshot showing both HTF ribbons and LTF text active. Indicador

Indicador

Indicador

Indicador

Indicador

FagoriTools 1.0**FagoriTools — Multi-TF Trend + Reverse RSI Levels**
All-in-one indicator that combines three utilities into a single script to reduce visual clutter on the chart:
**1) Configurable EMAs**
Five independent exponential moving averages, each with its own period, color, and on/off toggle. Default values follow common combinations: 9, 12, 26, 50, and 200. Useful for those who rely on classic crossovers (12/26, 50/200) and want all references consolidated within one indicator.
**2) Reverse RSI Levels**
Instead of displaying the RSI in a separate panel, this module plots two lines directly over price, indicating the exact value at which the asset would need to close for the RSI to reach the oversold (default 30) and overbought (default 70) thresholds.
The calculation inverts the RSI formula: starting from the current gain and loss averages (RMA), it solves the equation for the `close` value that would produce the target RSI, accounting for Wilder's smoothing. This allows you to see at a glance, "if it drops to X, it becomes oversold" or "to turn overbought, it needs to rise to Y," without switching between panels.
Both the RSI levels and the period (default 14) are fully customizable.
**3) Multi-Timeframe Table**
A consolidated panel displaying the asset's reading across seven timeframes: 5m, 15m, 1h, 4h, 1D, 1W, and 1M (each can be toggled on or off individually).
For each timeframe, the table shows:
* Trend — trend direction (Up/Down) based on the close relative to the slow EMA. Green = Up, Red = Down.
* RSI — numeric RSI value for that timeframe, with the background color reflecting the trend.
* Fixed (optional) — the same trend reading applied to a fixed pair chosen by the user (e.g., SPX500, DXY, BTCUSDT). Useful for tracking correlation with a benchmark without switching charts.
The table position is configurable across two dimensions (vertical: Top/Middle/Bottom; horizontal: Left/Right).
**How to Use**
1. Enable the EMAs that align with your strategy.
2. Adjust the RSI levels according to your style (some prefer 20/80 in crypto, 30/70 in stocks).
3. Use the multi-TF table to align your trades with the higher timeframe trend. Entries against the trend of larger timeframes typically have a lower win rate.
**Notes**
* The Reverse RSI is a deterministic calculation, not a projection. The value displayed is the current price required for the RSI to reach the target, and it updates with every candle.
* The "Fixed" column depends on the chosen symbol being available on the broker. Otherwise, it remains blank.
* Indicator is overlaid on price, working with any asset and timeframe. Indicador

Indicador

CandelaCharts - Killzone HTF Candles📝 Overview
The Killzone HTF Candles indicator is a professional visual tool designed for ICT and SMC traders who prioritize session-based price action. It bridges the gap between Lower Timeframe (LTF) execution and Higher Timeframe (HTF) context by projecting session-specific data (Asia, London, New York) directly onto your chart as discrete candles.
This tool allows you to monitor the "Daily Narrative" by seeing how session ranges interact without ever leaving your execution timeframe, helping you identify liquidity sweeps and trend transitions at a glance.
📦 Features
Multi-Session Tracking : Pre-configured with 8 primary Killzones: Asia (AS), London Open (LO), NY AM, NY Lunch (LA), NY PM, and 3 additional custom sessions.
Dual Projection Logic :
Mapped to Chart : Overlays HTF boxes and wicks directly on the price action for historical study and zone identification.
Ghost Display : Projects the most recent sessions as a "Rolling Dashboard" on the right side of the chart, keeping your current price action clear.
Dynamic Chronology : Ghost candles automatically rotate, ensuring the most recent session is always positioned on the far right.
Premium Aesthetics : Built with glassmorphism design principles, featuring customizable body opacity, line widths, and font styles.
Timezone Sync : Integrated timezone support (Default: America/New_York) ensures your sessions align perfectly with global markets.
⚙️ Settings
HTF Candle Mechanics
Candle Size : Adjusts the width of the ghost candles.
Bull/Bear Colors : Set your preferred color scheme for bullish/bearish closes.
Ghost Offset/Spacing : Fine-tune the position and gap of the ghost candles on the right side.
Line Width : Controls the thickness of wicks and candle borders.
Opacity : Adjust the transparency of the candle body fills.
Session Configuration (I - VIII)
Show Session : Enable/Disable tracking for specific Killzones.
Display Name : Customize labels (e.g., "LO", "NY AM").
Session Time : Define precise time ranges for each session.
Map to Chart : Toggle the HTF candle overlay for specific sessions.
⚡️ Showcase
The "Session Transfer" Logic
By using the Ghost Candles , you can quickly identify the relationship between different trading periods:
AS Range : Often sets the initial consolidation or liquidity pool.
LO Expansion : Typically creates the high or low of the day.
NY AM Reversal : Often trades back into the LO or AS ranges to fill gaps or sweep liquidity.
Highly customizable, build your own custom killzones
🚨 Alerts
This version is optimized for visual analysis. While it does not include internal logic alerts, it provides a comprehensive real-time dashboard for manual confluence and bias confirmation.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Indicador

Indicador

Cody Zig ZagCody Zig Zag Indicator - Complete Explanation
This is a Zig Zag indicator that replicates the MetaTrader 4 (MT4) version, which works differently than TradingView's built-in Zig Zag. Here's what it does:
🎯 What is a Zig Zag Indicator?
It filters out minor price movements to show only significant swing highs and swing lows, helping you identify trends and chart patterns (head & shoulders, double tops/bottoms, etc.).
⚙️ User Settings (Inputs)
Setting Default What It Does
Depth 6 Lookback period to find local highs/lows
Deviation 5 Minimum price change (in ticks) to form a new swing point
Backstep 2 Minimum bars between swing points
Line Thickness 2 Zig Zag line width
Bull Color Lime Color for upward moves
Bear Color Red Color for downward moves
Repaint Levels true If ON, lines/labels adjust real-time; if OFF, they lock on close
🔍 How It Works (The "Bake" Section)
Step 1: Find Potential Pivot Points
p_lw = Most recent low within Depth bars
p_hg = Most recent high within Depth bars
Checks if price moved enough (Deviation * tick size) to qualify
Step 2: Determine Direction
down = Boolean (true = bearish/downward leg, false = bullish/upward leg)
Tracks whether we're connecting a high→low (down) or low→high (up)
Step 3: Draw Zig Zag Lines
Connects alternating swing highs and swing lows
Labels each point as:
HH = Higher High
LH = Lower High
LL = Lower Low
HL = Higher Low
🏷️ Labels Explained
When price makes a new swing point, you'll see:
HH (Higher High) - Bullish continuation signal
LH (Lower High) - Bearish reversal signal
LL (Lower Low) - Bearish continuation signal
HL (Higher Low) - Bullish reversal signal
📊 Visual Features
Colored Zig Zag lines: Green for up-legs, Red for down-legs
Background color: Green during bullish legs, Red during bearish legs (90% transparent)
Labels: Tiny triangles pointing up/down with text
⚠️ Repaint Behavior (Important!)
Repaint = ON (default) Repaint = OFF
Lines/labels update in real-time Locks on bar close
Can "repaint" history More reliable for backtesting
Good for real-time trading No historical repainting
Warning: Zig Zag indicators naturally repaint because they need future bars to confirm pivot points. The repaint option controls HOW they repaint.
🚨 Alerts
This script triggers alerts when:
Direction Changed - Zig Zag switches from up to down or down to up
Bullish Direction - Switches from down to up
Bearish Direction - Switches from up to down
📈 How to Use
Identify Trend: Upward Zig Zag = Uptrend; Downward = Downtrend
Find Patterns: Look for HH/HL patterns (bullish) or LH/LL patterns (bearish)
Divergence: Compare Zig Zag swings with oscillator indicators
Support/Resistance: Swing points act as natural S/R levels
⚡ Quick Summary
This indicator draws a line connecting significant price swings, ignoring small noise. It's great for:
Visualizing trend structure
Identifying chart patterns
Finding entry/exit levels
Spotting trend reversals Indicador

Indicador

Indicador

Trade Grader [Time & Price ICT)Trade Grader
A Protocol-Based Trade Scoring System for Disciplined ICT Traders
What Is This Indicator?
Trade Grader is a real-time trade scoring and checklist system built specifically for traders following the ICT methodology, as taught by Frank369 (The Matrix Unlocked). It sits directly on your TradingView chart and grades every potential trade setup from D (worst) to A++ (perfect) — so you never have to second-guess whether a trade is worth taking.
The indicator is divided into two sections that must be completed in order:
• 📊 High Timeframe (HTF) Checklist — 1H: Confirms the big picture is aligned before you even think about entering.
• 📈 Low Timeframe (LTF) Checklist — 5m/1m: Confirms precise entry conditions once the HTF is fully validated.
How It Works
Step 1 — Complete the HTF Checklist First
The LTF checklist is locked until all 3 HTF conditions are met:
1. ✅ Orderflow Identified (1H) — Is the 1H trend clearly bullish or bearish?
2. ✅ POI / POIs Identified (1H / 15m) — Have you marked your Points of Interest?
3. ✅ DOL Identified — Do you know your Draw on Liquidity?
If any HTF item is missing → automatic Grade D → NO TRADE. No exceptions.
Step 2 — Complete the LTF Checklist
Once the HTF is 100% confirmed, the LTF section unlocks:
1. ✅ Price now at POI — Is price actually at your identified level?
2. ✅ SMT Identified (min. 10m SMT) — Is there Smart Money Tool divergence present?
3. ✅ CISD on NQ & ES — Change In State of Delivery confirmed on both instruments?
4. ✅ CISD on NQ, ES & YM (OVERRIDE) — All 3 instruments confirmed? This overrides item 3 and upgrades your grade.
Step 3 — Read Your Grade
The indicator scores your setup and displays the result instantly:
Why This Indicator Will Change How You Trade
🛡️ It Protects You From Yourself
The number one reason traders lose money is not a lack of knowledge — it’s a lack of discipline. You know the rules. But in the heat of the moment, emotions take over. Fear of missing out, impatience, boredom — these push you into trades that don’t meet your criteria. Trade Grader acts as your personal rule enforcer, right on your chart. If the grade isn’t A, A+, or A++, the indicator tells you loudly and clearly: NO TRADE.
🎯 It Eliminates Overtrading
Overtrading is one of the most common ways retail traders blow accounts. Every time you take a low-quality trade, you’re not just risking your capital — you’re risking your confidence and your consistency. Trade Grader forces you to slow down and only act when your full protocol is confirmed. No more “close enough” setups. No more “I think this might work.” Only structured, graded, high-probability setups.
📋 It Builds Trading Discipline Like a Checklist Pilot
Commercial pilots don’t take off without completing their pre-flight checklist — no matter how experienced they are. Trade Grader brings that same level of procedural discipline to your trading. Every item must be checked. Every box must be ticked. Only then does the system give you the green light to trade.
🧠 It Removes Emotional Decision-Making
When you’re staring at a chart and price is moving fast, your brain wants to act. Trade Grader slows you down and forces you to think systematically instead of emotionally. By the time you’ve gone through the checklist, you either have a valid setup — or you don’t. There’s no grey area.
📈 It Trains You to See Only High-Quality Setups
Over time, using this checklist consistently will rewire how you see the market. You’ll naturally start pre-screening setups in your head before even opening the indicator. Your eye for confluences, timing, and structure will sharpen — because you’ve been forced to look for them on every single trade.
Key Features
• 🔒 HTF Lock System — LTF checklist is greyed out and locked until all HTF items are confirmed
• 🎓 Live Grade Display — Updates in real time as you toggle items on/off in settings
• 🟢 TRADE! / 🔴 NO TRADE — Clear, bold verdict so there’s no confusion
• 🩶 Clean Silver/Grey Design — Minimal and professional, won’t distract from your chart
• 📍 Repositionable — Place the table in any corner of your chart
• 👁️ Toggle Checklist Visibility — Show or hide the full checklist, keeping only the grade and verdict if preferred
Who Is This For?
This indicator is built for traders who:
• Follow the ICT / Zeussy / Frank369 methodology
• Trade NQ, ES, YM (Nasdaq, S&P 500, Dow Jones futures)
• Struggle with overtrading or taking setups that don’t fully meet their criteria
• Want a systematic, rule-based approach to trade execution
• Are committed to improving their trading psychology and discipline
Final Note
Knowing when NOT to trade is just as important as knowing when to trade.
Most traders focus all their energy on finding entries. But the best traders know that patience and selectivity are what separate consistent profitability from blown accounts. Trade Grader is your accountability partner — sitting on your chart every session, reminding you of your rules, and making sure you only pull the trigger when everything lines up.
Grade A and above only. Everything else is noise.
Indicador

Indicador

Smart Money Trend Engine
WHAT IT DOES
Smart Money Trend Engine (SMTE) is a fully original all-in-one indicator
built in Pine Script v6 that combines institutional Smart Money Concepts
with a dynamic trend coloring system. Instead of using separate indicators
for trend direction and market structure, SMTE displays everything on a
single clean overlay: bar colors change based on confirmed structural
breaks, the background reflects the active trend phase, and Smart Money
elements (BOS, CHoCH, Order Blocks, FVG, Liquidity Sweeps) are layered
on top in a way that is readable and not cluttered.
The result is a chart that tells a complete institutional story at a
glance where the trend is, where it changed, where institutions were
active, and where the next likely reaction zones are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES IT ORIGINAL
Most trend-coloring indicators use moving average crossovers to determine
bar color. SMTE uses a fundamentally different approach: bar color is
driven by confirmed Smart Money structure breaks (BOS), not by price
position relative to a moving average. This means the color change is
tied to institutional order flow logic, not to a lagging indicator.
Three original components separate SMTE from existing public scripts:
1. Structure-driven bar coloring
Bars turn green when a bullish Break of Structure (BOS) is confirmed.
Bars turn red when a bearish BOS is confirmed. The color persists
until the next structural event, making the trend state visually
stable and easy to read even across long periods. Unlike EMA-based
coloring, the color does not flicker on every candle.
2. Intelligent CHoCH detection
A Change of Character (CHoCH) is only marked when the market
genuinely reverses after a confirmed trend — not on every first BOS
after a pullback. The indicator tracks consecutive BOS counts in each
direction and only triggers CHoCH after a real directional shift.
The CHoCH candle is colored orange to stand out from the green/red
trend bars, giving traders an immediate visual warning of a potential
trend change without constant false signals.
3. BOS streak counter
The dashboard tracks how many consecutive bullish or bearish BOS
events have occurred. Two or more BOS in the same direction confirms
a genuine trend. One BOS alone is treated as a potential structure
break but not yet confirmed. This filter significantly reduces the
number of false trend signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE FOUR VISUAL LAYERS
Layer 1 Bar and Background Color
Green bars and green background: confirmed bullish BOS. Institutions
are breaking upward structure. Price is in a bullish trend phase.
Red bars and red background: confirmed bearish BOS. Institutional
selling pressure is dominant and structure is breaking downward.
Orange bars (single candle only): CHoCH detected. This is the exact
candle where the market changed character. High alert moment.
Layer 2 Smart Money Structure
BOS lines (blue dashed for bullish, red dashed for bearish) connect
the structural pivot to the current bar, showing exactly where the
break occurred. CHoCH labels appear in orange and only when the trend
genuinely reverses. Labels are kept small and positioned away from
price to avoid visual clutter.
Layer 3 — Order Blocks and FVG
Bullish Order Blocks (green boxes) mark demand zones where institutions
previously accumulated long positions. Bearish Order Blocks (red boxes)
mark supply zones. Box height is ATR-based for precision. Fair Value
Gaps (FVG) are shown as thin shaded areas between candles where price
left an imbalance — these often act as magnet zones for future price
retracement.
Layer 4 — Liquidity Sweeps
Blue water drop labels appear when price wicks below a recent low and
closes back above (bullish sweep). Red drops appear when price wicks
above a recent high and closes back below (bearish sweep). These mark
moments where stop-losses were hunted before a potential reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
Step 1 — Read the bar color
Green bars mean the last confirmed structural event was a bullish BOS.
Red bars mean the last confirmed structural event was a bearish BOS.
Stay with the color. Trade in the direction of the dominant color and
avoid counter-trend positions unless a CHoCH appears.
Step 2 Watch for CHoCH
A single orange candle means CHoCH. This is the earliest warning that
the trend may be changing. Do not immediately reverse — wait for
confirmation from the next BOS in the new direction. CHoCH alone is
a warning, not a signal.
Step 3 — Count BOS streaks
Check the Dashboard for Bull BOS and Bear BOS counters. Two or more
BOS in a row in the same direction confirms a genuine trend. One BOS
is fragile and easily reversed. Trade with higher conviction when the
streak counter shows 2 or more.
Step 4 — Use Order Blocks for entries
When price returns to a green Order Block in a bullish trend (green
bars), that is a high-probability demand zone. When price returns to
a red Order Block in a bearish trend (red bars), that is a supply zone.
Use these for precise entry planning rather than chasing breakouts.
Step 5 — Combine with FVG and Sweeps
A liquidity sweep followed by a CHoCH followed by a new BOS in the
opposite direction is the highest quality reversal setup this indicator
can show. All three elements aligning is rare and significant.
FVG zones often act as the first target after a sweep and CHoCH.
Step 6 — Read the Dashboard
SMC Bias shows the current structural direction. Last Event shows the
most recent structural event. Bull BOS and Bear BOS counters show
streak strength. Liq Sweep and FVG show real-time status of the
current bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CALCULATION LOGIC
BOS detection:
Pivot high confirmed = ta.pivothigh(high, ms_len, ms_len)
Pivot low confirmed = ta.pivotlow(low, ms_len, ms_len)
Bull BOS = new pivot high > previous pivot high
Bear BOS = new pivot low < previous pivot low
CHoCH logic:
bull_choch = bull_bos AND previous trend was bearish AND bear_count >= 1
bear_choch = bear_bos AND previous trend was bullish AND bull_count >= 1
(Requires at least one confirmed BOS in the opposite direction first)
BOS streak counter:
bull_count increments on each bull_bos, resets to 0 on bear_bos
bear_count increments on each bear_bos, resets to 0 on bull_bos
Bar coloring:
Green = last bull_bos (not CHoCH)
Red = last bear_bos (not CHoCH)
Orange = CHoCH candle only (single bar)
Order Block height:
zone_center = (high + low) / 2 at pivot bar
zone_top = zone_center + ATR(14) x 0.25
zone_bot = zone_center - ATR(14) x 0.25
Fair Value Gap:
bull_fvg = low - high > 0 AND gap_size / close >= min_pct
bear_fvg = low - high > 0 AND gap_size / close >= min_pct
Liquidity Sweep:
bull_sweep = low < lowest(low, N) AND close > that level AND close < that level
bear_sweep = high > highest(high, N) AND close < that level AND close > that level
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS OVERVIEW
Trend Colors:
Fast EMA, Slow EMA, Trend EMA — reference lines on chart
Show EMA lines — toggle EMA display
Show background — toggle trend background coloring
Background opacity — how transparent the background is (80-97)
Smart Money:
Pivot length — bars used for structural pivot detection (default 20)
Show BOS / CHoCH — toggle structure labels and lines
Show Order Blocks — toggle demand/supply zones
OB lookback — pivot length for Order Block detection
Show Fair Value Gaps — toggle FVG boxes
Min FVG size (%) — minimum gap size to display
Show Liq Sweeps — toggle liquidity sweep markers
Sweep lookback — bars used to identify significant highs and lows
Dashboard:
Show Dashboard — toggle info panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS INCLUDED
Bullish CHoCH detected
Bearish CHoCH detected
Bullish Liquidity Sweep
Bearish Liquidity Sweep
Strong Buy: CHoCH plus Sweep aligned bullish
Strong Sell: CHoCH plus Sweep aligned bearish
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPATIBILITY
Works on all assets — Crypto, Forex, Stocks, Futures, Indices.
Works on all timeframes.
Best results on 1H, 4H, and Daily for swing trading.
For scalping use 5m to 15m with reduced pivot length (8 to 12).
No repainting. All signals calculated on confirmed bar close.
No request.security() calls. No lookahead bias.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is provided for educational and informational purposes
only. It does not constitute financial advice or a recommendation to
buy or sell any asset. Smart Money Concepts are a trading methodology
and not a guarantee of market direction. Past structural patterns do
not guarantee future price behavior. Always apply your own analysis,
use proper risk management, and never risk more capital than you can
afford to lose. The author is not responsible for any trading losses
incurred from use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Indicador
