Adaptive Rolling Quantile Bands [CHE] Adaptive Rolling Quantile Bands
Part 1 — Mathematics and Algorithmic Design
Purpose. The indicator estimates distribution‐aware price levels from a rolling window and turns them into dynamic “buy” and “sell” bands. It can work on raw price or on *residuals* around a baseline to better isolate deviations from trend. Optionally, the percentile parameter $q$ adapts to volatility via ATR so the bands widen in turbulent regimes and tighten in calm ones. A compact, latched state machine converts these statistical levels into high-quality discretionary signals.
Data pipeline.
1. Choose a source (default `close`; MTF optional via `request.security`).
2. Optionally compute a baseline (`SMA` or `EMA`) of length $L$.
3. Build the *working series*: raw price if residual mode is off; otherwise price minus baseline (if a baseline exists).
4. Maintain a FIFO buffer of the last $N$ values (window length). All quantiles are computed on this buffer.
5. Map the resulting levels back to price space if residual mode is on (i.e., add back the baseline).
6. Smooth levels with a short EMA for readability.
Rolling quantiles.
Given the buffer $X_{t-N+1..t}$ and a percentile $q\in $, the indicator sorts a copy of the buffer ascending and linearly interpolates between adjacent ranks to estimate:
* Buy band $\approx Q(q)$
* Sell band $\approx Q(1-q)$
* Median $Q(0.5)$, plus optional deciles $Q(0.10)$ and $Q(0.90)$
Quantiles are robust to outliers relative to means. The estimator uses only data up to the current bar’s value in the buffer; there is no look-ahead.
Residual transform (optional).
In residual mode, quantiles are computed on $X^{res}_t = \text{price}_t - \text{baseline}_t$. This centers the distribution and often yields more stationary tails. After computing $Q(\cdot)$ on residuals, levels are transformed back to price space by adding the baseline. If `Baseline = None`, residual mode simply falls back to raw price.
Volatility-adaptive percentile.
Let $\text{ATR}_{14}(t)$ be current ATR and $\overline{\text{ATR}}_{100}(t)$ its long SMA. Define a volatility ratio $r = \text{ATR}_{14}/\overline{\text{ATR}}_{100}$. The effective quantile is:
Smoothing.
Each level is optionally smoothed by an EMA of length $k$ for cleaner visuals. This smoothing does not change the underlying quantile logic; it only stabilizes plots and signals.
Latched state machines.
Two three-step processes convert levels into “latched” signals that only fire after confirmation and then reset:
* BUY latch:
(1) HLC3 crosses above the median →
(2) the median is rising →
(3) HLC3 prints above the upper (orange) band → BUY latched.
* SELL latch:
(1) HLC3 crosses below the median →
(2) the median is falling →
(3) HLC3 prints below the lower (teal) band → SELL latched.
Labels are drawn on the latch bar, with a FIFO cap to limit clutter. Alerts are available for both the simple band interactions and the latched events. Use “Once per bar close” to avoid intrabar churn.
MTF behavior and repainting.
MTF sourcing uses `lookahead_off`. Quantiles and baselines are computed from completed data only; however, any *intrabar* cross conditions naturally stabilize at close. As with all real-time indicators, values can update during a live bar; prefer bar-close alerts for reliability.
Complexity and parameters.
Each bar sorts a copy of the $N$-length window (practical $N$ values keep this inexpensive). Typical choices: $N=50$–$100$, $q_0=0.15$–$0.25$, $k=2$–$5$, baseline length $L=20$ (if used), adaptation strength $s=0.2$–$0.7$.
Part 2 — Practical Use for Discretionary/Active Traders
What the bands mean in practice.
The teal “buy” band marks the lower tail of the recent distribution; the orange “sell” band marks the upper tail. The median is your dynamic equilibrium. In residual mode, these tails are deviations around trend; in raw mode they are absolute price percentiles. When ATR adaptation is on, tails breathe with regime shifts.
Two core playbooks.
1. Mean-reversion around a stable median.
* Context: The median is flat or gently sloped; band width is relatively tight; instrument is ranging.
* Entry (long): Look for price to probe or close below the buy band and then reclaim it, especially after HLC3 recrosses the median and the median turns up.
* Stops: Place beyond the most recent swing low or $1.0–1.5\times$ ATR(14) below entry.
* Targets: First scale at the median; optional second scale near the opposite band. Trail with the median or an ATR stop.
* Symmetry: Mirror the rules for shorts near the sell band when the median is flat to down.
2. Continuation with latched confirmations.
* Context: A developing trend where you want fewer but cleaner signals.
* Entry (long): Take the latched BUY (3-step confirmation) on close, or on the next bar if you require bar-close validation.
* Invalidation: A close back below the median (or below the lower band in strong trends) negates momentum.
* Exits: Trail under the median for conservative exits or under the teal band for trend-following exits. Consider scaling at structure (prior swing highs) or at a fixed $R$ multiple.
Parameter guidance by timeframe.
* Scalping / LTF (1–5m): $N=30$–$60$, $q_0=0.20$, $k=2$–3, residual mode on, baseline EMA $L=20$, adaptation $s=0.5$–0.7 to handle micro-vol spikes. Expect more signals; rely on latched logic to filter noise.
* Intraday swing (15–60m): $N=60$–$100$, $q_0=0.15$–0.20, $k=3$–4. Residual mode helps but is optional if the instrument trends cleanly. $s=0.3$–0.6.
* Swing / HTF (4H–D): $N=80$–$150$, $q_0=0.10$–0.18, $k=3$–5. Consider `SMA` baseline for smoother residuals and moderate adaptation $s=0.2$–0.4.
Baseline choice.
Use EMA for responsiveness (fast trend shifts) and SMA for stability (smoother residuals). Turning residual mode on is advantageous when price exhibits persistent drift; turning it off is useful when you explicitly want absolute bands.
How to time entries.
Prefer bar-close validation for both band recaptures and latched signals. If you must act intrabar, accept that crosses can “un-cross” before close; compensate with tighter stops or reduced size.
Risk management.
Position size to a fixed fractional risk per trade (e.g., 0.5–1.0% of equity). Define invalidation using structure (swing points) plus ATR. Avoid chasing when distance to the opposite band is small; reward-to-risk degrades rapidly once you are deep inside the distribution.
Combos and filters.
* Pair with a higher-timeframe median slope as a regime filter (trade only in the direction of the HTF median).
* Use band width relative to ATR as a range/trend gauge: unusually narrow bands suggest compression (mean-reversion bias); expanding bands suggest breakout potential (favor latched continuation).
* Volume or session filters (e.g., avoid illiquid hours) can materially improve execution.
Alerts for discretion.
Enable “Cross above Buy Level” / “Cross below Sell Level” for early notices and “Latched BUY/SELL” for conviction entries. Set alerts to “Once per bar close” to avoid noise.
Common pitfalls.
Do not interpret band touches as automatic signals; context matters. A strong trend will often ride the far band (“band walking”) and punish counter-trend fades—use the median slope and latched logic to separate trend from range. Do not oversmooth levels; you will lag breaks. Do not set $q$ too small or too large; extremes reduce statistical meaning and practical distance for stops.
A concise checklist.
1. Is the median flat (range) or sloped (trend)?
2. Is band width expanding or contracting vs ATR?
3. Are we near the tail level aligned with the intended trade?
4. For continuation: did the 3 steps for a latched signal complete?
5. Do stops and targets produce acceptable $R$ (≥1.5–2.0)?
6. Are you trading during liquid hours for the instrument?
Summary. ARQB provides statistically grounded, regime-aware bands and a disciplined, latched confirmation engine. Use the bands as objective context, the median as your equilibrium line, ATR adaptation to stay calibrated across regimes, and the latched logic to time higher-quality discretionary entries.
Disclaimer
No indicator guarantees profits. Adaptive Rolling Quantile Bands is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
チャートパターン
MaxAlgo - HTF Bias TableHTF Bias Tracker
Overview
The HTF Bias Tracker is a custom indicator designed to help traders monitor higher time frame (HTF) market biases while trading on lower time frames. It provides a clear visual table displaying the bias (bullish, bearish, mixed, or neutral) based on whether the current HTF candle has broken the high or low of the previous HTF candle. Additionally, it shows the current candle's condition (bullish or bearish based on close relative to open). This tool is particularly useful for multi-timeframe analysis, allowing traders to align lower time frame entries with higher time frame trends without switching charts.
The indicator does not generate buy/sell signals but offers contextual bias information to inform trading decisions. It is built for flexibility, supporting up to 5 customizable time frames (default: 1H, 4H, Daily, Weekly, Monthly) and can be used on any chart time frame.
How It Works
For each selected higher time frame (HTF):
Bias Calculation (H/L Break Column):
The indicator checks if the current HTF candle's high has exceeded the previous HTF candle's high (bullish break) or if the low has fallen below the previous HTF candle's low (bearish break).
Bullish: Current high > previous high (no low break).
Bearish: Current low < previous low (no high break).
Mixed: Both high and low breaks occur.
Neutral: No breaks yet. In this case, the text is colored based on the last completed break from the prior candle (green for bullish, red for bearish, orange for mixed) to maintain context.
Candle Condition (Candle Column):
Determines if the current HTF candle is bullish (close > open) or bearish (close <= open).
The results are displayed in a table with arrows (↑ for bullish, ↓ for bearish, ↔ for mixed) and color-coded text for quick readability.
The bias updates in real-time as the HTF candle develops, but final confirmation occurs at the HTF candle close.
This logic is rooted in price action principles: breaking a previous candle's extreme often indicates momentum. For example, historical data across various markets shows that when a candle takes the low of the previous candle, there's approximately a 70% probability it closes bearish (and vice versa for highs closing bullish). This can help gauge the likelihood of trend continuation, but results vary by asset, time frame, and market conditions—always backtest for your setup.
Features
Customizable Time Frames: Select up to 5 HTFs via inputs (e.g., "60" for 1H, "D" for Daily). Leave blank to disable.
Table Display: A compact table shows TF, H/L Break bias, and Candle condition. Includes headers for clarity.
Visual Enhancements: Color-coded text (green for bullish, red for bearish, orange for mixed, gray for neutral without prior bias). Arrows provide at-a-glance direction.
User Options:
Table Background Color: Adjust transparency and color for better visibility.
Table Position: Choose from 9 positions (e.g., Bottom Right default).
Border Width (Padding): Increase for more spacing around the table (min 0).
No Overlays: The indicator appears as a non-overlay pane, keeping your chart clean.
Supports all symbols and time frames, but best on lower TFs (e.g., 1m-15m) for monitoring HTFs.
How to Use It
Add to Chart: Search for "HTF Bias Tracker" in TradingView's indicator library and add it to your chart.
Configure Inputs: Set your desired HTFs, position, and colors.
Interpret the Table:
Look for alignment across multiple HTFs (e.g., multiple "Bullish ↑" biases suggest upward momentum).
Use the H/L Break as a directional filter: Enter long trades only when HTF bias is bullish or neutral with a prior bull break.
Combine with Candle Condition for confirmation: A bearish bias with a bearish candle might signal short opportunities.
Trading Example:
On a 1m chart, if the 1H bias shows "Bearish ↓" (low of previous 1H broken), there's ~70% chance the 1H closes lower. Wait for lower TF pullbacks to enter shorts, aligning with the HTF downtrend.
For scalping: If Daily is "Bullish ↑" but 4H is "Neutral ↓" (prior bear break), consider fading minor pullbacks but avoid counter-trend trades.
Risk Management: Always use stop-losses based on recent highs/lows and position size appropriately. This indicator aids bias assessment but should be combined with other tools like support/resistance or oscillators.
Strategy Ideas:
Trend Alignment: Trade in the direction of the majority HTF biases.
Breakout Confirmation: When a break occurs, monitor for volume or price action confirmation on your trading TF.
Reversion Plays: In ranging markets, a "Mixed ↔" bias might signal indecision—avoid trades until resolution.
Backtest the probability edge (e.g., via Pine Script strategies) to quantify performance in your markets.
Limitations and Disclaimer
The ~70% probability mentioned is a general observation from historical price action studies (e.g., across forex and indices); it is not a guarantee and should be verified with your own data. No backtesting results are provided here—users are encouraged to test independently.
The indicator relies on request.security() for HTF data, which may have minor delays in real-time.
This is not financial advice. Trading involves risk, and past performance does not predict future results. Use at your own discretion and consult a professional advisor if needed.
STBBT 📘 STBBT (Simple Two Bar Break Through)
Overview
STBBT plots breakout signals whenever the current bar breaks above or below the previous bar’s high/low.
It is a **simple and transparent breakout indicator**, designed to highlight every breakout event without complex filters.
If both directions are broken in the same bar, both signals are shown.
- "H" → Current bar’s high > Previous bar’s high
- "L" → Current bar’s low < Previous bar’s low
- Both can appear simultaneously on the same candle
---
Key Features
1. **Clear Breakout Logic**
• Detects when price moves beyond the previous candle’s range.
• High and Low breakouts are handled separately.
2. **Confirmation Options**
• Real-time mode: signals appear intrabar as soon as break occurs.
• Close-confirmation mode: signals appear only after bar close beyond previous high/low (reduces repainting).
3. **Visualization**
• "H" label above bars when high is broken.
• "L" label below bars when low is broken.
• Labels are gray with 60% transparency for a clean look.
• Optional guide lines for previous bar’s high/low.
4. **Dual Signal Support**
• If both high and low are broken in one bar, both H and L are displayed.
5. **Alerts**
• Alerts are available for both High and Low breakouts.
• Works in both real-time and close-confirmed modes.
---
How to Use
• Add STBBT to your TradingView chart.
• Choose between real-time or close-confirmed signals.
• Watch for H and L signals to identify momentum breakouts of the previous bar.
• Combine with other filters (trend, volume, higher timeframe) for stronger confirmation.
---
👉 In short:
**STBBT highlights simple, clean breakouts of the previous bar’s range.**
It shows H for high breaks, L for low breaks, and both if a candle breaks in both directions.
Hitu - MTF High/Low Marker
This indicator is a powerful tool for traders, designed to display the high and low levels from multiple significant timeframes directly on your chart. It helps you quickly identify key support, resistance, and liquidity levels at a glance, improving your understanding of the market structure.
Key Features:
* Multi-Timeframe Support: Visualize high and low levels from Monthly, Weekly, Daily, 4H, 1H, 15M, and 5M timeframes.
* Full Customization: Each timeframe's line can be customized with your preferred color and style (Solid, Dashed, or Dotted) directly from the settings.
* Toggle On/Off: You have complete control to enable or disable any timeframe level to match your specific trading strategy.
How It Helps:
The MTF High/Low Marker simplifies the process of finding crucial price zones. By seeing key highs and lows from higher timeframes on your current chart, you can make more informed decisions about your entries, exits, and overall risk management.
Market Imbalance Tracker (Inefficient Candle + FVG)# 📊 Overview
This indicator combines two imbalance concepts:
• **Squared Up Points (SUP)** – midpoints of large, "inefficient" candles that often attract price back.
• **Fair Value Gaps (FVG)** – 3-candle gaps created by strong impulse moves that often get "filled."
Use them separately or together. Confluence between a SUP line and an FVG boundary/midpoint is high-value.
---
# ⚡ Quick Start (2 minutes)
1. **Add to chart** → keep defaults (Percentile method, 80th percentile, 100-bar lookback).
2. **Watch** for dashed SUP lines to print after large candles.
3. **Toggle Show FVG** → see green/red boxes where gaps exist.
4. **Turn on alerts** → New SUP created, SUP touched, New FVG.
5. **Trade the reaction** → look for confluence (SUP + FVG + S/R), then manage risk.
---
# 🛠 Features
## 🔹 Squared Up Points (SUP)
• **Purpose:** Midpoint of a large candle → potential support/resistance magnet.
• **Detection:** Choose *Percentile* (adaptive) or *ATR Multiple* (absolute).
• **Validation:** Only plots if the preceding candle does not touch the midpoint (with tolerance).
• **Lifecycle:** Line auto-extends into the future; it's removed when touched or aged out.
• **Visual:** Horizontal dashed line (color/width configurable; style fixed to dashed if not exposed).
## 🔹 Fair Value Gaps (FVG)
• **Purpose:** 3-candle gaps from an impulse; price often revisits to "fill."
• **Detection:** Requires a strong directional candle (Marubozu threshold) creating a gap.
• **Types:**
- **Bullish FVG (Green):** Gap below; expectation is downward fill.
- **Bearish FVG (Red):** Gap above; expectation is upward fill.
• **Close Rules (if implemented):**
- *Full Fill:* Gap closes when the opposite boundary is tagged.
- *Midpoint Fill:* Gap closes when its midpoint is tagged.
• **Visual:** Colored boxes; optional split-coloring to emphasize the midpoint.
> **Note:** If a listed FVG option isn't visible in Inputs, you're on a lighter build; use the available switches.
---
# ⚙️ Settings
## SUP Settings
• **Candle Size Method:** Percentile (top X% of recent ranges) or ATR Multiple.
• **Candle Size Percentile:** e.g., 80 → top 20% largest candles.
• **ATR Multiple & Period:** e.g., 1.5 × ATR(14).
• **Percentile Lookback:** Bars used to compute percentile.
• **Lookback Period:** How long SUP lines remain eligible before auto-cleanup.
• **Touch Tolerance (%):** Buffer based on the inefficient candle's range (0% = exact touch).
## Line Appearance
• **Line Color / Width:** Customizable.
• **Style:** Dashed (fixed unless you expose a style input).
## FVG Settings (if present in your build)
• **Show FVG:** On/Off.
• **Close Method:** Full Fill or Midpoint.
• **Marubozu Wick Tolerance:** Max wick % of the impulse bar.
• **Use Split Coloring:** Two-tone box halves around midpoint.
• **Colors:** Bullish/Bearish, and upper/lower halves (if split).
• **Max FVG Age:** Auto-remove older gaps.
---
# 📈 How to Use
## Trading Applications
• **SUP Lines:** Expect reaction on first touch; use as S/R or profit-taking magnets.
• **FVG Fills:** Price frequently tags the midpoint/boundary before continuing.
• **Confluence:** SUP at an FVG midpoint/boundary + higher-timeframe S/R = higher quality.
• **Bias:** Clusters of unfilled FVGs can hint at path of least resistance.
## Best Practices
• **Timeframe:** HTFs for swing levels, LTFs for execution.
• **Volume:** High volume at level = stronger signal.
• **Context:** Trade with broader trend or at least avoid counter-trend without confirmation.
• **Risk:** Always pre-define invalidation; structures fail in chop.
---
# 🔔 Alerts
• **New SUP Created** – When a qualifying inefficient candle prints a SUP midpoint.
• **SUP Touched/Invalidated** – When price touches within tolerance.
• **New FVG Detected** – When a valid gap forms per your rules.
> **Tip:** Set alerts *Once Per Bar Close* on HTFs; *Once* on LTFs to avoid noise.
---
# 🧑💻 Technical Notes
• **Percentile vs ATR:** Percentile adapts to volatility; ATR gives consistency for backtesting.
• **FVG Direction Logic:** Gap above price = bearish (expect up-fill); below = bullish (expect down-fill).
• **Performance:** Limits on lines/boxes and auto-aging keep things snappy.
---
# ⚠️ Limitations
• Imbalances are **context tools**, not signals by themselves.
• Works best with trend or clear impulses; expect noise in narrow ranges.
• Lower-timeframe gaps can be plentiful and lower quality.
---
# 📌 Version & Requirements
• **Pine Script v6**
• Heavy drawings may require **TradingView Pro** or higher (object limits).
---
*For best results, combine with your existing trading strategy and proper risk management.*
Fear & Greed Oscillator — LEAP Puts (v6, manual DMI/ADX)Fear & Greed Oscillator — LEAP Puts (v6, manual DMI/ADX) is a Puts-focused mirror of the Calls version, built to flag top risk and momentum rollovers for timing LEAP Put entries. It outputs a smoothed composite from −100 to +100 using slower MACD, manual DMI/ADX (Wilder), RSI and Stoch RSI extremes, OBV distribution vs. accumulation, and volume spike & direction, with optional Put/Call Ratio and IV Rank inputs. All thresholds, weights, and smoothing match the Calls script for 1:1 customization, and a component table shows what’s driving the score. Reading is simple: higher values = rising top-risk (red shading above “Top-Risk”); lower values = deep dip / bounce risk (green shading). Built-in alerts cover Top-Risk, Deep Dip, and zero-line crosses for clear, actionable cues.
Volume Weighted Average Price HPSIt helps you to get to know about the volume basis on monthly , yearly and so on.
Killzones High/Low [FD] - ITADESCRIPTION ENGLISH - ITALIAN
Killzones High/Low - ITA - Indicator Description
Advanced Pine Script v5 indicator designed for ICT (Inner Circle Trader) strategies that identifies trading killzones, key support/resistance levels and midnight prices with granular controls for every element.
SETTINGS
General controls that affect all indicator elements:
Session Drawings Limit (1): Determines how many historical sessions to keep on chart for each element type. Higher values show more history but may slow performance
Timeframe Limit (30): Drawings disappear on timeframes equal or higher to avoid visual overload
Time Zone: Select reference timezone for sessions. America/New_York automatically adjusts for daylight saving, GMT options are fixed
Label Size: Controls global size of all labels (from Tiny to Huge)
Drawings Cutoff Time: Stops extension of all pivots at specified time (useful for end of trading day)
KILLZONES
Manages critical trading sessions with colored boxes and pivot lines:
General Controls
Show Boxes/Text: Enables visualization and texts in session boxes
Transparency: Controls opacity of boxes and text (0=opaque, 100=transparent)
Available Sessions
Five configurable sessions with individual controls for enabling, custom text, times and colors:
Asia (18:00-00:00): Blue by default
London (02:30-05:30): Red by default
N.Y. AM (07:00-11:30): Green by default
Lunch (11:30-13:00): Golden yellow, enabled by default
N.Y. PM (13:00-16:00): Purple by default
PDH / PDL
Manages Previous Day High and Previous Day Low levels:
Show PDH/PDL: Enables previous day's maximum/minimum
Extension: "Until Mitigation" (stops when broken) or "Most Recent Candle" (continues always)
Colors/Thickness: Visual customization of lines (dark purple by default, 1px thickness)
Labels: Shows "PDH"/"PDL" texts with customizable color (white by default)
PWH / PWL
Manages Previous Week High and Previous Week Low levels:
Show PWH/PWL: Enables previous week's maximum/minimum
Extension: Independent control of line extension
Colors/Thickness: Orange by default for both, 2px thickness
Labels: Configurable "PWH"/"PWL" texts
PMH / PML
Manages Previous Month High and Previous Month Low levels:
Show PMH/PML: Enables previous month's maximum/minimum using security()
Extension: Independent control like other systems
Colors/Thickness: Blue by default for both, 1px thickness
Labels: Customizable "PMH"/"PML" texts
MIDNIGHT PRICE LEVEL
Advanced system for multiple midnight prices:
Base Controls
Show Midnight Price: Enables line at pre-00:00 closing price (ICT strategy)
Midnight -2/-3 Days: Extends system to 2 and 3 days prior
Extension/Mitigation: "Until Mitigation" or "Most Recent Candle" with "Once" or "Multiple" mode
Customization
Separate Colors: D-1, D-2, D-3 with progressive transparency (gold by default)
Style/Thickness: Customizable lines (Solid, Dotted, Dashed)
Labels: Configurable texts (🌙1, 🌙2, 🌙3) with customizable background/text colors
Alerts: Alerts when mitigated during active killzones
KILLZONE LEVEL
Controls pivot lines and killzone labels:
Line Controls
Show Lines: Enables horizontal lines on killzone highs/lows
Break Alerts: Alerts when pivots are exceeded
Midpoints: Dashed lines at range center with stop option after mitigation
Label Offset: Moves labels ahead by 5 candles (0-20 configurable), rejoining when mitigated
Label Controls
Text Customization: Configurable labels for each session (Asia_H/L, London_H/L, etc.)
Background/Colors: Transparent or visible labels with customizable colors
Broken Labels: Additional text (❌ by default) and special colors when pivots mitigated
Extension: "Until Mitigation" or "Beyond Mitigation" with session filter ("Most Recent" or "All")
LABEL STYLES
Four dedicated sections to customize label graphic shapes:
Killzone Line Label Styles: Separate controls for killzone High/Low
PDH/PDL Label Styles: Customizable shapes for Previous Day levels
PWH/PWL Label Styles: Customizable shapes for Previous Week levels
PMH/PML Label Styles: Customizable shapes for Previous Month levels
Each section offers 15+ shape options (Arrows, Center, Circle, Square, Diamond, Triangles, Crosses, Flags, etc.)
MIDNIGHT LINES
System for vertical lines at 00:00:
Show Lines/Labels: Vertical lines with upward arrow labels
Customization: Color (gray by default), style, thickness of vertical lines
Labels: Configurable text ("00:00" by default) with customizable text color (black by default)
Label Offset: Percentage control (-10000% to +10000%) for vertical positioning
Extension: Configurable directions (None, Above, Below, Both)
Limit: Maximum number of lines maintained (4 by default, max 50)
The indicator offers granular control over every visual and functional aspect, making it possible to adapt it to any ICT trading strategy or personal setup.
---ITALIANO---
Killzones High/L ow - ITA
Indicatore avanzato per Pine Script v5 progettato per strategie ICT (Inner Circle Trader) che identifica killzones di trading, livelli chiave di supporto/resistenza e prezzi di mezzanotte con controlli granulari per ogni elemento.
IMPOSTAZIONI
Controlli generali che influenzano tutti gli elementi dell'indicatore:
-Limite Disegni Sessione (1): Determina quante sessioni storiche mantenere sul grafico per ogni tipo di elemento. Valori più alti mostrano più cronologia ma possono rallentare le prestazioni
-Limite Timeframe (30): I disegni scompaiono su timeframe uguali o superiori per evitare sovraccarico visivo
-Fuso Orario: Seleziona il fuso di riferimento per le sessioni. America/New_York si regola automaticamente per l'ora legale, le opzioni GMT sono fisse
-Dimensione Etichette: Controlla la dimensione globale di tutte le etichette (da Minuscola a Enorme)
-Orario Limite Disegni: Ferma l'estensione di tutti i pivot all'orario specificato (utile per fine giornata di trading)
KILLZONES
Gestisce le sessioni di trading critiche con riquadri colorati e linee pivot:
Controlli Generali
-Mostra Riquadri/Testo: Abilita visualizzazione e testi nei riquadri delle sessioni
-Trasparenza: Controlla opacità di riquadri e testo (0=opaco, 100=trasparente)
Sessioni Disponibili
Cinque sessioni configurabili con controlli individuali per abilitazione, testo personalizzato, orari e colori:
Asia (18:00-00:00): Blu di default
London (02:30-05:30): Rosso di default
N.Y. AM (07:00-11:30): Verde di default
Lunch (11:30-13:00): Giallo dorato, abilitata di default
N.Y. PM (13:00-16:00): Viola di default
PDH / PDL
Gestisce i livelli Previous Day High e Previous Day Low:
-Mostra PDH/PDL: Abilita massimo/minimo del giorno precedente
-Estensione: "Fino a Mitigazione" (si ferma quando rotto) o "Candela Più Recente" (continua sempre)
-Colori/Spessore: Personalizzazione visiva delle linee (viola scuro di default, spessore 1px)
-Etichette: Mostra testi "PDH"/"PDL" con colore personalizzabile (bianco di default)
PWH / PWL
Gestisce i livelli Previous Week High e Previous Week Low:
-Mostra PWH/PWL: Abilita massimo/minimo della settimana precedente
-Estensione: Controllo indipendente dell'estensione delle linee
-Colori/Spessore: Arancione di default per entrambi, spessore 2px
-Etichette: Testi "PWH"/"PWL" configurabili
PMH / PML
Gestisce i livelli Previous Month High e Previous Month Low:
-Mostra PMH/PML: Abilita massimo/minimo del mese precedente utilizzando security()
-Estensione: Controllo indipendente come gli altri sistemi
-Colori/Spessore: Blu di default per entrambi, spessore 1px
-Etichette: Testi "PMH"/"PML" personalizzabili
MIDNIGHT PRICE LEVEL
Sistema avanzato per prezzi di mezzanotte multipli:
Controlli Base
-Mostra Midnight Price: Abilita linea al prezzo di chiusura pre-00:00 (strategia ICT)
-Midnight -2/-3 Giorni: Estende il sistema a 2 e 3 giorni precedenti
-Estensione/Mitigazione: "Fino a Mitigazione" o "Candela Più Recente" con modalità "Una Volta" o "Multipla"
Personalizzazione
-Colori separati: D-1, D-2, D-3 con trasparenza progressiva (giallo oro di default)
-Stile/Spessore: Linee personalizzabili (Solida, Punteggiata, Tratteggiata)
-Etichette: Testi configurabili (🌙1, 🌙2, 🌙3) con colori sfondo/testo personalizzabili
-Avvisi: Alert quando mitigati durante killzones attive
KILLZONE LEVEL
Controlla linee pivot e etichette delle killzones:
Controlli Linee
-Mostra Linee: Abilita linee orizzontali sui massimi/minimi delle killzones
-Avvisi Rottura: Alert quando pivot vengono superati
-Punti Medi: Linee tratteggiate al centro del range con opzione di stop dopo mitigazione
-Offset Etichette: Sposta etichette avanti di 5 candele (0-20 configurabile), ricongiungendole quando mitigate
Controlli Etichette
-Personalizzazione Testi: Etichette configurabili per ogni sessione (Asia_H/L, London_H/L, ecc.)
-Sfondo/Colori: Etichette trasparenti o visibili con colori personalizzabili
-Etichette Rotte: Testo aggiuntivo (❌ di default) e colori speciali quando pivot mitigati
-Estensione: "Fino a Mitigazione" o "Oltre Mitigazione" con filtro sessioni ("Più Recente" o "Tutte")
STILI ETICHETTE
Tre sezioni dedicate per personalizzare la forma grafica delle etichette:
-Stili Etichette Linee Killzones: Controlli separati per High/Low delle killzones
-Stili Etichette PDH/PDL: Forme personalizzabili per Previous Day levels
-Stili Etichette PWH/PWL: Forme personalizzabili per Previous Week levels
-Stili Etichette PMH/PML: Forme personalizzabili per Previous Month levels
Ogni sezione offre 15+ opzioni di forma (Frecce, Centro, Cerchio, Quadrato, Diamante, Triangoli, Croci, Bandiere, ecc.)
LINEE MEZZANOTTE
Sistema per linee verticali alle ore 00:00:
-Mostra Linee/Etichette: Linee verticali con etichette freccia verso l'alto
-Personalizzazione: Colore (grigio di default), stile, spessore delle linee verticali
-Etichette: Testo configurabile ("00:00" di default) con colore testo personalizzabile (nero di default)
-Offset Etichette: Controllo percentuale (-10000% a +10000%) per posizionamento verticale
-Estensione: Direzioni configurabili (Nessuna, Sopra, Sotto, Entrambe)
-Limite: Numero massimo linee mantenute (4 di default, max 50)
L'indicatore offre controllo granulare su ogni aspetto visivo e funzionale, rendendo possibile adattarlo a qualsiasi strategia di trading ICT o setup personale.
Timeframe Shift AlertIf the higher timeframe flips bullish, you’ll get a notification like:
“✅ Higher TF (240) just flipped from Bearish → Bullish”
• If it flips bearish, you’ll get:
“❌ Higher TF (240) just flipped from Bullish → Bearish”
Breakout Signals This indicator is a Pine Script tool for identifying potential trading opportunities using breakout signals. It provides two distinct types of breakout alerts and calculates a potential price target for one of them.
### Breakout Signal Types
* **Lowest Low Breakout:** This signal is triggered when the current bar closes above the high of the previous bar, and that previous bar had the lowest low within a user-defined lookback period. This indicates a potential bullish reversal after a short-term downtrend.
* **Highest High Breakout:** This signal occurs when the current bar's close price exceeds the highest high recorded within a specified lookback period. This pattern suggests strong bullish momentum and a potential continuation of an uptrend.
### Visuals and Alerts
The indicator helps visualize these signals on the chart by highlighting the background of entry candles. It uses a light green background for the Lowest Low Breakout and a light yellow for the Highest High Breakout. A table is displayed on the chart to show the details of the most recent Lowest Low Breakout and its calculated target. Additionally, it provides an alert feature to notify users in real time when either of the breakout conditions is met.
Supertrend -Mahesh Reddy same like in zeroda best one here all super trend doesnt work perfectly so made this one
Smart Money Windows X6Smart Money Windows 📊💰 – See where the pros hide their orders! Spot liquidity traps, smart money zones, and session kill zones before price flips. 🚀🔥
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
EdgeFlow Pullback [CHE]EdgeFlow Pullback \ — Icon & Visual Guide (Deep Dive)
TL;DR (1-minute read)
⏳ Hourglass = Pending verdict. A countdown runs from the signal bar until your Evaluation Window ends.
✔ Checkmark (green) = OK. After the evaluation window, price (HLC3) is on the correct side of the EMA144 for that signal’s direction.
✖ Cross (red) = Fail. After the evaluation window, price (HLC3) is on the wrong side of the EMA144.
▲ / ▼ Triangles = the actual PB Long/Short signal bar (sequence completed in time).
Small lime/red crosses = visual markers when HLC3 crosses EMA144 (context, not trade signals).
Orange line = EMA144 (baseline/trend filter).
T3 line color = Context signal: green when T3 is below HLC3, red when T3 is above HLC3.
Icon Glossary (What each symbol means)
1) ⏳ Hourglass — “Pending / Countdown”
Appears immediately when a PB signal fires (Long or Short).
Shows `⏳ currentBars / EvaluationBars` (e.g., `⏳ 7/30`).
The label stays anchored at the signal bar and its original price level (it does not drift with price).
During ⏳ you get no verdict yet. It’s simply the waiting period before grading.
2) ✔ Checkmark (green) — “Condition met”
Appears after the Evaluation Window completes.
Logic:
Long signal: HLC3 (typical price) is above EMA144 → ✔
Short signal: HLC3 is below EMA144 → ✔
The label turns green and text says “✔ … Condition met”.
This is rules-based grading, not PnL. It tells you if the post-signal structure behaved as expected.
3) ✖ Cross (red) — “Condition failed”
Appears after the Evaluation Window completes if the condition above is not met.
Label turns red with “✖ … Condition failed”.
Again: rules-based verdict, not a guarantee of profit or loss.
4) ▲ “PB Long” triangle (below bar)
Marks the exact bar where the 4-step Long sequence completed within the allowed window.
That bar is your signal bar for Long setups.
5) ▼ “PB Short” triangle (above bar, red)
Same as above, for Short setups.
6) Lime/Red “+” crosses (tiny cross markers)
Lime cross (below bar): HLC3 crosses above EMA144 (crossover).
Red cross (above bar): HLC3 crosses below EMA144 (crossunder).
These crosses are context markers; they’re not entry signals by themselves.
The Two Clocks (Don’t mix them up)
There are two different time windows at play:
1. Signal Window — “Max bars for full sequence”
A pullback signal (Long or Short) only fires if the 4-step sequence completes within this many bars.
If it takes too long: reset (no signal, no triangle, no label).
Purpose: avoid stale setups.
2. Evaluation Window — “Evaluation window after signal (bars)”
Starts after the signal bar. The label shows an ⏳ countdown.
When it reaches the set number of bars, the indicator checks whether HLC3 is on the correct side of EMA144 for the signal direction.
Then it stamps the signal with ✔ (OK) or ✖ (Fail).
Timeline sketch (Long example):
```
→ ▲ PB Long at bar t0
Label shows: ⏳ 0/EvalBars
t0+1, t0+2, ... t0+EvalBars-1 → still ⏳
At t0+EvalBars → Check HLC3 vs EMA144
Result → ✔ (green) or ✖ (red)
(Label remains anchored at t0 / signal price)
```
What Triggers the PB Signal (so you know why triangles appear)
LONG sequence (4 steps in order):
1. T3 falling (the pullback begins)
2. HLC3 crosses under EMA144
3. T3 rising (pullback ends)
4. HLC3 crosses over EMA144 → PB Long triangle
SHORT sequence (mirror):
1. T3 rising
2. HLC3 crosses over EMA144
3. T3 falling
4. HLC3 crosses under EMA144 → PB Short triangle
If steps 1→4 don’t complete in time (within Max bars for full sequence), the sequence is abandoned (no signal).
Lines & Colors (quick interpretation)
EMA144 (orange): your baseline trend filter.
T3 (green/red):
Green when T3 < HLC3 (price above the smoothed path; often supportive in up-moves)
Red when T3 > HLC3 (price below the smoothed path; often pressure in down-moves)
HLC3 (gray): the typical price the logic uses ( (H+L+C)/3 ).
Label Behavior (anchoring & cleanup)
Each signal creates one label at the signal bar with ⏳.
The label is position-locked: it stays at the same bar index and y-price it was born at.
After the evaluation check, the label text and color update to ✔/✖, but position stays fixed.
The indicator keeps only the last N labels (your “Show only the last N labels” input). Older ones are deleted to reduce clutter.
What You Can (and Can’t) Infer from ✔ / ✖
✔ OK: Structure behaved as intended during the evaluation window (HLC3 finished on the correct side of EMA144).
Inference: The pullback continued in the expected direction post-signal.
✖ Fail: Structure ended up opposite the expectation.
Inference: The pullback did not continue cleanly (chop, reversal, or insufficient follow-through).
> Important: ✔/✖ is not profit or loss. It’s an objective rule check. Use it to identify market regimes where your entries perform best.
Input Settings — How they change the visuals
T3 length:
Shorter → faster turns, more signals (and more noise).
Longer → smoother turns, fewer but cleaner sequences.
T3 volume factor (0–1, default 0.7):
Higher → more curvature/smoothing.
Typical sweet spot: 0.5–0.9.
EMA length (baseline) default 144:
Smaller → faster baseline, more cross events, more aggressive signals.
Larger → slower, stricter trend confirmation.
Max bars for full sequence (signal window):
Smaller → only fresh, snappy pullbacks can signal.
Larger → allows slower pullbacks to complete.
Evaluation window (after signal):
Smaller → verdict arrives quickly (less tolerance).
Larger → gives the trade more time to prove itself structurally.
Show only the last N labels:
Controls chart clutter. Increase for more history, decrease for focus.
(FYI: The “Debug” toggle exists but doesn’t draw extra overlays in this version.)
Practical Reading Flow (how to use visuals in seconds)
1. Triangles catch your eye: ▲ for Long, ▼ for Short. That’s the setup completion.
2. ⏳ label starts—don’t judge yet; let the evaluation run.
3. Watch EMA slope and T3 color for context (trend + pressure).
4. After the window: ✔/✖ stamps the outcome. Log what the market was like when you got ✔.
Common “Why did…?” Questions
Q: Why did I get no triangle even though T3 turned and EMA crossed?
A: The 4 steps must happen in order and within the Signal Window. If timing breaks, the sequence resets.
Q: Why did my label stay ⏳ for so long?
A: That’s by design until the Evaluation Window completes. The verdict only happens at the end of that window.
Q: Why is ✔/✖ different from my PnL?
A: It’s a structure check, not a profit check. It doesn’t know your entries/exits/stops.
Q: Do the small lime/red crosses mean buy/sell?
A: No. They’re context markers for HLC3↔EMA crosses, useful inside the sequence but not standalone signals.
Pro Tips (turn visuals into decisions)
Entry: Use the ▲/▼ triangle as your trigger, in trend direction (check EMA slope/market structure).
Stop: Behind the pullback swing around the signal bar.
Exit: Structure levels, R-multiples, or a reverse HLC3↔EMA cross as a trailing logic.
Tuning:
Intraday/volatile: shorter T3/EMA + tighter Signal Window.
Swing/slow: default 144 EMA + moderate windows.
Learn quickly: Filter your chart to show only ✔ or only ✖ windows in your notes; see which sessions, assets, and volatility regimes suit the system.
Disclaimer
No indicator guarantees profits. Sweep2Trade Pro \ is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Happy trading
Chervolino
TDI MTF Trend Grabber DELUXETDI MTF Trend Grabber DELUXE
2 fast MA
1 slow MA
Lot of options enjoy!
#BTMM #TR # PATTERNWATCH
20/40/60Displays three consecutive, connected range boxes showing high/low price ranges for customizable periods. Boxes are positioned seamlessly with shared boundaries for continuous price action visualization.
Features
Three Connected Boxes: Red (most recent), Orange (middle), Green (earliest) periods
Customizable Positioning: Set range length and starting offset from current bar
Individual Styling: Custom colors, transparency, and border width for each box
Display Controls: Toggle borders, fills, and line visibility
Use Cases
Range Analysis: Compare volatility across time periods, spot breakouts
Support/Resistance: Use box boundaries as potential S/R levels
Market Structure: Visualize recent price development and trend patterns
Key Settings
Range Length: Bars per box (default: 20)
Starting Offset: Bars back from current to position boxes (default: 0)
Style Options: Colors, borders, and visibility controls for each box
Perfect for traders analyzing consecutive price ranges and comparing current conditions to recent historical periods.
FVG Fusion – by EB | Smart Money ConceptsFVG Fusion – by EB is an advanced indicator based on Smart Money Concepts (SMC).
It automatically detects Fair Value Gaps (FVG) on multiple timeframes, along with key PDH/PDL (Daily Previous) and PWH/PWL (Weekly Previous) levels.
🔹 Key Features
Automatic detection of bullish and bearish FVGs
Multi-timeframe (M5 to D1)
PDH/PDL and PWH/PWL levels with lightning bolts
Configurable alerts when tapping on a FVG
Customizable colors, thicknesses, and automatic clearing.
💡 Ideal for traders who use Price Action and SMC to identify imbalances and high-probability zones.
Fano algorithmFano Algorithm is a powerful and minimalist Fair Value Gap (FVG) indicator designed for traders who follow Smart Money Concepts (SMC). Built to highlight potential areas of price inefficiency, this tool automatically detects FVGs across all timeframes and displays them cleanly on the chart – without clutter or distractions.
Core Features:
Automatic detection of Bullish and Bearish FVGs
Clean visual display with customizable color options
Alerts when price enters an FVG zone
Works on any asset and any timeframe
Optimized for precision and clarity
Fano algoritmFano Algorithm is a powerful and minimalist Fair Value Gap (FVG) indicator designed for traders who follow Smart Money Concepts (SMC). Built to highlight potential areas of price inefficiency, this tool automatically detects FVGs across all timeframes and displays them cleanly on the chart – without clutter or distractions.
Core Features:
Automatic detection of Bullish and Bearish FVGs
Clean visual display with customizable color options
Alerts when price enters an FVG zone
Works on any asset and any timeframe
Optimized for precision and clarity