Professional Market Dashboard [Master Edition].CRYPTOThe Problem: Trading in a Vacuum Most crypto traders fail not because they can't read a chart, but because they ignore the "Weather Report." They buy an Altcoin breakout while Bitcoin Dominance is skyrocketing, or they long a dip while Tether Dominance is spiking.
This dashboard solves that problem. It is designed to act as a Decision Support System, condensing the entire state of the crypto market into a single, institutional-grade panel. It replaces the need to have 5 different tabs open (BTC.D, USDT.D, TOTAL3, etc.) and allows you to trade with full context.
How It Works (The Logic Behind the Data)
This dashboard is divided into specific zones, designed to be scanned in a "Z" pattern:
1. The Engine (Header & Sentiment)
rVol (Relative Volume) : Compares current volume to the 20-period moving average. If rVol is < 100%, the header turns Grey, signaling a "Quiet Day" (low probability for breakouts).
Net Flow ($) : Unlike standard volume indicators that suffer from "unit bias" (where 1M cheap coins looks equal to 1M expensive coins), this calculates Dollar Turnover. It multiplies volume by price to show the actual capital flowing in or out of the asset in USD.
Sentiment: A smart label that combines Net Flow direction with VWAP (Volume Weighted Average Price) context. It only signals "BULLISH" if price is above VWAP and Net Flow is positive.
2. Market Context (The Macro Layer)
USDT.D (Tether Dominance): The "Fear Gauge" of crypto. When this is rising, traders are fleeing to stablecoins (Risk Off). When falling, capital is deploying into assets (Risk On).
BTC.D (Bitcoin Dominance): The "Cycle Gauge."
Rising: Bitcoin is sucking liquidity from the market (Risk of Alts bleeding).
Falling: Capital is rotating into Alts (Potential Altseason).
R S(BTC): Relative Strength against Bitcoin. This calculates the performance spread between the current asset and BTC. If this is RED, the asset is underperforming Bitcoin, suggesting it may be better to just hold BTC.
3. Sector Flow (Capital Rotation)
TOTAL3: The Market Cap of the top 125 coins excluding BTC and ETH. This is the purest chart for "Altcoin Health."
SOL & ETH: Leaders for the L1 and Smart Contract sectors. Monitoring these helps identify if a move is isolated or sector-wide.
4. Trend & Technicals
ADX (Trend Strength): Measures the intensity of the trend, not the direction. If ADX > 25, the background turns red/green, signaling a trending environment. If < 25 (Grey), the market is chopping.
Smart Levels: Automatically calculates the daily Fibonacci Pivot points based on yesterday's High/Low to project the next major Support or Resistance level.
MAs: A quick-glance view of the 9/21 EMAs and 100/200 SMAs to determine trend alignment across timeframes.
Visual Design The panel uses a "Stealth" color palette (Matte Green/Red and Slate Grey) to reduce eye strain during long sessions and prevent "false signals" from overly bright colors during low-volatility periods.
Disclaimer This tool is for informational and educational purposes only. It does not provide financial advice or guarantee profits. Always perform your own due diligence.
Trend Analysis
Trend Signal with Alert📌The Trend Signal Indicator is based on Smooth Hiken Asia, a trend-following direction indicator that removes noise through continuity of candle body and tail structure and momentum, reveals inverse correlations in upward and downward directions, and more intuitively identifies different trends that strengthen, persist and weaken.
■ Display Settings
Simple View: Enables a minimal visual mode using a global transparency value.
Simple View Transparency: Controls opacity when Simple View is active.
■ Theme Settings
Theme: Selects one of six predefined color themes (BASIC, CYBER_PINK, FUTURE_MINT, MODERN_MINIMAL, OCEAN_WAVE, GOLD_LUXURY).
Each theme automatically sets up-trend main/glow colors and down-trend main/glow colors.
■ Custom Color Settings
Use Custom Colors: Overrides theme colors with user-defined colors.
Down Main / Down Glow: Colors applied when open > close.
Up Main / Up Glow: Colors applied when close ≥ open.
■ Line Settings
Line Width: Thickness of the main trend lines.
Glow Width: Thickness of glow lines.
Main Line Transparency: Opacity for main lines.
Glow Transparency: Opacity for glow layers.
Fill Transparency: Opacity for the area-fill between open and close plots.
■ Heiken Ashi Calculation
The script uses TAExt.heiken_ashi to generate smoothed Heiken Ashi values with:
Pre-HA smoothing (length + selectable MA type),
Post-HA smoothing (length + selectable MA type),
resulting in cleaner, noise-reduced trend representation.
■ Trend Color Logic
The indicator determines trend direction as:
Down Trend: open > close → applies MAIN_UP / GLOW_UP colors.
Up Trend: close ≥ open → applies MAIN_DOWN / GLOW_DOWN colors.
Colors adapt automatically to theme, Simple View, or custom settings, with dynamic transparency adjustments.
■ Plotting Structure
The script plots four main components:
1. Main Trend Lines
Two primary lines (open and close HA values) using main_color and user-selected line width.
2. Area Fill
A fill between the open and close plots using fill_color, providing visual body thickness.
3. Glow Layer
Multiple glow lines around the HA structure (o and c) using glow_color and reduced opacity for a layered halo effect.
4. Simplified Mode Support
When Simple View is enabled, all colors dynamically shift to a unified transparency for a softer minimal look.
■ Core Behavior
The indicator does not generate signals or predictions; it purely visualizes trend conditions using smoothed Heiken Ashi values enriched by color styling, glow layers, and theme customization.
■ Purpose
Provide a visually enhanced smoothed trend indicator.
Improve trend recognition through glow effects and area fills.
Offer flexible visual themes and full customization.
Support clean minimal mode for distraction-free charting.
Adaptive Volatility Stop by Pedro Paulo de MeloStop ATR is a clean and reliable volatility-based trailing stop system, built to adapt dynamically to market conditions using the Average True Range (ATR).
It identifies trend direction, adjusts the stop level using stair-step logic, and automatically flips the stop when price reversals occur.
How it works
Uses ATR × Multiplier to calculate an adaptive volatility buffer
Tracks trend direction internally
Recomputes and repositions the stop when a trend flip is detected
Plots separate lines for bullish and bearish stop states
Works on any market and timeframe (crypto, forex, commodities, indices, stocks)
Why it’s useful
This Stop ATR implementation is extremely stable and visually clean.
It is particularly effective for:
Trend following
Position management
Swing and position trading
Systematic stop placement
Unlike many ATR-based stop versions, this script uses a corrected flip-handling method that prevents stop misalignment and ensures consistent trend state tracking.
Inputs
Period — ATR length
Multiplier — ATR factor that defines stop distance
Author
Developed by Pedro Paulo de Melo, open-source version.
KOSPI RS Rating (Korea)This indicator measures the relative strength of a stock compared to the KOSPI index.
ADX Trend Dashboard [ Hemanth ]
The ADX + DI Trend Dashboard is a indicator that helps traders instantly assess market trend direction and strength. It combines the power of ADX and DMI (Directional Movement Index) to give a clear visual representation of bullish, bearish, and sideways trends. The dashboard is fully customizable, lightweight, and easy to use.
Key Features:
Displays ADX, +DI, and -DI lines with dynamic coloring.
Green ADX: Bullish trend
Red ADX: Bearish trend
Mini dashboard shows:
Trend direction (Bullish, Bearish)
Trend strength (Weak, Strong)
Threshold lines at 20 & 25 for quick trend strength reference.
Works on any timeframe and instrument.
Clean and visually appealing design to reduce chart clutter.
Inputs:
ADX Length: Number of bars used to calculate ADX.
Higher values smooth the indicator but respond slower.
Lower values make it more sensitive but may produce more noise.
Strong Trend Threshold: ADX value considered strong. Default: 25
+DI Color / -DI Color: Customize trend line colors.
How to Use:
Trend Direction:
Green ADX + +DI > -DI → Bullish
Red ADX + -DI > +DI → Bearish
Trend Strength:
ADX < 20 → Weak
ADX 20–25 → Moderate
ADX > 25 → Strong
Use the dashboard panel to quickly identify trend and strength without manually analyzing the lines.
Recommended Timeframes:
Works on all timeframes.
Ideal for day trading, swing trading, and long-term analysis.
Note:
This indicator does not generate buy or sell signals by itself. It is designed to help traders analyze trend direction and strength visually and make informed trading decisions in combination with other tools or price action.
Altcoin HFT System [Beta]Core Logic: This indicator combines SMC order blocks with trend algorithms to capture high-frequency reversal points.
Features:
Auto Trend Identification (Triangle Signals)
High-Frequency Top/Bottom Detection
No repainting in confirmed mode
Usage:
Green ▲ / LONG: Potential Buy Zone
Red ▼ / SHORT: Potential Sell Zone
Note: This is a public beta version. For detailed tutorials or updates, please check the YouTube link in my profile signature.
Bob's Strategy Pro (Dynamic SL & TP)This code is for a technical analysis indicator called "SSL Strategy Pro (Dynamic SL & TP)". Its primary benefit is to provide traders with a comprehensive, all-in-one visual framework for market analysis and trade management directly on their charts.
Here are its key benefits:
For Market Analysis and Trend Identification:
It offers a clear, visual representation of market structure and the prevailing trend direction using intuitive colored bands.
A major long-term trend line helps you align your trades with the broader market direction, reducing the likelihood of trading against a strong trend.
For Trade Entry and Exit (Risk Management):
It provides specific visual entry signals, helping to identify potential trade initiation points with greater objectivity.
Its most significant advantage is a complete, built-in risk management system.
Dynamic Stop-Loss: It automatically calculates and visually plots a protective stop-loss that adapts to current market volatility. This helps protect profits during favorable moves and defines your initial risk per trade.
Multi-Tier Profit-Taking Framework: It visually plots up to four distinct profit target levels on the chart. These are calculated based on a customizable risk-to-reward ratio relative to your initial stop-loss, allowing you to plan partial profit-taking and manage trades in stages.
Progressive Target Display: To keep the chart uncluttered, the higher profit targets only appear on the chart once certain conditions are met, focusing your attention on the most relevant immediate levels.
Overall Practical Use:
Visual Clarity: By plotting all critical information (trend, signals, stop-loss, multiple targets) directly on the price chart, it consolidates analysis and planning into one view, reducing the need to switch between different tools.
Enhanced Discipline: It encourages systematic trading by pre-defining exit points for both loss protection and profit-taking before entering a trade.
Customizability: Users can adjust key parameters, such as the sensitivity of the trend channels and the aggressiveness of the stop-loss, to match different trading styles and market conditions.
In summary, this tool is designed to assist traders by visually clarifying trends, generating entry alerts, and—most importantly—integrating a dynamic and structured approach to stop-loss and take-profit management to help control risk and systematically capture profits.
Liquidity Heatmap [Eˣ]💧 Liquidity Heatmap - Free Indicator
Overview
The Liquidity Heatmap reveals where stop losses are clustered in the market - the hidden liquidity zones that smart money targets. This indicator automatically identifies Buy-Side Liquidity (BSL) above price and Sell-Side Liquidity (SSL) below price, showing you exactly where institutional traders are likely to hunt for stops before major moves.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What This Indicator Does
Identifies Liquidity Zones:
• Buy-Side Liquidity (BSL) - Stop losses from SHORT positions clustered above price
• Sell-Side Liquidity (SSL) - Stop losses from LONG positions clustered below price
• Automatically clusters nearby levels into high-probability zones
• Shows liquidity strength (1-5+) - higher numbers = more stops = bigger target
• Removes swept liquidity in real-time as price takes out stops
Visual Display:
• 🔴 Red Zones Above Price = Buy-Side Liquidity (shorts' stops)
• 🟢 Green Zones Below Price = Sell-Side Liquidity (longs' stops)
• Thicker/Darker Zones = Higher liquidity concentration
• BSL/SSL Labels = Show exact strength count
• Triangle Markers = Liquidity sweep alerts (when price takes stops)
Smart Features:
• Auto-removes old liquidity (customizable lookback period)
• Clusters nearby levels to reduce noise
• Tracks liquidity strength and age
• Updates in real-time as new swing points form
• Alerts when major liquidity zones are swept
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 How To Use This Indicator
Understanding Liquidity Concepts
What is Liquidity?
Liquidity refers to clusters of stop loss orders sitting in the market. These stops represent:
• Long traders' stop losses (below support) = Sell-Side Liquidity
• Short traders' stop losses (above resistance) = Buy-Side Liquidity
Why Does This Matter?
• Institutions NEED liquidity to fill large orders
• Price often "sweeps" liquidity zones before reversing
• Major liquidity = major target for smart money
• Understanding liquidity = understanding market maker behavior
The Liquidity Cycle:
1. Retail traders place stops at obvious levels (swing highs/lows)
2. Smart money identifies these clusters
3. Price is pushed to sweep the stops (liquidity grab)
4. Institutions fill their orders with this liquidity
5. Price reverses in the opposite direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Trading Strategies
Strategy 1: Liquidity Sweep Reversals
Best For: Swing trading, catching reversals
Timeframes: 15min, 1H, 4H, Daily
Entry Setup:
1. Identify strong Sell-Side Liquidity (SSL) zone below price
2. Wait for price to sweep down into the SSL zone
3. Look for rejection/reversal candle pattern (pin bar, engulfing)
4. Enter LONG after sweep and reversal confirmation
5. Stop loss: Below the swept liquidity zone
6. Target: Opposite liquidity zone or key resistance
Why It Works: Smart money sweeps stops to fill buy orders, then pushes price higher
Example:
• SSL zone at $45,000 with strength 3
• Price drops to $44,950, sweeps the SSL
• Strong bullish reversal candle forms
• Enter long at $45,100
• Target: BSL zone at $47,000
Strategy 2: Liquidity-to-Liquidity Runs
Best For: Day trading, scalping
Timeframes: 5min, 15min, 1H
Entry Setup:
1. Price sweeps Sell-Side Liquidity below and reverses up
2. Identify Buy-Side Liquidity zone above
3. Enter LONG targeting the BSL zone above
4. Exit near/at the BSL zone (don't wait for sweep)
5. Stop loss: Below recent swing low
Why It Works: Price moves from liquidity pool to liquidity pool
Variation - Reverse for Shorts:
• BSL sweep above → Look for SSL zone below
• Enter short targeting lower liquidity
Strategy 3: Liquidity Avoidance (Stop Placement)
Best For: Improving win rate on existing strategies
Timeframes: All
Rules:
1. NEVER place stops exactly at obvious liquidity zones
2. Place stops beyond the liquidity zone with buffer
3. Or place stops before the liquidity zone (tighter, riskier)
4. Monitor liquidity strength - avoid zones with strength 3+
Why It Works: Market makers hunt obvious stop clusters
Example:
• Trading long, swing low at $100 (SSL zone, strength 4)
• Bad: Stop at $99.50 (will get swept)
• Better: Stop at $98.50 (beyond the liquidity)
• Alternative: Stop at $100.50 (tighter, before sweep zone)
Strategy 4: Confluence Trading
Best For: High probability setups
Timeframes: 1H, 4H, Daily
Entry Setup:
1. Find liquidity zone that aligns with:
• Major support/resistance level
• Fibonacci retracement (0.618, 0.786)
• Trendline
• Round psychological number ($50,000, $2,000, etc)
2. Wait for sweep of this high-confluence zone
3. Enter on reversal with multiple confirmations
4. Larger position size justified by confluence
Why It Works: Multiple factors = institutional interest = higher probability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Settings Explained
Core Settings
Swing Detection Length (Default: 10)
• Number of bars left/right to identify swing highs and lows
• Lower values (5-8): More sensitive, more liquidity zones, more noise
• Higher values (12-20): Less sensitive, only major swings, cleaner chart
• Recommended: 8-10 for intraday, 10-15 for swing trading
Liquidity Lookback Bars (Default: 100)
• How many historical bars to track liquidity zones
• Lower values (50-75): Shows only recent liquidity
• Higher values (100-200): Shows longer-term liquidity clusters
• Zones older than this are automatically removed
• Recommended: 100-150 for most timeframes
Zone Proximity % (Default: 0.5)
• Percentage threshold to group nearby levels into single zone
• Lower values (0.2-0.4): Keeps levels separate, more zones
• Higher values (0.6-1.0): Aggressive clustering, fewer zones
• Recommended: 0.4-0.6 for crypto, 0.3-0.5 for forex, 0.5-0.8 for stocks
Visualization Settings
Show Buy-Side Liquidity
• Toggle ON/OFF red zones above price
• Turn OFF if only interested in downside liquidity
Show Sell-Side Liquidity
• Toggle ON/OFF green zones below price
• Turn OFF if only interested in upside liquidity
Show Liquidity Labels
• Toggle BSL/SSL labels with strength numbers
• Turn OFF for cleaner chart appearance
• Keep ON to see exact liquidity strength
Display Style
• Boxes: Filled rectangular zones (best for visualizing strength)
• Lines: Horizontal dashed lines (minimal, clean look)
• Both: Boxes + Lines (maximum visibility)
Color Intensity
• Low: 85% transparency (subtle, less distracting)
• Medium: 75% transparency (balanced visibility)
• High: 65% transparency (bold, maximum visibility)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Info Panel Guide
Located in the top-right corner, the info panel provides real-time liquidity statistics:
Buy-Side Zones
• Count of active BSL zones above current price
• Higher number = More upside targets for price
Sell-Side Zones
• Count of active SSL zones below current price
• Higher number = More downside targets for price
Total Zones
• Combined count of all active liquidity
• Useful for gauging overall market structure
Nearest BSL
• Distance in % to closest Buy-Side Liquidity above
• Example: +2.5% means BSL is 2.5% above current price
• Quick reference for next upside target
Nearest SSL
• Distance in % to closest Sell-Side Liquidity below
• Example: -1.8% means SSL is 1.8% below current price
• Quick reference for next downside target
Liquidity Bias
• ⬆️ Bullish : More BSL than SSL (upside targets dominate)
• ⬇️ Bearish : More SSL than BSL (downside targets dominate)
• ↔️ Balanced: Equal liquidity on both sides (range-bound)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 Understanding Liquidity Strength
What Do The Numbers Mean?
Strength 1 : Single swing point
• Light liquidity, minor target
• Can be ignored in trending markets
• Useful in ranging/choppy conditions
Strength 2-3 : Moderate liquidity cluster
• Multiple nearby swing points merged
• Decent target for intraday moves
• Watch for potential sweeps
Strength 4-5 : Strong liquidity cluster
• Major cluster of stops
• High-probability target for institutions
• Expect reactions when swept
Strength 6+ : Extreme liquidity pool
• Massive stop cluster (rare)
• Critical zone - high probability of sweep
• Often marks major support/resistance
• Ideal for confluence setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Alert Setup
This indicator includes 2 powerful alert types:
1. Buy-Side Liquidity Sweep
• Triggers when price sweeps BSL zone above
• Shows potential bullish reversal opportunity
• Often precedes upward continuation after sweep
2. Sell-Side Liquidity Sweep
• Triggers when price sweeps SSL zone below
• Shows potential bearish reversal opportunity
• Often precedes downward continuation after sweep
To Set Up Alerts:
1. Click the "Alert" button (clock icon) in TradingView
2. Condition: Select "Liquidity Heatmap"
3. Choose alert type: BSL Sweep or SSL Sweep
4. Configure notification method (push, email, webhook)
5. Click "Create"
Pro Tip: Set alerts for both BSL and SSL sweeps to catch opportunities in both directions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 Pro Tips & Best Practices
✅ DO:
• Wait for confirmation - Don't enter immediately on sweep, wait for reversal pattern
• Combine with trend - SSL sweeps in uptrends = higher probability longs
• Check multiple timeframes - 1H liquidity + 4H liquidity = strongest zones
• Monitor strength - Focus on zones with strength 3+
• Use proper risk management - Liquidity sweeps can go further than expected
• Watch for re-sweeps - Sometimes liquidity zones get swept multiple times
• Consider volume - High volume sweeps = stronger reversal potential
⚠️ DON'T:
• Don't fade strong trends - In strong trends, sweeps often continue rather than reverse
• Don't overtrade - Not every sweep is a tradeable setup
• Don't ignore context - Check broader market conditions and news
• Don't use alone - Combine with price action, support/resistance, and other analysis
• Don't place stops at liquidity - Your stops will be hunted
• Don't expect perfection - Some sweeps fail, some zones never get hit
🎯 Best Timeframes:
• Scalping: 5min, 15min (fast moves, frequent sweeps)
• Day Trading: 15min, 1H (balanced view)
• Swing Trading: 1H, 4H, Daily (major liquidity zones)
• Position Trading: 4H, Daily, Weekly (institutional liquidity)
🔥 Best Markets:
• Crypto (high volatility, frequent liquidity grabs)
• Forex (EUR/USD, GBP/USD - liquid pairs)
• Futures (ES, NQ, CL - high liquidity contracts)
• Stocks (large caps with high volume)
⏰ Best Times:
• Market opens (high volatility = liquidity hunting)
• Before/after major news events
• Session overlaps (London/NY for forex)
• First hour and last hour of trading
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 What Makes This Different?
Unlike basic pivot indicators, the Liquidity Heatmap:
• Institutional Perspective - Shows where smart money hunts stops
• Dynamic Clustering - Automatically groups nearby levels for clarity
• Strength Tracking - Not just where, but HOW MUCH liquidity exists
• Auto-Cleanup - Removes swept and old liquidity automatically
• Visual Clarity - Instant understanding of market structure
• Actionable - Clear targets and reversal zones for trading
• Real-Time Updates - Adapts as market structure evolves
Based On Professional Concepts:
• Order flow analysis
• Market maker behavior
• Institutional trading techniques
• Liquidity engineering principles
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Common Liquidity Patterns
Pattern 1: The Double Sweep
• Price sweeps SSL below, reverses up
• Price sweeps BSL above, reverses down
• Back to original range
• Trading: Fade the second sweep for mean reversion
Pattern 2: The Cascade
• Multiple SSL zones stacked below
• Price sweeps first zone, continues to next
• Chain reaction of stop losses triggering
• Trading: Ride the momentum to lowest zone
Pattern 3: The Fake-Out
• Price approaches liquidity but doesn't quite sweep
• Reverses before hitting the zone
• "Scared money" didn't wait for full sweep
• Trading: Wait for actual sweep, don't anticipate
Pattern 4: The Absorption
• Price sweeps major liquidity zone (strength 5+)
• No reversal, just consolidation
• Institutions absorbed all liquidity
• Trading: Wait for breakout direction, likely continuation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Upgrade Your Trading Arsenal
This free indicator gives you institutional-level liquidity analysis. Want more?
🔥 Check out my premium scripts for:
• Automated entry signals with liquidity confirmation
• Multi-timeframe liquidity analysis
• Advanced stop loss management that avoids liquidity zones
• Backtested strategies with performance tracking
• Custom alerts for high-probability setups
• And much more...
👉 Visit my profile to see all available tools!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Important Notes
• Liquidity analysis is one piece of the puzzle - use with other analysis methods
• Not all liquidity zones get swept - some remain untouched
• Market conditions change - adapt your strategy accordingly
• Always use proper position sizing and risk management
• Liquidity sweeps can be violent - use appropriate stop losses
• Practice on demo accounts before trading with real capital
• Past liquidity patterns don't guarantee future price action
Disclaimer: This indicator is for educational purposes. Trading involves risk. Always do your own research and never risk more than you can afford to lose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🙏 Support This Work
If you find this indicator valuable:
• ⭐ Give it a thumbs up
• 💬 Share your best liquidity sweep trades in the comments
• 🔔 Follow for more free professional-grade tools
• 🚀 Share with traders who need to understand liquidity
Got questions? Drop a comment and I'll help you master liquidity trading!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developed with ❤️ for traders who want to think like institutions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version History
• v1.0 - Initial release with dynamic liquidity detection and clustering
GLI / Asset Structural Trend RatioBasicly I asked AI to create a GLI to Asset trend ratio indicator.
Advanced Trend Break TargetsIntroduction
The Advanced Trend Break Targets (ATBT) is a semi-automated technical analysis system designed to validate trendline trading strategies with algorithmic precision. While standard trendlines are subjective drawings, the ATBT converts user-defined price structures into a mathematical model. It projects a trajectory based on two specific "Anchor Points" and monitors price action for valid breakouts, applying a strict "Confluence Filter" before generating signals or projecting targets.
Originality & Utility
Most trendline indicators rely on automatic detection, which often draws lines across irrelevant swing points. The ATBT respects the trader's discretion by allowing manual placement of the trendline (via timestamps) while automating the tedious tasks of monitoring for breaks, checking momentum conditions, and calculating Fibonacci risk-to-reward levels. This "Hybrid" approach combines human pattern recognition with machine discipline, ensuring trades are only signaled when specific quantitative conditions are met.
Detailed Methodology
1. The Advanced Projection Logic
The core of the script calculates a linear trajectory between two points in time (Start Date and End Date). Unlike standard drawings, this script calculates the exact slope (m) using the bar index difference
The script automatically detects the "Price Source" at your chosen timestamps. If a Pivot High exists at the start date, it defaults to a Resistance Line (Highs). If a Pivot Low exists, it defaults to a Support Line (Lows). This slope is then projected forward indefinitely:
2. The Confluence Filter (Multi-Condition Validation)
A raw price crossover is often a "fake-out." To combat this, the script includes a Mandatory Conditions engine. A breakout is only confirmed if the user-selected conditions are TRUE at the moment of the cross:
Volume Confirmation: Verifies if the breakout bar's volume is greater than its 20-period SMA.
CHOCH (Change of Character): Checks if the price has broken the most recent Swing High (for bullish setups) or Swing Low (for bearish setups) prior to the trendline break.
Swing Break: A strict check requiring the close to be beyond the last swing point.
Momentum (MACD & RSI): Ensures the MACD line is crossing the Signal line or that RSI is on the correct side of the 50 threshold.
Trend Filter (SMA): Verifies that price is above the 20 SMA (bullish) or below it (bearish).
3. Dynamic Target & Risk Calculation
Upon a validated breakout, the script scans the chart history for the most recent Pivot High or Low (within the lookback period) to define the "Structure Width" or Risk distance (D).
Stop Loss (SL): Placed at the recent Pivot Price.
Target 1: Projected at $1.0 \times D from the breakout point.
Target 2: Projected at $1.618 \times D (Golden Ratio).
Target 3: Projected at $2.618 \times D.
How to Use
1. Identify the Structure: visually identify a trendline on your chart (e.g., the upper resistance of a Wedge or Flag).
2. Set Anchors: Go to the script settings (Inputs tab) and enter the exact timestamp for Point 1 (Start of trendline) and Point 2 (End of trendline).
Tip: Ensure these dates align with the specific high/low candle you want to anchor to.
3. Configure Filters: Toggle the checkboxes in the "Mandatory Conditions" group.
Example: If you want to trade pure price action, enable "Require CHOCH" but leave "Require MACD" unchecked.
4. Interpret Signals:
Blue Labels (1 & 2): Indicate where the script has Advanced the trendline.
"Breakout" / "Breakdown" Label: Appears when price crosses the projected line AND all selected conditions are met.
Green/Red Dotted Lines: represent your Take Profit targets based on the structure width.
Inputs & Settings
TBT Group:
Start/End Date: The timestamps defining the line.
Pivot Left/Right: Controls the sensitivity of the pivot detection used for Stop Loss placement.
Extend Target Line: How far into the future the target lines are drawn.
Mandatory Conditions Group:
Require Volume / CHOCH / MACD / SMA / RSI: Individual toggles to build your specific trade strategy.
Thresholds: Adjust the lengths for SMA and RSI to match your preferred timeframe.
Example:
XAUUSD 4-hour timeframe
We had an uptrend. We added the indicator and set the point at the penultimate low (HL) and then the second point at the last low (HL), as shown in the following image.
You can choose the conditions you prefer to be met to trigger the breakout from the user settings.
Based on the conditions you set, if they are met, the indicator displays all the data, as seen in the following image. A stop-loss point was set, the breakout candle was identified, and the first target was set (you can choose to display the second and third targets from the user settings, noting that they are less likely to be achieved).
As we can see in the last image, the price reached the first target, then continued its path and achieved the second target as well. Afterward, it shifted to a short sideways trend and then reversed.
TBT vs. ATBT: Key Technical & Functional Enhancements
The ATBT (Advanced Trend Break Target) script introduces significant upgrades over the Free TBT, transforming it from a pure geometric breakout tool into a comprehensive strategy scanner with multi-factor confluence capabilities. Below are the primary differences:
1. Integration of Confluence Filters ("Mandatory Conditions")
The most substantial change is the addition of a robust filtering engine. While TBT relied solely on price crossing the trendline to trigger a signal, ATBT introduces a "Mandatory Conditions" input group. Traders can now require specific criteria to be met before a breakout is validated:
Volume Confirmation: Requires volume to exceed its SMA.
Market Structure (CHOCH): Can require a Change of Character to have occurred prior to the entry.
Momentum & Trend Filters: Options to enforce confirmation from MACD (crossovers), RSI (thresholds), and SMA (price location relative to the moving average).
2. Automated Risk Management (Stop-Loss)
ATBT adds a built-in Stop-Loss mechanism, addressing a missing feature in TBT.
TBT: Only projected Profit Targets (T1, T2, T3).
ATBT: Automatically calculates and plots a Stop-Loss (SL) level based on the pivot price used for the setup. This provides an immediate Risk/Reward visualization upon signal generation.
3. Smart Source Detection
ATBT improves user experience with an automation feature regarding the "Price Source" (High vs. Low).
TBT: The user must manually select whether they are anchoring to "High" or "Low" via the settings.
ATBT: The script attempts to automatically detect the correct source at the "Start Date" by checking if a pivot high or low exists at that timestamp, reducing manual configuration errors.
4. Enhanced Visuals & Swing Point Tracking
Visual clarity has been upgraded in the new version.
Swing Points: ATBT includes a `showSwingPoints` toggle that plots visual markers (circles) on Swing Highs and Swing Lows, helping traders visualize the market structure used for CHOCH and pivot calculations , Helping the trader identify the locations of the first and second points .
Signal State Tracking: ATBT uses "latched" logic (e.g., `chochMet`, `swingBrkMet`) to track if conditions were met anytime between Point 2 and the breakout, whereas TBT treated CHOCH largely as a separate visual component unrelated to the main trigger.
5. Refined Signal Logic
TBT: Triggers immediately upon a close across the trendline.
ATBT: Triggers only if the trendline cross occurs AND all enabled "Mandatory Conditions" return true. This significantly reduces noise by filtering out low-quality breakouts that lack structural or momentum support
Disclaimer
This script is a tool for visualizing market structure and calculating potential geometries. It does not guarantee future performance. Breakouts can fail, and "Mandatory Conditions" are lagging indicators that confirm past data. Always manage risk responsibly.
BEGGALKey Features and Concepts
1. Order Block (OB) Identification (Pivots)
The core of the indicator relies on Pivot Point detection (ta.pivothigh/ta.pivotlow) over a specified Pivot Length (e.g., 5 bars).
Bullish OB (Demand Zone): Identified at a valid low pivot point, with the zone boundary defined between the pivot low (low ) and the open/close average (hl2 ) of the pivot bar.
Bearish OB (Supply Zone): Identified at a valid high pivot point, with the zone boundary defined between the pivot high (high ) and the open/close average (hl2 ) of the pivot bar.
2. Advanced Strength Filters (Momentum & Volume)
The indicator applies strict filters to ensure only powerful, high-quality zones are drawn:
Momentum (ATR) Filter: Checks if the candle that created the OB has a range (high - low) greater than the Average True Range (ATR) multiplied by the Momentum Threshold. This filters for impulsive, strong candles.
Volume Imbalance Filter (SMC Confirmation): If enabled, it requires the volume of the OB-creating candle to be higher than the volume of candles surrounding it (checked over the Volume Imbalance Lookback period). This confirms institutional activity in the zone creation.
Structure Break Filter (BOS/CHoCH): If enabled, the OB is only considered valid if it is created after a Break of Structure (BOS) or Change of Character (CHoCH). This validates the zone according to market structure rules (e.g., a Bearish OB must be preceded by a break of a significant swing low).
3. Dynamic Zone Management
Zone Narrowing (enable_narrowing): This feature dynamically adjusts the boundaries of an Order Block after it has been touched. If a candle wick tests the zone without fully mitigating it, the zone boundary is moved inward to the point where the test occurred, narrowing the zone and making it a more precise entry point (Dynamic OB concept).
Mitigation/Removal: Once price action (either the candle's wick or close, based on the Mitigation Method setting) breaches the outermost boundary of the zone, the Order Block is considered mitigated (broken) and is removed from the chart to clear clutter.
4. Risk Categorization
The indicator tracks and draws up to a user-defined number of OBs (Bullish/Bearish OB Count). These are categorized by their index:
Index 0 (Closest): Categorized as High Risk Zone.
Index 1: Categorized as Medium Risk Zone.
Index 2 and beyond: Categorized as Low Risk Zone. The user can toggle the visibility for each of these risk categories.
5. Integrated Risk/Reward (RR) Setup
For the High Risk Zone (Index 0), once the zone is touched, the indicator displays a complete trade setup:
Entry: Assumed at the Average Price of the Order Block.
Stop Loss (SL): Placed at the protective boundary of the OB (the top for a Sell Zone, the bottom for a Buy Zone). The risk area is colored with the RR Risk Zone Background.
Take Profit (TP): Calculated based on the user-defined Risk/Reward Ratio (e.g., 2.0 for 1:2 RR). The reward area is colored with the RR Reward Zone Background.
The RR boxes and price labels (TP/SL) are drawn with a configurable RR Box Width (Bars).
6. Alerts
The indicator includes built-in Pine Script alerts that trigger when the price enters an unmitigated zone, notifying the user of the Risk Level (High, Medium, or Low), the zone's boundaries, and the price.
TrendPeriodsThis indicator is binary. It is either BUY or SELL. In other word the value is either 0 or 1
Volume Profile Right📌 The Volume Profile Lite visualizes buy and sell volume by price range within a selected period, displayed as horizontal bars on the right side of the chart. This allows traders to understand the distribution of trading volume and the intensity of participation.
■ Calculation Logic
1. Price Binning System
The indicator divides the highest-to-lowest price range into user-defined boxes, detects candle volume entering each range, and allocates it based on buy/sell conditions.
2. Distinct Buy/Sell Volume Separation
Buy Volume = close ≥ open, Sell Volume = close < open, allowing each price range to independently accumulate buy and sell volume.
3. Dual-Side Volume Profile Construction
Each range compares its volume to the global max, then calculates:
buyBoxWidth = (buyVol / maxVol) * profileWidth,
sellBoxWidth = (sellVol / maxVol) * profileWidth,
creating a balanced left-side buy profile and right-side sell profile.
4. Text-Enhanced Visual Boxes
Each range displays background color, border, average price, K-scaled volume text, adjustable transparency, and alignment for more intuitive volume distribution analysis.
■ User Inputs (Accurate, Non-Exaggerated Descriptions)
Analysis Period (lookback): Controls how many historical bars are analyzed.
Number of Price Ranges (boxes): Defines how finely the price span is segmented.
Profile Width: Sets maximum horizontal width of the profile.
Box Height: Adjusts the vertical thickness of each volume box.
Font Size: Controls text size for displayed volumes.
Transparency: Adjusts box background opacity.
Buy/Sell Color Groups: Sets background and border colors for buy and sell boxes.
Background Color Settings: Adjusts global chart background and profile readability.
■ Repaint Behavior
The indicator analyzes only completed bars within the lookback period, uses no future data, and does not modify historical values; therefore, it does not repaint.
Real-time updates occur only because calculations execute on the latest bar via barstate.islast, which is normal behavior.
■ Purpose
Designed to reveal relative buy/sell volume distribution by price, highlight zones of concentrated participation, detect volume imbalances, and provide structural context for potential support/resistance—not to predict price or generate signals.
■ Notes
Box width reflects relative—not absolute—volume; buy/sell classification uses open/close comparison and may not perfectly represent order-flow nature; best used alongside other tools for complete analysis.
Reversal Reactor - Multi-Pattern Candle Reversal ScannerReversal Reactor - Multi-Pattern Candle Reversal Scanner
⚪ Overview
Reversal Reactor is a comprehensive candle-pattern and volume-pressure detection engine designed to highlight possible reversal environments.
It identifies abnormal volume surges, major single-candle reversal structures, and multi-candle formations such as Morning/Evening Stars — all refined through adjustable shadow-to-body ratios and adaptive lookback logic.
⚪ Core Features
Big-Volume Candle Detection : green or red full body.
Flags candles with unusually high volume relative to a volume EMA. These moments often reflect climactic pushes, absorption, forced liquidations, or rapid sentiment flips.
Reversal Candle Pattern Suite
A unified engine that detects major reversal structures with individual on/off control:
• Engulfing — Strong directional assertion via body-wide engulfing of prior candle.
• Morning Star — Three-stage bullish reversal following sustained selling.
• Evening Star — Bearish transition structure after an extended advance.
• Hammer — Long lower or upper wick showing strong rejection from one side of the market..
• Shooting Star — Long upper wick showing aggressive upside rejection.
• Hanging Man — Bearish exhaustion signal forming near range highs.
• Doji — Neutral indecision candle marking potential transition zones.
Shadow-to-Body Ratio Control
Fine-tunes wick-dominant pattern detection (hammer/star types) by requiring the shadow to exceed the body by a customizable multiplier, reducing low-quality signals.
Adaptive Lookback Logic
Allows users to adjust historical evaluation depth, improving sensitivity across different volatility regimes and asset behaviors. Default setting is recommended.
⚪ How Traders Use It
• Spot exhaustion near key support/resistance.
• Validate reversal attempts with volume confirmation.
• Filter for clean candle structures before entering momentum shifts.
Disclaimer
This indicator is intended for educational and informational purposes only. It does not constitute financial advice, nor does it guarantee performance or profitability. Always conduct your own analysis and manage risk appropriately when trading.
Strat Daily Predictor📊 Strat Daily Predictor
This indicator analyzes Daily timeframe Strat patterns and displays actionable trading setups on any chart timeframe.
🔹 FEATURES:
• Detects all major Strat patterns (2-1-2, 3-1-2, 3-2-2, 1-2-2, 2-2, 1-2, 1-3)
• Shows Entry (E) and Target (T) price levels
• Pattern status: ACTIONABLE, TRIGGERED, or IN-FORCE
• Visual Entry/Target lines on chart
• Entry signals when price breaks trigger levels
• Works on any timeframe using Daily analysis
🔹 PATTERN TYPES:
• Continuation patterns (trend following)
• Reversal patterns (counter-trend)
• Bullish & Bearish setups
🔹 TABLE DISPLAYS:
• Current pattern name
• Bar combo (e.g., 2↑ → 1 → 2↑)
• Bias (BULLISH/BEARISH)
• Entry & Target prices
• Daily High/Low levels
🔹 HOW TO USE:
1. Add to any timeframe chart
2. Check table for Daily pattern setup
3. Wait for ACTIONABLE patterns
4. Enter when price breaks Entry level
5. Target shown on chart
🔹 ALERTS:
• Long Entry
• Short Entry
• Actionable Pattern
• In-Force Pattern
Based on Rob Smith's "The Strat" methodology.
Market Profile with TPO - chorseThis Pine Script indicator draws a Market Profile (also known as a Time Price Opportunity, or TPO, chart) directly onto your candlestick chart. It is an advanced analytical tool used primarily by futures and commodities traders to understand market structure and who is in control (buyers or sellers) at various price levels.
The Market Profile is built over a specific trading session (which you can customize) and visually organizes price data to show where the market spent the most time at a particular price.
TPO (Time Price Opportunity)
The basic building block. Each letter (A, B, C, etc.) represents a specific, equal block of time (e.g., 30 minutes) during the session. The profile is formed by stacking these letters horizontally across the price axis, showing all the price levels traded during that time block. The script plots TPO letters (TPO_Names array) at the bar index corresponding to when that price was traded. This creates the typical profile shape.
Point of Control (POC)
The single price level that has the most TPOs (the longest horizontal row of letters). It represents the level where the market spent the most time and is considered the fairest price or gravitational center for the session.
Calculated by finding the price level (TPO_POC) with the maximum number of TPOs (max_TPOs). The script includes logic to break ties by choosing the POC closest to the session's midpoint (TPO_mid). This level is highlighted with a box and a line.
Value Area (VA)
The price range that contains a configurable percentage of the total TPOs (typically 68.26% or 70%). This zone is considered the "fair value" range where the majority of the session's activity occurred. Calculated as the range between the Value Area High (VAH) and Value Area Low (VAL). The script uses an iterative function (fn_build_VA) to expand out from the POC until the defined percentage (value_area_pct) of TPOs is included. These boundaries are highlighted with lines.
Price Levels ConstructorHello friends,
This is a multi-period OHLC level mapping tool that lets you build your own higher-timeframe levels directly on the chart - across up to 20 customizable period slots.
You choose which periods matter (Year, Half-Year, Quarter, Month, Week, Day, weekdays, etc.), how recent they should be, and which levels to show (Open/High/Mid/Low/Close).
The script then renders those levels with automatic stacking and clear label formatting, giving you a compact higher-timeframe map for intraday and swing trading.
🛠️ How It Works
Each selected period slot creates a period model with its own OHLC+Mid data.
For each active level type, the script draws the price level, tracks the correct H/L/C timestamps when needed, and generates a label consisting of:
The selected recency (Current, Previous, 2nd Previous, …)
The period name (e.g., Month, Q1, Monday)
The level type (O/H/Mid/L/C)
All levels are fed into a registry that merges levels at identical prices, stacks their labels vertically or horizontally, and displays only one rendered line per price with combined label text.
This produces clean clusters when multiple periods share the same level.
Global settings control left/right extensions, label compactness, label content (name, price, % distance), and stacking direction.
🔥 Key Features
20 period slots
Ability to specify period (31 options, from Year to various weekdays)
Ability to specify recency for each selected period (13 options)
5 levels (Open, High, Mid, Low, Close) for each selected period
Stacking of labels of matching levels
% from All-Time High (ATH)
% from All-Time Low (ATL)
Alerts
📸 Visual Examples
The percentages in the level labels make it easy to see the current performance relative to that level
Labels with full level names
Compact labels with vertical stacking
Compact labels with horizontal stacking
👋 Good luck and happy trading!
Paid script
Trading Sessions High/Low Zones The BestHiển thị toàn bộ session zone, có tùy chọn các ngày cần hiển thị gần nhất.
Hỗ trợ tốt hơn :)
S/R Cloud 3X - [IndaroX]
S/R Cloud 3X — Dynamic Support/Resistance & Trend Structure Indicator
S/R Cloud 3X is a multi-timeframe support/resistance and trend-structure indicator designed to help traders identify high-probability zones, trend strength, and market transitions with clarity and accuracy.
🟦 Overview
S/R Cloud 3X detects dynamic support/resistance zones and trend direction, using a 3-layer cloud system that filters noise and provides reliable market structure across multiple timeframes.
Dynamic S/R zones represent institutional liquidity areas and moving supply/demand regions where price often reacts — making them ideal for entries, exits, SL/TP placement, and trend continuation setups.
🟦 Key Features
1. Dynamic Support/Resistance Zones
Zones automatically adjust with market movement
Provide reliable pullback areas
Useful for precision SL/TP placement
Work efficiently during both strong trends and corrections
2. Trend Identification
The Cloud colors and geometry help determine:
Bullish vs. bearish structure
Trend strength or weakness
Whether the market is trending or ranging
Trending Market:
Uptrend → Higher Highs (HH) / Higher Lows (HL)
Downtrend → Lower Highs (LH) / Lower Lows (LL)
Sideways Market:
No clear HH/HL or LH/LL
Price oscillates between dynamic S/R bands
3. Multi-Timeframe (MTF) Structure Filtering
S/R Cloud 3X calculates structure from higher timeframes (e.g., M5, H1) and displays smoothed results on the active chart.
Benefits:
Removes most of the noise found in lower timeframes
Improves trend clarity
Increases reliability of S/R zones
Mirrors professional multi-timeframe analysis
4. Cloud Geometry Analysis
The shape and thickness of the S/R Clouds provide insight into market conditions:
Thick Cloud → strong trend / strong S/R zone
Thin Cloud → weakening trend or weakening zone
Cloud curvature → early warning of pullback or reversal
This helps forecast transitions sooner than traditional indicators.
5. Presets & Flexibility
S/R Cloud 3X includes optimized presets and adjustable parameters suitable for multiple markets:
Gold (XAUUSD)
Bitcoin (BTCUSD)
Major Forex pairs
Indices such as SP500
Customizable settings allow adaptation to various trading styles (scalping, intraday, swing).
🟦 How Traders Use S/R Cloud 3X
Identify trend direction and trend strength
Wait for price to retrace into the S/R Cloud for entry
Use Cloud boundaries for SL/TP
Confirm structure alignment between small and large timeframes
Filter out low-quality market conditions
Note:
For enhanced accuracy, S/R Cloud 3X can be combined with momentum or reversal indicators for additional confluence.
TradeRaven — VWAP Auto Trend Signal Pro)TradeRaven — VWAP Auto Trend Signal Pro
A next-gen VWAP signal engine built for traders who want speed, accuracy, and true institutional clarity — without needing footprint charts or high-end orderflow tools.
This indicator reads what the market is actually doing and classifies every major behavioural shift into instantly recognisable signal states.
What Makes This Tool Different
Most indicators respond after the move.
This one responds to the behaviour that creates the move.
It interprets the real internal pressure behind each candle —
expansion, contraction, absorption, imbalance, continuation —
and instantly classifies the bar into:
CON — Trend Continuation
REV — Mean Reversion
IGN — Ignition
MON — Monster Displacement
EXH — Exhaustion / Absorption
These aren’t random technical alerts.
They are behavioural state transitions, the same shifts professional traders watch when evaluating momentum, failure, and opportunity.
This is why it feels unusually accurate:
it doesn’t chase price — it reads intention.
Universal Engine — Built for Every Market
Because the model is based on structural behaviour around VWAP, not fixed pattern recognition, it adapts seamlessly across a range of instruments
And it works on:
1–5m scalping
Intra-session day trading
Higher timeframe swing structure
If a market has candles, VWAP, and volume,
the engine knows how to classify the move.
Why VWAP Is the Perfect Anchor
VWAP (Volume-Weighted Average Price — average price weighted by traded volume) is the institutional benchmark for execution and session fairness.
VWAP gives you the map:
Near VWAP → equilibrium (fair value)
Far from VWAP → imbalance (opportunity or risk)
Return to VWAP → reversion / rebalance
Acceleration away → genuine trend commitment
This engine measures how price interacts with that fair-value line and translates the interaction into clear, tradable insights.
VWAP defines the environment.
The engine defines the behaviour.
How the Engine Interprets the Market
Every signal is the result of multi-layer behavioural reading.
The system evaluates:
Trend alignment & slope strength
Compression vs extension from fair value
Expansion velocity (how fast energy is released)
Volatility regime & session volume
Imbalance pressure
Wick rejection at extremes
Structural displacement patterns
This is what gives the signals depth.
They aren’t triggered by simple crossovers.
They only fire when the market shows a true change in internal state.
That’s why the signals feel “alive.”
Sensitivity Modes
Aggressive — fast profiling, more signals
Balanced — the clean default
Sniper — ultra-filtered, higher conviction
These modes shift behavioural thresholds depending on volatility and trend maturity, letting you tailor the tool to your execution style.
Session Filters
Choose the sessions you want the engine active in:
Asia
London
New York
This locks signals to genuine volatility windows instead of low-efficiency zones.
How Traders Use It
1. Start with VWAP Slope
The slope defines the environment:
Upward → pro-trend bias
Downward → sell-side bias
Flat → rotational or mean-reversion conditions
This alone filters most bad trades.
2. Read the Signals as Market Narrative
CON + IGN → Expansion
Ideal for continuation plays and momentum entries.
REV + EXH → Rotation
Perfect for spotting early reversions, failed highs/lows, and areas to reduce risk.
MON → Major Legs
These bars define the session and often mark liquidity breaks or displacement shifts.
You’re not trading signals —
you’re trading the story they reveal.
3. Combine It With Your Own Edge
The engine is designed to enhance:
Orderflow
CVD (Cumulative Volume Delta — measures net aggressive buyers/sellers)
Delta footprint
Market structure
Liquidity plays
Price action scalping
Think of it as orderflow-style clarity
without needing orderflow software.
Why This is a Game Changer
it turns chaos into structure.
it updates instantly.
it shows intention where most indicators show noise.
it helps you understand why the market moves — not just when.
This isn't a traditional “indicator.”
It’s a behavioural engine that maps strength, imbalance, exhaustion, and true momentum in a way that mirrors institutional reading.
In the right hands,
it becomes one of the cleanest, most accurate timing tools you’ll ever use.
Granger Causality Flow IndicatorGranger Causality Flow Indicator
█ OVERVIEW
The Granger Causality Flow Indicator is a statistical analysis tool designed to identify predictive relationships between two assets (Symbol X and Symbol Y). In econometrics, "Granger Causality" does not test for actual physical causation (e.g., rain causes mud); rather, it tests for predictive causality .
This script is designed to answer a specific question for traders: "Does the past price action of Asset X provide statistically significant information about the future price of Asset Y, beyond what is already contained in the past prices of Asset Y itself?"
This tool is particularly useful for Pairs Traders , Arbitrageurs , and Macro Analysts looking to identify lead-lag relationships between correlated assets (e.g., BTC vs. ETH, NASDAQ vs. SPY, or Gold vs. Silver).
█ CONCEPTS & CALCULATIONS
To determine if Symbol X "Granger-causes" Symbol Y, this script utilizes a variance-reduction approach based on Auto-Regressive (AR) models. Due to the runtime constraints of Pine Script™, we employ an optimized proxy for the standard Granger test using an AR(1) logic (looking back 1 period).
The calculation performs a comparative test over a rolling window (Default: 50 bars):
The Restricted Model (Baseline):
We attempts to predict the current value of Y using only the previous value of Y (Auto-Regression). We measure the error of this prediction (the "Residuals") and calculate the Variance of the Restricted Model (Var_R) .
The Unrestricted Model (Proxy):
We then test if the past value of X can explain the errors made by the Restricted Model. If X contains predictive power, including it should reduce the error variance. We calculate the remaining Variance of the Unrestricted Model (Var_UR) .
The GC Score:
The script calculates a score based on the ratio of variance reduction:
Score = 1 - (Var_UR / Var_R)
If the Score is High (> 0) : It implies that including X significantly reduced the prediction error for Y. Therefore, X "Granger-causes" Y.
If the Score is Low or 0 : It implies X added no predictive value.
█ HOW TO USE
This indicator is not a simple Buy/Sell signal generator; it is a context filter for cross-asset analysis.
1. Setup
Symbol 1 (X): The potential "Leader" (e.g., BINANCE:BTCUSDT).
Symbol 2 (Y): The potential "Follower" (e.g., BINANCE:ETHUSDT).
Differencing: Enabled by default. This checks the changes in price rather than absolute price, which is crucial for statistical stationarity.
2. Interpreting the Visuals
The script changes the background color and displays a table to indicate the current flow of causality:
Green Background (X → Y): Symbol 1 is leading Symbol 2. Price moves in Symbol 1 are statistically likely to foreshadow moves in Symbol 2.
Orange Background (Y → X): Symbol 2 is leading Symbol 1. The relationship has inverted.
Blue Background (Bidirectional): Both assets are predicting each other (tight coupling or feedback loop).
Gray/No Color: No statistically significant relationship detected.
3. Trading Application
Trend Confirmation: If you trade Symbol Y, wait for the background to turn Green . This indicates that the "Leader" (Symbol X) is currently exerting predictive influence, potentially making trend-following setups on Symbol Y more reliable.
Divergence Warning: If you are trading a correlation pair and the causality breaks (turns Gray), the correlation may be weakening, signaling a higher risk of divergence.
█ SETTINGS
Symbol 1 (X) & Symbol 2 (Y): The two tickers to analyze.
Use Differencing: (Default: True) Converts prices to price-changes. Highly recommended for accurate statistical results to avoid spurious regression.
Calculation Window: The number of bars used to compute the variance and coefficients. Larger windows provide smoother, more stable signals but react slower to regime changes.
Significance Threshold: (0.01 - 0.99) The minimum variance reduction score required to trigger a causal signal.
█ DISCLAIMER
This tool provides statistical analysis of historical price data and does not guarantee future performance. Granger Causality is a measure of predictive capability, not necessarily fundamental causation. Always use appropriate risk management.
DuoBlocks — ICT Order Block DetectorDuoBlocks — ICT Order Block Detector
⚪ Overview
DuoBlocks detects bullish and bearish Order Blocks that form immediately under/over a valid Fair Value Gap. Each zone inherits its height from ATR, so the OB reflects realistic volatility instead of fixed candlestick based values. This makes the zones more adaptive, cleaner, and more faithful to ICT(Inner Circle Trader)-style OB identification.
The indicator displays only the most relevant live block — the one that price is most likely to interact with next.
⚪ Core Logic
DuoBlocks evaluates a two-bar displacement to confirm a real gap (FVG behavior). When a valid upward or downward gap forms, it captures the origin candle as the potential OB and builds the zone using:
• ATR-based height → natural volatility-scaled zone width
• Gap validation above/below price → ensures it’s a true imbalance
• ICT-style logic → the OB sits directly behind the displacement/FVG
• Adaptive time-frame filter → different gap thresholds for <1h and ≥1h charts
• Lookback limit → prevents ancient blocks from cluttering the chart
• Automatic invalidation → block dies if price breaks its boundary
Only surviving blocks remain active, giving a clean and trustworthy supply/demand map.
⚪ Block Selection Engine
When multiple OBs exist, DuoBlocks automatically picks the most relevant:
Bearish OB (supply)
• Must sit above current price
• Chooses the nearest one overhead
• If equal → prefers the newest
• Optional fallback to the closest OB if none sit above price
Bullish OB (demand)
• Must sit below current price
• Chooses the nearest underfoot OB
• If equal → prefers the newest
• Optional fallback enabled in no-OB conditions
⚪ Midline System
Each active OB can show a “midline” at its exact center:
⚪ Inputs & Controls
• ATR length
• Right-side zone extension
• Lookback depth
• Max stored OBs per side
• Optional nearest-fallback
• Toggleable midline + width control
• Custom bull/bear colors
Disclaimer
This script is for educational purposes only and is not financial advice. Trading involves risk, and you are fully responsible for your decisions and results.
DewaSMC — Prepare Entry + EMA AlertsA modern SMC indicator based on Market Structure Breaks (BOS/CHoCH), equipped with a Prepare Entry system, EMA confirmation, and alert signals to improve entry execution accuracy.
✨ Main Features
1. Automatic Market Structure
- Detects swing High/Low with flexible periods.
- Displays BOS ↗/↘ and CHoCH in real-time.
- Candles can be colored according to structural trend direction.
2. Prepare Entry Zone (NEW FEATURE)
Before a BOS occurs, the indicator marks a “PREPARE ENTRY” area when price approaches a structure within a certain percentage radius. Helps traders get ready early before momentum kicks in.
- PREPARE Long when price approaches a High structure.
- PREPARE Short when price approaches a Low structure.
- PREP zones disappear automatically after several candles.
3. EMA Confirmation (NEW FEATURE)
Additional confirmation to filter false breaks:
- Short EMA & long EMA to determine trend direction.
- Option to require both EMAs to be aligned or only short EMA.
- Used for both PREPARE and ENTRY signals.
4. Automatic Entry + Targets
After a valid BOS/CHoCH:
- Entry level is drawn automatically.
- SL automatically calculated using ATR.
- TP1, TP2, TP3 automatically calculated and displayed.
- Visual box: Risk Zone & Reward Zone for quick RRR visualization.
5. Ready-to-Use Alerts
- Alert for PREPARE ENTRY.
- Alert for ENTRY (BOS/CHoCH).
- Static alert messages for TradingView compatibility.
6. Trade Information Table
- When a trade is active, a table is displayed showing:
- Direction (LONG/SHORT)
- Entry
- SL
- TP1/TP2/TP3 + status
- EMA confirmation status
- Risk/Reward Ratio
- All neatly arranged according to selected position.
🎯 Use Case
This indicator is ideal for traders who use:
- Smart Money Concepts (SMC)
- Scalping & Intraday
- Breakout & Retest strategies
- Precision entries requiring multi-signal confirmation
- Traders who want PREPARE ENTRY alerts before BOS occurs






















