SMC Structures and Multi-Timeframe FVG PYSMC Structures and Multi-Timeframe FVG Indicator
Tip: For optimal performance, adjust the number of FVGs displayed per timeframe in the settings. On high-performance devices, up to 8 FVGs per timeframe can be used without issues. If you experience slowdowns, reduce to 3 or 4 FVGs per timeframe. If the chart flashes, disable indicators one by one to identify conflicts, or try using the TradingView Mobile or Windows App for a smoother experience.
Overview
This Pine Script indicator enhances market analysis by integrating Smart Money Concepts (SMC) with Fair Value Gaps (FVG) across multiple timeframes. It identifies trend continuations (Break of Structure, BOS) and trend reversals (Change of Character, CHoCH) while highlighting liquidity zones through FVG detection. The indicator includes eight customizable Moving Average (MA) curve templates, disabled by default, to complement SMC and FVG analysis. Its originality lies in combining multi-timeframe FVG detection with SMC structure analysis, providing traders with a cohesive tool to visualize price action patterns and liquidity zones efficiently.
Features and Functionality
1. Fair Value Gaps (FVG)
The indicator detects and displays bullish, bearish, and mitigated FVGs, representing liquidity zones where price inefficiencies occur. These gaps are dynamically updated based on price action:
Bullish FVG: Displayed in green when unmitigated, indicating potential upward liquidity zones.
Bearish FVG: Displayed in red when unmitigated, signaling potential downward liquidity zones.
Mitigated FVG: Shown in gray once the gap is partially filled by price action.
Fully Mitigated FVG: Automatically removed from the chart when the gap is fully filled, reducing visual clutter.
Users can customize the number of historical FVGs displayed via the settings, allowing focus on recent liquidity zones for targeted analysis.
2. SMC Structures
The indicator identifies key SMC price action patterns:
Break of Structure (BOS): Marked with gray lines, indicating trend continuation when price breaks a significant high or low.
Change of Character (CHoCH): Highlighted with yellow lines, signaling potential trend reversals when price fails to maintain the current structure.
High/Low Values: Blue lines denote the highest high and lowest low of the current structure, providing reference points for market context.
3. Multi-Timeframe FVG Analysis
A standout feature is the ability to analyze FVGs across multiple timeframes simultaneously. This allows traders to align higher-timeframe liquidity zones with lower-timeframe entries, improving trade precision. The indicator fetches FVG data from user-selected timeframes, displaying them cohesively on the chart.
4. Moving Average (MA) Templates
The indicator includes eight customizable MA curve templates in the Settings > Template section, disabled by default. These templates allow users to overlay MAs (e.g., SMA, EMA, WMA) to complement SMC and FVG analysis. Each template is pre-configured with different periods and types, enabling quick adaptation to various trading strategies, such as trend confirmation or dynamic support/resistance.
How It Works
The script processes price action to detect FVGs by analyzing three-candle patterns where a gap forms between the high/low of the first and third candles. Multi-timeframe data is retrieved using Pine Script’s request.security() function, ensuring accurate FVG plotting across user-defined timeframes. BOS and CHoCH are identified by tracking swing highs and lows, with logic to differentiate trend continuation from reversals. The MA templates are computed using standard Pine Script TA functions, with user inputs controlling visibility and parameters.
How to Use
Add to Chart: Apply the indicator to any TradingView chart.
Configure Settings:
FVG Settings: Adjust the number of historical FVGs to display (default: 10). Enable/disable specific FVG types (bullish, bearish, mitigated).
Timeframe Selection: Choose up to three timeframes for FVG analysis (e.g., 1H, 4H, 1D) to align with your trading strategy.
Structure Settings: Toggle BOS (gray lines) and CHoCH (yellow lines) visibility. Adjust sensitivity for structure detection if needed.
MA Templates: Enable MA curves via the Template section. Select from eight pre-configured MA types and periods to suit your analysis.
Interpret Signals:
Use green/red FVGs for potential entry points targeting liquidity zones.
Monitor gray lines (BOS) for trend continuation and yellow lines (CHoCH) for reversal signals.
Align multi-timeframe FVGs with BOS/CHoCH for high-probability setups.
Optionally, use MA curves for trend confirmation or dynamic levels.
Clean Chart Usage: The indicator is designed to work standalone. Ensure no conflicting scripts are applied unless explicitly needed for your strategy.
Why This Indicator Is Unique
Unlike standalone FVG or SMC indicators, this script combines both concepts with multi-timeframe analysis, offering a comprehensive view of market structure and liquidity. The addition of customizable MA templates enhances flexibility, while the dynamic removal of mitigated FVGs keeps the chart clean. This mashup is purposeful, as it integrates complementary tools to streamline decision-making for traders using SMC strategies.
Credits
This indicator builds on foundational SMC and FVG concepts from the TradingView community. Some open-source code was reused, and do performance enhancement as you guys can read the code. This type of indicators has inspiration was drawn from public domain SMC methodologies. All code is partly original with manual work on performance optimization in Pine Script.
Notes
Ensure your chart is clean (no unnecessary drawings or indicators) to maximize clarity.
The indicator is open-source, and traders are encouraged to review the code for deeper understanding.
For optimal use, test the indicator on a demo account to familiarize yourself with its signals.
インジケーターとストラテジー
Key Session Levels | Highs, Lows, OpensOverview
Designed for scalping and intraday trading on ES, NQ, and other futures markets that trade around the clock, this indicator automatically plots key support/resistance levels:
Session opens
Session highs
Session lows
Overnight highs
Overnight lows
Session Definitions (America/New_York Time)
Session (18:00 - 16:59 ET)
Tracks complete trading cycle
Plots: High, Low
Represents true daily extremes of each session
Overnight Session (18:00 - 9:30 ET)
Captures Asian and European session price action
Plots: Open, High, Low
These levels can act as support/resistance during the NY session
NY Session (9:30 - 16:59 ET)
Optional background highlight for regular trading hours
Helps visually distinguish active NY session from overnight action
Key Features
Flexible Extension Modes
Same Day: Lines end at session close
Next Day: Lines extend through the following session
Full Chart: Lines extend indefinitely to the right
Smart Line Management
Optional extension of overnight levels through NY session
Control how many historical sessions to display (1-250)
Automatic cleanup of old lines
Full Customization
Individual color control for each level
Line style options (solid, dotted, dashed)
Line width adjustment (1px-4px)
Show/hide any level independently
Common Use Cases
Support/Resistance
Breakout/Break & Retest
Strategy
Wait for price to reach a key level
Use Level 2 data to determine who's in control at the level (e.g. aggressive buyers vs. passive sellers) *this requires third-party software and a live data feed
Enter long/short WITH institutional players, identified via Level 2 data
Target areas/levels where the market may reverse
Best Timeframes
Works on any intraday timeframe, optimized for: 1m, 5m, 15m, 30m, 1H
Notes
All times are in America/New_York (Eastern Time)
Requires intraday timeframe to detect specific session times
Lines are semi-transparent by default for better chart visibility
Optimum EMAs x3Function Review
Optimum EMAs x3 scores EMA-price reactions via bullish/bearish percentages. Plots test (purple), bull/bear fast/medium/slow EMAs with toggles/individual colors, three adjustable gradient fills, and reaction table for multi-band analysis.
Usage Write-Up
Set fast (5-15), medium (10-20), slow (15-30) ranges per strategy. Test values via Test EMA for peak scores. Input optima to bull/bear fast/medium/slow for reactive three-band envelope (bullish supports, bearish resistances), refining signals in varied trends.
Market Structure Signals (HH/HL/LH/LL) - PreciseShows higher highs, higher lows, lower highs and lower lows for an easier visual understanding of price structure
Parabolic SAR MTF LinesThe indicator shows the Parabolic SAR sign (price above or below the indicator) for several timeframes at once. You can see at a glance how the price is trending across higher and lower timeframes.
Note that, for lower timeframes, the line becomes yellow to the left because history is limited and there are not enough bars to calculate.
Other features (can be enabled in settings):
* each line can be enabled or disabled individually, so that unused ones can be hidden.
* simple trend detection based on the number of bullish and bearish timeframes; threshold can be changed in Settings.
* "Score" output: counting the net number of bullish and bearish timeframes
* "Trend" output: changes to bullish or bearish as the score goes over or under the threshold
* background color (green or red according to trend).
* alert for trend change.
* another alert with a separate threshold score for flexibility.
* score weights for further customization of trend detection and alerts. Input parameters are set in terms of score values instead of number of lines.
* input options to choose alert modes for trend and extra alerts. The options are "once per bar close" (default), "once per bar", "every time".
This indicator was based on MACD MTF Lines where all the logic and features came from.
MomentumQ Sector MatrixMomentumQ Sector Matrix — Multi-Timeframe & Sector Performance Dashboard
The MomentumQ Sector Matrix is a professional dashboard-style indicator designed to help traders quickly evaluate sector performance and momentum alignment across multiple timeframes.
It provides an instant visual snapshot of how each major U.S. sector is performing, helping traders identify strength, weakness, and rotation trends without switching between charts.
What It Does
MomentumQ Sector Matrix consolidates multi-timeframe return data (1-Month, 1-Week, and 1-Day) into a clean, color-coded table.
Each sector’s cell displays percentage performance, automatically colored green or red based on relative gains or losses.
This tool serves as a sector rotation map , letting traders:
Spot which parts of the market are leading or lagging
Track momentum alignment across monthly, weekly, and daily timeframes
Instantly identify broad market conditions (risk-on vs. risk-off)
Key Features
1. Multi-Timeframe Sector Overview
Displays percentage returns for major SPDR sectors on 1-Month, 1-Week, and 1-Day bases.
Toggle between Today and PrevD (previous day) return modes.
2. Adaptive Table Layout
Fully resizable — choose Small, Medium, or Large table sizes for the best fit on your chart.
Works seamlessly with both light and dark TradingView themes.
3. Light / Dark Mode Support
Switch between modes to automatically match your chart background.
4. Performance-Based Coloring
Green for positive returns, red for negative, gray for neutral.
Provides clear visual contrast even in compact layouts.
5. Instant Market Context
Gain quick insight into overall market strength or weakness.
Ideal for top-down analysis, ETF rotation strategies, and macro confirmation.
How to Use
Add the indicator to any chart (symbol-independent).
Choose your preferred table position and size in the settings panel.
Use 1M / 1W / 1D readings to align your trading bias with higher-timeframe context.
Why It’s Valuable
Consolidates sector analysis into a single, easy-to-read dashboard
Helps identify macro trends and sector leadership quickly
Supports both swing and intraday trading approaches
Complements existing momentum or regime-tracking systems
Disclaimer
This indicator is a technical analysis tool for educational and informational purposes only.
It does not constitute financial advice and does not guarantee profitability.
Always perform your own analysis and use proper risk management.
Volume Quintiles - 10 Trading Days, Time-of-Day Awarethis logging in the last 20 trading days in the same time.
CCT Ignition Candle DetectorCCT Ignition Candle Detector
The CCT Ignition Candle Detector indicator was developed to assist traders in identifying “ignition candles” — candles that represent potential high-volatility breakout events accompanied by strong volume and a clear directional move relative to short-term trend averages.
Concept and Functionality
This indicator measures the relationship between the candle’s amplitude (difference between high and low) and the Average True Range (ATR).
The ratio between these two values provides insight into whether the current candle exhibits volatility that is statistically significant compared to its recent history.
Additionally, the indicator evaluates body strength, volume behavior, and proximity to the EMA8 (a short-term dynamic average often used to gauge immediate momentum).
When specific quantitative criteria are met, the indicator identifies the candle as a potential Ignition Candle, meaning it could mark the start of a new impulse move.
Ignition Criteria:
A candle is considered an Ignition Candle when all of the following conditions are satisfied:
Amplitude ≥ 3× ATR
Candle body ≥ 2.5% (difference between open and close relative to open)
Volume ≥ 1.3× SMA14 (volume)
Breakout of the EMA8 in the direction of the move (bullish or bearish)
When these factors align, the indicator marks the corresponding candle with a label and displays an orange highlight in the information panel.
This visual cue helps the trader immediately identify points of high energy or breakout potential in the chart.
Readings and Visual Elements
Yellow line: Candle amplitude (High–Low)
Red line: True Range (ATR)
White line: Moving average of ATR
Info panel: Displays amplitude, ATR value, volume comparison, EMA8 relation, and ignition status.
label on chart: Appears when an ignition candle is detected.
The indicator does not generate trading signals, but provides quantitative context for decision-making.
Practical Usage
Traders may use this indicator to:
Identify potential breakout zones after periods of contraction.
Confirm whether a strong candle represents true momentum or a false breakout.
Combine ignition readings with trend filters (such as higher timeframe EMA or price structure).
Evaluate the strength of reversals or continuation moves.
A common practical approach is to enter in the direction of the ignition candle once it closes,
place a protective stop below or above the candle’s body, and target 1.5–2× the initial risk.
This approach leverages volatility expansion in its early stage.
Recommended Settings:
ATR Length: 14 (default)
EMA Period: 8
Volume MA: 14
Timeframes: Works well in intraday and daily charts.
Notes:
This tool is designed as a volatility and momentum analyzer, not a buy/sell system.
It should be used together with broader market context, price structure, and volume confirmation.
It aims to standardize the interpretation of large candles, allowing the trader to objectively identify when volatility expansion is statistically relevant.
Credits:
Developed by Central CryptoTraders © 2025
Optimum EMAs x2Function Review
Optimum EMAs assesses EMA-price interactions by scoring reaction percentages for bullish/bearish touches. Creates EMA bands (top: most reactive bearish EMA as resistance; bottom: most reactive bullish EMA as support) with customizable test/bull/bear fast/slow EMAs, toggles, adjustable colors/gradients, and reaction table.
Usage Write-Up
Define fast (e.g., 5-15) and slow (e.g., 15-30) EMA ranges based on strategy. Scan with Test EMA for high reaction scores. Set optima in Bull/Bear Fast/Slow inputs to form reactive EMA bands (bullish top support, bearish bottom resistance), enhancing trend signals in bull/bear markets.
指定周期 MACustom Timeframe Moving Average (MA)
This indicator allows you to display a Moving Average from a higher or custom timeframe directly on your current chart.
📌 Features:
Choose any custom timeframe (e.g. 1H, 4H, 1D)
Supports multiple MA lengths (e.g. 20, 40, 60…)
Helps identify trend direction and key dynamic support/resistance
Ideal for multi-timeframe trading strategies
💡 Usage Example:
View 1H MA on a 5-minute chart for stronger trend confirmation
Use longer period MA as trend filter, shorter MA for entry signals
🚀 A great tool for swing traders, scalpers, and day traders who rely on multi-timeframe confluence.
TeamBull FuturesThe TeamBull Futures indicator plots key London Session and New York ORB (Opening Range Breakout) levels for intraday futures and forex trading.
London Session (03:00–09:29 ET) – Automatically tracks and plots the session’s high and low, updating in real time and extending both levels until 5:00 PM ET for clear intraday reference.
New York ORB (09:30–09:45 ET) – Marks the high, low, and 50% midpoint of the U.S. market’s opening range, visible only for the current trading day and removed after 5:00 PM ET.
This tool helps traders identify major liquidity zones and intraday breakout areas across global market sessions with clean, time-synced precision.
Liquidity Sweeps 2nd attemptLiquidity Sweeps 2nd attempt
The Liquidity Sweeps indicator detects the presence of liquidity sweeps on the user's chart, while also providing potential areas of support/resistance or entry when Liquidity levels are taken.
In the event of a Liquidity Sweep a Sweep Area is created which may provide further areas of interest.
VWAP Diario (línea negra en precio)It's just the 1D VWAP average line. It's used to determine when you're entering a bullish or bearish daily structure.
ATR% Multiple From MA - Overextensions trackingATR% Multiple From MA - Quantifiable Profit Taking Indicator
This overlay indicator identifies overextended price moves by calculating how many ATR% multiples price is away from a moving average, providing objective profit-taking signals.
Formula:
A = ATR% = (ATR / Price) × 100
B = % Gain from MA = ((Price - MA) / MA) × 100
ATR% Multiple = B / A
Signals:
Yellow circle at 7x: Start scaling out partial profits
Red circle at 10x+: Heavily overextended, aggressive profit taking recommended
Stats table: Real-time ATR% Multiple, % Gain from MA, ATR%, and action status
For very volatile markets I usually go for 10x and 15x extension instead of 7x and 10x.
This method normalizes moves across different volatility environments, eliminating emotional decision-making. Historical examples include PLTR, SOFI, TSLA, NVDA which stalled after exceeding 10x.
Customizable Settings:
ATR Length (default: 14)
MA Length (default: 50)
Profit Zone thresholds (7x, 10x)
Toggle circles and MA display
OOO Trade (By Bodinphat) V.2Description:
This indicator is an advanced trend-following system that combines multi-timeframe signals, order block zones (OB Zones), and precision-based metrics to help traders identify high-probability buy and sell opportunities.
It automatically analyzes EMA trends, RSI pullbacks, ADX strength, and volume confirmation to calculate a dynamic confidence score for both long and short directions.
The system also displays:
📊 Multi-Timeframe Trend Strip (M1 → D1) — showing each timeframe’s directional bias (Buy/Sell/Neutral).
🎯 OB Zones (Order Blocks) — highlights institutional demand (Bullish OB) and supply (Bearish OB) zones on the chart.
📋 Right-Side Info Panel — displays key metrics such as score, accuracy, SL/TP targets, and bias direction in real-time.
⚡ Session Filters — optional London/NY session filters for more accurate signal alignment.
This tool is ideal for traders who want to follow structured price action while maintaining a clear view of market strength and institutional zones.
It works best with XAUUSD, GBPUSD, and major indices on intraday or swing timeframes.
% Away from x DMA% Away from X DMA
This indicator measures how far the current price is from a chosen moving average, expressed as a percentage. It helps identify overbought/oversold conditions and
mean reversion opportunities.
How It Works:
- Calculates a Simple Moving Average (SMA) for the specified period
- Measures the percentage distance between current price and the moving average
- Positive values indicate price is above the average
- Negative values indicate price is below the average
Key Features:
- Flexible Period: Customize the moving average length (default: 200 DMA)
- Percentage-Based: Standardized measurement works across all price ranges
- Visual Clarity: Blue area plot makes deviations easy to spot
- Universal Application: Works with any asset or timeframe
Trading Applications:
- Mean Reversion: Extreme values often precede reversals back to the mean
- Trend Strength: Large positive values indicate strong uptrends
- Support/Resistance: Major moving averages act as dynamic support/resistance
- Entry Timing: Buy dips when significantly below, sell rallies when extended above
- Risk Management: Avoid entries during extreme deviations
Common Settings:
- 20 DMA: Short-term trend and swing trading
- 50 DMA: Intermediate trend analysis
- 200 DMA: Long-term trend and major support/resistance (default)
Interpretation Guidelines:
- +/-5-10%: Normal price action
- +/-10-20%: Extended move, caution warranted
- +/-20%+: Extreme deviation, high probability mean reversion setup
Ideal for swing traders, mean reversion strategies, and identifying optimal entry/exit points relative to trend.
Coinbase Premium IndexCoinbase Premium Index
This indicator tracks the price premium or discount of Bitcoin on Coinbase relative to Binance, providing insights into institutional demand and market sentiment.
How It Works:
- Compares BTC/USD price on Coinbase vs BTC/USDT on Binance
- Calculates the price differential in real-time
- Displays as a histogram with positive (green) or negative (red) values
- Offers both percentage and dollar-based views
Key Features:
- Dual Display Modes: Switch between percentage and dollar premium
- Color-Coded Histogram: Green bars indicate Coinbase premium, red bars show discount
- Real-Time Data: Uses live price feeds from both exchanges
- Clean Visualization: Easy-to-read histogram format in separate pane
Market Implications:
- Positive Premium (Green): Coinbase trading higher = potential institutional buying pressure
- Negative Premium (Red): Coinbase trading lower = possible institutional selling or retail dominance
- Magnitude Matters: Larger premiums/discounts suggest stronger sentiment shifts
- Divergence Signals: Premium changes can precede price movements
Use Cases:
- Gauge institutional vs retail sentiment
- Identify potential trend reversals
- Confirm breakout strength
- Monitor smart money flow
Settings:
- Display Mode: Choose between "Percentage" or "Dollar" view
Days Without -x% Move (Within x Days)Days Without X% Move
This indicator tracks consecutive days without a significant price drop, helping traders monitor market stability and potential risk buildup.
How It Works:
- Monitors a rolling window (default: 3 days) for the maximum drawdown
- Resets the counter when price drops by the specified percentage (default: 15%)
- Counts consecutive days where the threshold hasn't been breached
- Higher values indicate extended periods without significant corrections
Key Features:
- Configurable Drop Threshold: Set the percentage drop that resets the counter
- Adjustable Window: Define the lookback period for measuring drawdowns
- Wick Analysis: Option to include or exclude wicks in calculations
- Visual Display: Red area plot shows the current streak length
Use Cases:
- Risk management: Identify when markets are "overdue" for a correction
- Market regime analysis: Compare calm vs volatile periods
- Position sizing: Adjust exposure based on streak length
- Entry timing: Higher streak values may indicate increased correction risk
Squeeze Hour Frequency [CHE]Squeeze Hour Frequency (ATR-PR) — Standalone — Tracks daily squeeze occurrences by hour to reveal time-based volatility patterns
Summary
This indicator identifies periods of unusually low volatility, defined as squeezes, and tallies their frequency across each hour of the day over historical trading sessions. By aggregating counts into a sortable table, it helps users spot hours prone to these conditions, enabling better scheduling of trading activity to avoid or target specific intraday regimes. Signals gain robustness through percentile-based detection that adapts to recent volatility history, differing from fixed-threshold methods by focusing on relative lowness rather than absolute levels, which reduces false positives in varying market environments.
Motivation: Why this design?
Traders often face uneven intraday volatility, with certain hours showing clustered low-activity phases that precede or follow breakouts, leading to mistimed entries or overlooked calm periods. The core idea of hourly squeeze frequency addresses this by binning low-volatility events into 24 hourly slots and counting distinct daily occurrences, providing a historical profile of when squeezes cluster. This reveals time-of-day biases without relying on real-time alerts, allowing proactive adjustments to session focus.
What’s different vs. standard approaches?
- Reference baseline: Classical volatility tools like simple moving average crossovers or fixed ATR thresholds, which flag squeezes uniformly across the day.
- Architecture differences:
- Uses persistent arrays to track one squeeze per hour per day, preventing overcounting within sessions.
- Employs custom sorting on ratio arrays for dynamic table display, prioritizing top or bottom performers.
- Handles timezones explicitly to ensure consistent binning across global assets.
- Practical effect: Charts show a persistent table ranking hours by squeeze share, making intraday patterns immediately visible—such as a top hour capturing over 20 percent of total events—unlike static overlays that ignore temporal distribution, which matters for avoiding low-liquidity traps in crypto or forex.
How it works (technical)
The indicator first computes a rolling volatility measure over a specified lookback period. It then derives a relative ranking of the current value against recent history within a window of bars. A squeeze is flagged when this ranking falls below a user-defined cutoff, indicating the value is among the lowest in the recent sample.
On each bar, the local hour is extracted using the selected timezone. If a squeeze occurs and the bar has price data, the count for that hour increments only if no prior mark exists for the current day, using a persistent array to store the last marked day per hour. This ensures one tally per unique trading day per slot.
At the final bar, arrays compile counts and ratios for all 24 hours, where the ratio represents each hour's share of total squeezes observed. These are sorted ascending or descending based on display mode, and the top or bottom subset populates the table. Background shading highlights live squeezes in red for visual confirmation. Initialization uses zero-filled arrays for counts and negative seeds for day tracking, with state persisting across bars via variable declarations.
No higher timeframe data is pulled, so there is no repaint risk from external fetches; all logic runs on confirmed bars.
Parameter Guide
ATR Length — Controls the lookback for the volatility measure, influencing sensitivity to short-term fluctuations; shorter values increase responsiveness but add noise, longer ones smooth for stability — Default: 14 — Trade-offs/Tips: Use 10-20 for intraday charts to balance quick detection with fewer false squeezes; test on historical data to avoid over-smoothing in trending markets.
Percentile Window (bars) — Sets the history depth for ranking the current volatility value, affecting how "low" is defined relative to past; wider windows emphasize long-term norms — Default: 252 — Trade-offs/Tips: 100-300 bars suit daily cycles; narrower for fast assets like crypto to catch recent regimes, but risks instability in sparse data.
Squeeze threshold (PR < x) — Defines the cutoff for flagging low relative volatility, where values below this mark a squeeze; lower thresholds tighten detection for rarer events — Default: 10.0 — Trade-offs/Tips: 5-15 percent for conservative signals reducing false positives; raise to 20 for more frequent highlights in high-vol environments, monitoring for increased noise.
Timezone — Specifies the reference for hourly binning, ensuring alignment with market sessions — Default: Exchange — Trade-offs/Tips: Set to "America/New_York" for US assets; mismatches can skew counts, so verify against chart timezone.
Show Table — Toggles the results display, essential for reviewing frequencies — Default: true — Trade-offs/Tips: Disable on mobile for performance; pair with position tweaks for clean overlays.
Pos — Places the table on the chart pane — Default: Top Right — Trade-offs/Tips: Bottom Left avoids candle occlusion on volatile charts.
Font — Adjusts text readability in the table — Default: normal — Trade-offs/Tips: Tiny for dense views, large for emphasis on key hours.
Dark — Applies high-contrast colors for visibility — Default: true — Trade-offs/Tips: Toggle false in light themes to prevent washout.
Display — Filters table rows to focus on extremes or full list — Default: All — Trade-offs/Tips: Top 3 for quick scans of risky hours; Bottom 3 highlights safe low-squeeze periods.
Reading & Interpretation
Red background shading appears on bars meeting the squeeze condition, signaling current low relative volatility. The table lists hours as "H0" to "H23", with columns for daily squeeze counts, percentage share of total squeezes (summing to 100 percent across hours), and an arrow marker on the top hour. A summary row above details the peak count, its share, and the leading hour. A label at the last bar recaps total days observed, data-valid days, and top hour stats. Rising shares indicate clustering, suggesting regime persistence in that slot.
Practical Workflows & Combinations
- Trend following: Scan for hours with low squeeze shares to enter during stable regimes; confirm with higher highs or lower lows on the 15-minute chart, avoiding top-share hours post-news like tariff announcements.
- Exits/Stops: Tighten stops in high-share hours to guard against sudden vol spikes; use the table to shift to conservative sizing outside peak squeeze times.
- Multi-asset/Multi-TF: Defaults work across crypto pairs on 5-60 minute timeframes; for stocks, widen percentile window to 500 bars. Combine with volume oscillators—enter only if squeeze count is below average for the asset.
Behavior, Constraints & Performance
Logic executes on closed bars, with live bars updating counts provisionally but finalizing on confirmation; table refreshes only at the last bar, avoiding intrabar flicker. No security calls or higher timeframes, so no repaint from external data. Resources include a 5000-bar history limit, loops up to 24 iterations for sorting and totals, and arrays sized to 24 elements; labels and table are capped at 500 each for efficiency. Known limits: Skips hours without bars (e.g., weekends), assumes uniform data availability, and may undercount in sparse sessions; timezone shifts can alter profiles without warning.
Sensible Defaults & Quick Tuning
Start with ATR Length at 14, Percentile Window at 252, and threshold at 10.0 for broad crypto use. If too many squeezes flag (noisy table), raise threshold to 15.0 and narrow window to 100 for stricter relative lowness. For sluggish detection in calm markets, drop ATR Length to 10 and threshold to 5.0 to capture subtler dips. In high-vol assets, widen window to 500 and threshold to 20.0 for stability.
What this indicator is—and isn’t
This is a historical frequency tracker and visualization layer for intraday volatility patterns, best as a filter in multi-tool setups. It is not a standalone signal generator, predictive model, or risk manager—pair it with price action, news filters, and position sizing rules.
Disclaimer
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.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Thanks to Duyck
for the ma sorter
OOO Trade (By Bodinphat)Script Description (for TradingView Publish Page)
Description:
This indicator is an advanced trend-following system that combines multi-timeframe signals, order block zones (OB Zones), and precision-based metrics to help traders identify high-probability buy and sell opportunities.
It automatically analyzes EMA trends, RSI pullbacks, ADX strength, and volume confirmation to calculate a dynamic confidence score for both long and short directions.
The system also displays:
📊 Multi-Timeframe Trend Strip (M1 → D1) — showing each timeframe’s directional bias (Buy/Sell/Neutral).
🎯 OB Zones (Order Blocks) — highlights institutional demand (Bullish OB) and supply (Bearish OB) zones on the chart.
📋 Right-Side Info Panel — displays key metrics such as score, accuracy, SL/TP targets, and bias direction in real-time.
⚡ Session Filters — optional London/NY session filters for more accurate signal alignment.
This tool is ideal for traders who want to follow structured price action while maintaining a clear view of market strength and institutional zones.
It works best with XAUUSD, GBPUSD, and major indices on intraday or swing timeframes.
Disclaimer:
This indicator is for educational and informational purposes only.
It does not constitute financial advice. Please test thoroughly before using in live trading.
Hikaru BandsHikaru Bands is a volatility indicator designed to provide a view of market dynamics. Unlike traditional banding tools like Bollinger Bands, which rely solely on standard deviation, Hikaru Bands incorporate a Composite Volatility Index (UVI). This index is built from a customizable blend of up to ten different technical indicators, including momentum, trend, and risk metrics.
Core Concept & Calculation
The script first calculates the values of up to ten different technical indicators, which you can enable or disable individually. These include RSI, CCI, Sharpe Ratio, Omega Ratio, Z-Score, Rate of Change (ROC), and more. Each selected indicator's output is then normalized into a percentile rank (a scale of 0-100) to ensure they can be compared and combined effectively. Finally, the normalized values are weighted and averaged to create a single Universal Volatility Index (UVI). A high UVI suggests strong bullish momentum and volatility/overbought, while a low UVI suggests strong bearish momentum/oversold.
How to Use & Interpretation
Interpreting the bands is intuitive and provides multiple layers of analysis:
Extreme Bands (Outer Bands): When the price touches or exceeds these bands, it suggests a potential exhaustion point or a climax in the current trend. These are often areas to watch for potential reversals or pullbacks.
Warning Bands: These act as an early signal that momentum is becoming stretched. Price action within this zone indicates a strong trend that may be approaching overbought or oversold territory.
Neutral Bands: The area between these bands and the basis line represents typical price action. When the price remains within this zone, it often signals a consolidating or ranging market.
Features & Customization
This script offers extensive customization to tailor the indicator to your specific needs and analysis style:
Modular Component Selection: Individually enable or disable any of the ten underlying indicators to build your own custom UVI. You can also adjust the weight of each component to give more importance to the indicators you trust most.
Detailed Parameter Control: Fine-tune the settings for each individual indicator, such as the period for RSI, the lookback for the Sharpe Ratio, or the fast/slow lengths for the EMA Spread.
Visuals: Comes with eight built-in color schemes (including Classic, Neon, and Ocean) to match your chart's aesthetic.
Band Smoothing: Apply an optional smoothing filter to the bands and the basis line to reduce noise and focus on the underlying trend.
Disclaimer
This tool is designed for technical analysis and should not be used as a standalone signal for trading. The effectiveness of the bands depends on the selected components and market conditions. Always use this indicator in conjunction with other forms of analysis and a robust risk management strategy.