Full Dashboard V18 - Pro PA & Column CustomizationTable (Multi timefram)
- show Trend
- show rsi
- show Stoch
- show prev candle (default hide)
- show curr candle (default hide)
- shows the time when the candlestick will close.
- can config show/hide all column
Graph
- show rsi 89/21
Signal
- show signal with tp/sl (default hide)
Motif-Motif Chart
SignalSquad Lite: SMC Structure Mapper @2026SMC ZONES MAPPER INCLUDING FVG & CHART PATTERNS
Free Lite: Map SMC Structure (Pivots + BOS).
Teaser for Premium SignalSquad (Signals + 75% Wins).
Trial : TELEGRAM @SignalSquad7
XAUUSD Psych Zones (0/25/50/75)This indicator plots psychological quarter levels on XAUUSD (0 / 25 / 50 / 75) and highlights them as tradable zones.
Each level is displayed as a horizontal zone with a midpoint line, designed for support & resistance, break-and-retest, and reaction-based trading on gold.
Zones extend across the chart and are sized using a custom pip definition (default: 1 pip = 1.00, ±5 pips each side).
Crypto Precision Signals "Crypto Precision Signals - Reliable" Script Comprehensive Documentation
This document aims to clearly and objectively explain the functional principles, design logic, and usage methods of the "Crypto Precision Signals - Reliable" Pine Script. We adhere to principles of transparency and pragmatism. All descriptions are based on publicly available technical analysis theories, and we make no promises regarding any definitive profit performance. Final trading decisions should be made independently by the user based on comprehensive market analysis.
I. Core Design Philosophy and Originality
The originality of this script lies not in creating new analytical indicators, but in constructing a decision-making framework based on multi-dimensional condition confluence and systematic risk control. Its core philosophy is: a signal from a single indicator has limited reliability, whereas signals from different analytical dimensions (trend, momentum, overbought/oversold levels, market participation) can, when converging under specific rules, potentially identify higher-probability trading environments. Furthermore, the script encourages more disciplined trading through mandatory cooldown mechanisms and visual state tracking.
II. Detailed Explanation of Integration Rationale and Synergistic Operation Mechanism
The script integrates four classic technical elements, and their selection and combination have clear logical justification:
1. Trend & Momentum Foundation Layer: MACD
Integration Rationale: MACD is a classic tool for identifying trend direction, momentum strength, and potential turning points. The crossover of its fast and slow lines is an intuitive representation of momentum change, providing the initial "action signal" for the system.
Synergistic Mechanism: In this script, a MACD golden cross or death cross is one of the primary conditions for triggering a potential buy or sell signal. It acts as the system's "engine," responsible for identifying the initiation of market momentum.
2. Overbought/Oversold & Auxiliary Trigger Layer: RSI
Integration Rationale: RSI measures the speed and magnitude of price changes to gauge overbought or oversold market conditions. It complements the trend-following MACD by providing reference points for market sentiment extremes.
Synergistic Mechanism: The script innovatively sets RSI extremes (<30 oversold, >70 overbought) as trigger conditions parallel to MACD crossovers. This means the system can capture not only trend initiation points but also potential reversal opportunities from extreme sentiment (e.g., a buy point after a pullback to key support within an uptrend due to short-term oversold conditions). MACD and RSI together form a dual-trigger engine of "trend momentum" and "market sentiment."
3. Trend Filter Layer: 50-Period Simple Moving Average (SMA)
Integration Rationale: "Trading with the trend" is a core tenet of technical analysis. The SMA-50 is widely used as a benchmark for medium-term trends.
Synergistic Mechanism: This layer acts as a strict "direction filter." All potential signals generated by MACD or RSI must pass the SMA-50 test:
Buy Signal: The current price must be above the SMA-50, ensuring the trade attempt aligns with the potential medium-term uptrend.
Sell Signal: The current price must be below the SMA-50, ensuring the trade attempt aligns with the potential medium-term downtrend.
This mechanism effectively filters out numerous counter-trend, high-risk reversal attempts, focusing the system on "trading with the major trend" opportunities.
4. Volume Confirmation Layer: Dynamic Volume Average
Integration Rationale: Volume is key to gauging market participation and the authenticity of price movements. Price breakouts or signals lacking volume support are often weak.
Synergistic Mechanism: This is the key validation layer of the script. The system calculates a 30-period average volume and allows users to set a multiplier (default 2.0). A signal is only finally confirmed when the trigger condition (from MACD or RSI) occurs simultaneously with the current bar's volume being significantly higher than the recent average (i.e., a "volume spike"). This validation ensures the signal is supported by broad market participation, aiming to increase the signal's credibility and reduce "false breakouts" or whipsaws caused by low liquidity.
Synergistic Operation Summary:
The script operates like a multi-stage screening funnel:
Signal Trigger: Initiated by a MACD crossover or RSI entering an extreme zone.
Preliminary Trend Screening: The price location of the trigger signal must pass the SMA-50 trend filter (buy above, sell below).
Energy Validation: Concurrently with the above conditions, a volume spike must provide confirmation.
Final Output: Only when all conditions are met simultaneously is a visual "BUY" or "SELL" label generated.
III. Control & Auxiliary Layers: Enhancing Disciplined Use
Beyond the signal generation logic, the script includes two original designs to enhance practicality:
Signal Frequency Controller (Cooldown Period):
Mechanism: After generating a valid signal, the system enters a user-adjustable "cooldown period" (default 5 bars). No new signals of the same type will be generated during this period.
Purpose: Forces a reduction in trading frequency, prevents signal overload during high volatility or ranging markets, encourages waiting for higher-quality, more spaced-out opportunities, and helps avoid emotional overtrading.
Visual State Tracker (Bar Coloring):
Mechanism: The system internally tracks the state of the last valid signal (buy or sell). After a buy signal, subsequent bars are tinted light blue; after a sell signal, subsequent bars are tinted light orange, until the next opposing signal appears.
Purpose: Provides the user with an intuitive visual reference for the "signal validity period" or "observation phase," helping to quickly identify which stage the market is in according to the system's logic and assisting in gauging market rhythm.
IV. Functional Purpose and Usage Method
Core Purpose: Serves as an auxiliary decision-making tool for swing trading or trend-pullback entries, suitable for timeframes of 1 hour and above. It filters for potential trade nodes that combine trend alignment, momentum, sentiment, and capital interest through multi-condition confluence.
Usage Process:
Loading: Add the script to a TradingView chart.
Observation: Watch for "BUY/SELL" labels confirmed by a "volume spike" and aligned with the trend direction.
Analysis: Never treat signals as direct trading orders. Always analyze the signal within the broader market context:
Check if the signal occurs near key support or resistance levels.
Observe the candlestick patterns (e.g., Pin Bar, Engulfing patterns) on the signal bar and its vicinity.
Assess the overall market structure on higher timeframes.
Decision & Risk Control: Only consider using the signal as an entry reference if it aligns with conclusions from your other analysis tools. Any trade must have a clearly defined stop-loss level set in advance and proper position sizing/risk management.
V. Important Disclaimer
This script is a technical analysis辅助 tool. Its signals are calculated based on historical data and mathematical formulas. Financial markets carry inherent risks, and past performance is in no way indicative of future results. Users must understand that all trading decisions carry the possibility of loss. The developer assumes no responsibility for any trading activities conducted by users based on this script or their outcomes. Please use it prudently under a full understanding of its logic and associated risks.
HTF OB Top-Down 3x🏛️ HTF OB Top-Down 3x (Institutional Order Blocks)
The HTF OB Top-Down 3x is a sophisticated institutional analysis tool that automatically identifies and tracks Order Blocks across three different timeframes. By visualizing where "Big Money" has previously entered the market, you can identify high-probability reversal zones and supply/demand clusters.
🔹 What is an Order Block (OB)?
An Order Block is the "last opposite candle" before a strong impulsive move that breaks market structure. It represents a zone where large institutions have placed significant orders. When price returns to these zones, they often act as strong support or resistance.
🛠 Key Features
✅ Triple Timeframe Analysis: Simultaneously monitor Order Blocks from HTF (e.g., Daily), Mid-TF (e.g., 4H), and LTF (e.g., 15m) on a single chart.
✅ Smart Swing Detection: Uses Pivot Highs/Lows to identify real Market Structure Breaks (MSB/BOS) before plotting an OB, ensuring only high-quality zones are shown.
✅ Automatic Mitigation: Zones automatically change to a "mitigated" state (Grey) once the price touches the 50% Mean Threshold (the equilibrium of the block).
✅ Customizable Break Logic: Choose between "Close" (conservative) or "Wick" (aggressive) to determine when an Order Block is considered broken or invalidated.
✅ Refined Visualization: Includes dashed median lines for the Mean Threshold and dynamic labels that identify the source timeframe (e.g., "OB D1").
⚙️ Settings Explained
Swing Length: Adjust how significant a price peak must be to qualify as a structure break.
Break Type: Decide if a candle must close past the OB or just wick through it to invalidate the zone.
Zone via Wicks: Toggle between drawing the OB based on the full candle range (wicks) or just the candle body.
Show Broken OBs: Choose to keep a historical record of failed blocks or keep your chart clean by auto-deleting them.
💡 Strategy Implementation
The HTF Anchor: Look for the price to reach a Daily or Weekly Order Block.
The Refinement: Once inside an HTF zone, look for a "nested" 15m or 5m Order Block to form.
The Entry: Enter on the first touch of the LTF Order Block, targeting the 50% Mean Threshold of the HTF zone or the next opposing liquidity level.
Premium Heatmap Volume UltimateShows premiums for the latest Volume/Contract negotiated plus Volume Bars
MVRV Ratio Indicator [captainua]MVRV Ratio Indicator - Market Value to Realized Value Ratio
Overview
This professional indicator calculates and visualizes the MVRV (Market Value to Realized Value) ratio (raw, non-Z-score) with optional MVRV-Z overlay, comparing current market capitalization to realized capitalization to help identify potential market tops and bottoms for cryptocurrency markets.
Unlike MVRV-Z which normalizes the ratio using standard deviation (creating a Z-score), the raw MVRV ratio provides direct comparison between market cap and realized cap. This indicator enhances the raw ratio with historical percentile bands, percentile rank calculation, divergence detection, historical event logging, dynamic color gradients, enhanced visualization options, optional MVRV-Z comparison, and NEW advanced metrics including Risk Score, MVRV Momentum, Time in Zone tracking, and Price Target calculations.
NEW Features in This Version:
• Risk Score (0-100): Composite indicator based on MVRV level and percentile rank for instant risk assessment
• MVRV Momentum: Rate of change indicator showing trend direction (↑ Increasing, ↓ Decreasing, → Flat)
• Time in Zone: Tracks how long MVRV has been in the current zone (top/bottom/neutral) in bars
• Price Targets: Calculates price levels at key MVRV thresholds (fair value, top, bottom)
• Input Validation: Warns about invalid parameter combinations (e.g., extreme thresholds out of order)
• Multiple Smoothing Options: SMA, EMA, WMA, RMA for noise reduction
• Performance Optimized: Cached request.security() calls, ta.percentrank() for efficiency
• Human-Readable Timestamps: Event log now shows dates (YYYY-MM-DD) instead of bar indices
Core Calculations
MVRV Ratio Calculation:
The script calculates MVRV ratio using the standard formula: MVRV Ratio = Market Cap / Realized Cap. This formula provides a direct ratio without normalization, showing how many times the current market cap exceeds (or falls below) the realized cap.
Market Capitalization (Market Cap): The total market value of all coins in circulation, calculated as current price × circulating supply. This represents the market's current valuation of the asset.
Realized Capitalization (Realized Cap): The sum of the value of each coin when it last moved on-chain, representing the average cost basis of all coins.
Raw Ratio Interpretation:
- Ratio > 3.5: Extreme overvaluation (market cap significantly above realized cap)
- Ratio 2.5-3.5: Moderate overvaluation
- Ratio 1.0-2.5: Fair value to moderate overvaluation
- Ratio 0.8-1.0: Fair value to moderate undervaluation
- Ratio < 0.8: Undervaluation (market cap close to or below realized cap)
Risk Score (NEW):
Composite risk indicator ranging from 0-100:
- 80-100: Very High Risk (extreme overvaluation)
- 60-80: High Risk (overvaluation)
- 40-60: Moderate Risk (fair value range)
- 20-40: Low Risk (undervaluation)
- 0-20: Very Low Risk (extreme undervaluation)
The risk score uses percentile rank when available, or normalizes MVRV ratio to the 0-100 scale based on configured thresholds.
MVRV Momentum (NEW):
Rate of change indicator showing trend direction:
- ↑ Increasing: MVRV ratio rising (momentum > 0.01)
- ↓ Decreasing: MVRV ratio falling (momentum < -0.01)
- → Flat: MVRV ratio stable
- Displays percentage change over configurable period (default: 14 bars)
Time in Zone (NEW):
Tracks duration in current zone:
- Top Zone: Bars spent above top threshold (3.5)
- Bottom Zone: Bars spent below bottom threshold (0.8)
- Neutral Zone: Bars spent between thresholds
- Resets when zone changes
- Helps identify prolonged extreme conditions
Price Targets (NEW):
Calculates price levels at key MVRV thresholds:
- Price @ Fair Value: Price when MVRV = 1.0
- Price @ Top Threshold: Price when MVRV = 3.5
- Price @ Bottom Threshold: Price when MVRV = 0.8
- Based on estimated realized price (current price / MVRV ratio)
Data Source Selection:
The indicator supports multiple data source options for maximum flexibility:
Glassnode (Recommended):
- Uses Glassnode Market Cap data
- Calculates MVRV from Market Cap / Realized Cap
- Symbol format: GLASSNODE:{TOKEN}_MARKETCAP
- Requires Glassnode data subscription
- Also requires CoinMetrics for Realized Cap
- Best for comprehensive analysis with MVRV-Z comparison
IntoTheBlock:
- Direct MVRV ratio data from IntoTheBlock
- Simplest option - no calculations required
- Works for BTC and other supported tokens
- Symbol format: INTOTHEBLOCK:{TOKEN}_MVRV
- Requires IntoTheBlock data subscription on TradingView
Historical Percentile Bands:
The indicator calculates rolling percentile bands over a configurable period (default: 500 bars):
- 5th Percentile: Very low historical values (extreme undervaluation range)
- 25th Percentile: Lower quartile (undervaluation range)
- 50th Percentile: Median (fair value center)
- 75th Percentile: Upper quartile (overvaluation range)
- 95th Percentile: Very high historical values (extreme overvaluation range)
Percentile bands use ta.percentile_nearest_rank() for efficient calculation.
Percentile Rank:
Percentile rank shows where the current MVRV ratio sits in the historical distribution (0-100%):
- 0-25%: Bottom quartile (undervaluation)
- 25-50%: Lower half (moderate undervaluation to fair value)
- 50-75%: Upper half (fair value to moderate overvaluation)
- 75-100%: Top quartile (overvaluation)
Now uses efficient ta.percentrank() instead of array-based calculation.
Input Validation (NEW):
The indicator validates input parameters and displays warnings for:
- Extreme High Threshold should be > Top Threshold
- Extreme Low Threshold should be < Bottom Threshold
- Min Lookback Range must be < Max Lookback Range
- Top Threshold should be > Moderate Overvalued
- Moderate Overvalued should be > Fair Value
- Fair Value should be > Bottom Threshold
- Rapid Increase Threshold should be > 0
- Rapid Decrease Threshold should be < 0
Smoothing Options (Enhanced):
Multiple smoothing types available:
- SMA: Simple Moving Average (equal weight)
- EMA: Exponential Moving Average (more weight to recent)
- WMA: Weighted Moving Average (linear weight)
- RMA: Running Moving Average (Wilder's smoothing)
Reference Levels
Overvalued (Potential Top) - 3.5:
The 3.5 level indicates potentially extreme overvaluation. When MVRV ratio exceeds this threshold:
- Market cap is significantly above realized cap
- Potential selling opportunities for profit-taking
- Risk of market corrections or reversals
- Risk Score typically >80 (Very High Risk)
Moderately Overvalued - 2.5:
The 2.5 level indicates moderate overvaluation:
- Market cap is above realized cap but not extreme
- Caution warranted but not necessarily sell signal
- Risk Score typically 60-80 (High Risk)
Fair Value - 1.0:
The 1.0 level indicates fair valuation:
- Market cap equals realized cap
- Balanced market conditions
- Risk Score typically 40-60 (Moderate Risk)
Undervalued (Potential Bottom) - 0.8:
The 0.8 level indicates potentially undervalued conditions:
- Market cap is close to or below realized cap
- Potential buying opportunities for accumulation
- Risk Score typically <40 (Low Risk)
Visual Features
MVRV Ratio Line:
The main indicator line displays the calculated MVRV ratio with dynamic color gradient:
- Bright Red: Extreme overvaluation (ratio ≥ top threshold + 0.5)
- Orange: High overvaluation (ratio ≥ top threshold)
- Cornflower Blue: Neutral/Fair value (around fair value level)
- Deep Sky Blue: Low/Undervaluation (ratio ≤ bottom threshold)
- Bright Green: Extreme undervaluation (ratio ≤ bottom threshold - 0.1)
Can also be displayed as histogram/bar chart.
Historical Percentile Bands:
Five percentile bands with optional fills:
- 5th Percentile (Blue): Very low historical range
- 25th Percentile (Blue): Lower quartile
- 50th Percentile (Gray): Historical median
- 75th Percentile (Orange): Upper quartile
- 95th Percentile (Red): Very high historical range
Reference Lines:
Horizontal reference lines at key levels (all customizable):
- Top Threshold (default 3.5): Purple/violet
- Moderate Overvalued (default 2.5): Orange
- Fair Value (1.0): Gray
- Bottom Threshold (default 0.8): Blue
Background Highlights:
Optional background color highlights:
- High Zone (Maroon/Red): MVRV ratio ≥ top threshold
- Low Zone (Green): MVRV ratio ≤ bottom threshold
Divergence Detection:
Advanced divergence detection between price and MVRV ratio:
- Regular Bullish Divergence: Price lower low + MVRV higher low
- Regular Bearish Divergence: Price higher high + MVRV lower high
- Hidden Bullish Divergence: Price higher low + MVRV lower low
- Hidden Bearish Divergence: Price lower high + MVRV higher high
- Visual markers with icons (🐂/🐻) and connecting lines
Historical Event Log (Enhanced):
Comprehensive event tracking:
- Tracks zone entries/exits, extreme values, cross events
- Now displays human-readable dates (YYYY-MM-DD) instead of bar indices
- Color-coded events (red for top/high, green for bottom/low)
- Configurable log size (5-50 events)
Information Table (Enhanced):
Comprehensive on-chart table with NEW metrics:
Current Values:
- MVRV Ratio: Current ratio value
- Percentile Rank: Position in historical distribution (0-100%)
- Risk Score (NEW): Composite risk indicator (0-100) with risk level
- Market Status: Current market condition
- Signal: Trading signal (Strong Buy/Buy/Hold/Sell/Strong Sell)
- MVRV Momentum (NEW): Trend direction with percentage change
- Time in Zone (NEW): Current zone and duration in bars
Price Information (Enhanced):
- Current Price: Current market price
- Est. Realized Price: Estimated realized price
- Price @ Fair Value (NEW): Price when MVRV = 1.0
- Price @ Top Threshold (NEW): Price when MVRV = 3.5
- Price @ Bottom Threshold (NEW): Price when MVRV = 0.8
Other Metrics:
- Percentile Bands: Range from 5th to 95th percentile
- MVRV-Z Score: Z-score value (when comparison enabled)
- Change (1D/1W/1M): Ratio change over timeframes
- To Top/Bottom: Percentage distance to key levels
- Historical Range: Percentage below ATH / above ATL
- 30D Volatility: Standard deviation
Historical Event Log:
- Recent events with dates and values
- Color-coded for quick identification
Alert System
Comprehensive alerting capabilities:
Zone Alerts:
- Top Zone Entry/Exit
- Bottom Zone Entry/Exit
Cross Alerts:
- Cross Above/Below Top Threshold
- Cross Above/Below Fair Value (1.0)
Extreme Value Alerts:
- Extreme High (configurable, default: 4.5)
- Extreme Low (configurable, default: 0.7)
Rate of Change Alerts:
- Rapid Increase/Decrease
Divergence Alerts:
- Bullish/Bearish Divergence
- Hidden Bullish/Bearish Divergence
All alerts support cooldown to prevent spam.
Usage Instructions
Getting Started:
1. Select data source (Glassnode recommended)
2. Enable Risk Score for composite risk assessment (0-100)
3. Enable MVRV Momentum to track trend direction
4. Enable Time in Zone to see zone duration
5. Enable Price Targets to see price levels at key thresholds
6. Use weekly timeframe for cleaner signals
Risk-Based Position Sizing:
Use Risk Score to guide position sizing:
- Risk Score >80 (Very High Risk): Reduce/exit positions
- Risk Score 60-80 (High Risk): Smaller positions, caution
- Risk Score 40-60 (Moderate Risk): Normal positions
- Risk Score 20-40 (Low Risk): Larger positions opportunity
- Risk Score <20 (Very Low Risk): Strong accumulation zone
Momentum-Based Analysis:
Use MVRV Momentum for trend confirmation:
- ↑ Increasing + High MVRV: Late bull market, caution
- ↑ Increasing + Low MVRV: Recovery phase, bullish
- ↓ Decreasing + High MVRV: Distribution, potential top
- ↓ Decreasing + Low MVRV: Capitulation, accumulation opportunity
Zone Duration Analysis:
Use Time in Zone for context:
- Extended time in Top Zone: Late cycle, increased reversal risk
- Extended time in Bottom Zone: Accumulation opportunity
- Quick zone transitions: Higher volatility regime
Price Target Usage:
Use Price Targets for planning:
- Price @ Fair Value: Natural equilibrium level
- Price @ Top Threshold: Potential distribution target
- Price @ Bottom Threshold: Potential accumulation target
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel)
- Repainting Behavior: Minimal - calculations based on confirmed bar data
- Performance: Optimized with cached request.security() calls and ta.percentrank()
- Input Validation: Validates parameter combinations with warnings
- Compatibility: Works on all timeframes (data sources provide daily resolution)
- Edge Case Handling: Zero-division protection, NA value handling, boundary checks
Performance Optimizations:
- Cached request.security() calls for Market Cap, Realized Cap, and IntoTheBlock data
- Efficient ta.percentrank() replaces array-based percentile calculation
- Consolidated duplicate code (color functions, state tracking)
- Single-line ternary expressions for Pine Script compatibility
Constants:
- MAX_HISTORY_BARS = 5000 (TradingView's limit)
- PERCENTILE_EXTREME_HIGH = 90.0
- PERCENTILE_HIGH = 75.0
- PERCENTILE_MID = 50.0
- PERCENTILE_LOW = 25.0
- MIN_PERCENTILE_SAMPLES = 10
- DEFAULT_VOLATILITY_HIGH = 0.1
Known Limitations
- Data availability: Requires valid data subscription (IntoTheBlock, Glassnode, or CoinMetrics)
- Token support: Works with tokens supported by the selected data source
- Historical data: Percentile calculations require sufficient history (200+ bars recommended)
- Timeframe: Always uses daily resolution data from providers; works on all chart timeframes
- History limit: All lookback periods capped at 5000 bars
Changelog
Latest Version:
- Added Risk Score (0-100) composite indicator
- Added MVRV Momentum with trend direction
- Added Time in Zone tracking
- Added Price Target calculations
- Added Input Validation with warnings
- Added multiple smoothing options (SMA, EMA, WMA, RMA)
- Improved performance with cached security calls
- Replaced array-based percentile with ta.percentrank()
- Human-readable timestamps in event log (YYYY-MM-DD)
- Fixed hline() conditional value bug
- Consolidated duplicate code
- Updated indicator name for clarity
For detailed usage instructions, see the script comments.
Market Structure Master [Takeda Trades 2026]Market Structure Master
by @TakedaTradesOfficial
v1 01/26/2026
════════════════════════════════════════════════════════
DESCRIPTION:
5 MODES. COMPLETE MARKET STRUCTURE.
═════════════════════════════════════════════════════════
MODES
═════════════════════════════════════════════════════════
1. LONG - BUY at lows, TARGET at highs + Auto SL/TP
2. SHORT - SELL at highs, TARGET at lows + Auto SL/TP
3. HH LL - Labels Higher Highs and Lower Lows
4. NUMBERED - Sequential (#1, #2, #3...)
5. COLORED - Gradient (Bright→Dark)
Multi-timeframe • Auto SL/TP • Bar colors • Full customization
═════════════════════════════════════════════════════════
HOW TO TRADE
═════════════════════════════════════════════════════════
📈 LONG | 📉 SHORT
1. Label appears (BUY at low / SELL at high)
2. Price breaks line
3. Bar colors (green/red)
4. Auto SL + TP appear
5. Exit at TP/TARGET
Entry: Line break + Color | Stop: SL line | Target: TP/TARGET
🔢 NUMBERED
Conservative: #1 only | Moderate: 70% #1, 30% #2 | Aggressive: 50-30-20
Warning: #1-2 Safe | #3-4 Reduce | #5+ Exit
🎨 COLORED
Bright → ENTER | Medium → HOLD | Dark → EXIT
⚡ HH LL
Uptrend: HH series | Downtrend: LL series | Reversal: First opposite
═════════════════════════════════════════════════════════
STRATEGIES
═════════════════════════════════════════════════════════
Multi-Timeframe: Higher TF pivots on lower TF (1m+5m, 15m+1H, 4H+Daily)
Confluence: 2 instances, different TFs. Enter when both signal.
Pyramiding: #1: Full | #2: 50% | #3: 25% | #4+: No entry
Momentum: Trade bright colors only. Exit medium, avoid dark.
═════════════════════════════════════════════════════════
SETTINGS
═════════════════════════════════════════════════════════
Scalp: 3/3, LONG/SHORT | Day: 5/5, NUMBERED/COLORED | Swing: 10/10, HH LL
Lower bars = More signals | Higher bars = Quality
═════════════════════════════════════════════════════════
QUICK START
═════════════════════════════════════════════════════════
1. Select mode
2. Choose timeframe
3. Set bars (5/5 default)
4. Enable SL/TP
5. Wait for label + line break
6. Enter on color change
═════════════════════════════════════════════════════════
TIPS
═════════════════════════════════════════════════════════
✓ Wait for line break | ✓ Use SL | ✓ Scale with NUMBERED | ✓ Bright colors only | ✓ Higher TF = Quality
═════════════════════════════════════════════════════════
⚠️ DISCLAIMER
═════════════════════════════════════════════════════════
Educational only. Use risk management. Past results don't guarantee future.
© 2026 Takeda Trades
BitoAlliance Dual StructureThis consists of two sets of structure indicators.
Parameters can be individually set to create internal and external structures,
and colors can be individually assigned.
CHoCH represents structural transitions,
and BOS represents structural continuation.
Multi-Timeframe Order BlocksDesigned to identify and visualize key supply and demand zones based on order block theory across multiple timeframes. The indicator detects order blocks by analyzing sequential candle patterns and price movement thresholds to highlight potential reversal or continuation zones where institutional buying or selling activity may have occurred.
The indicator works by scanning for clusters of consecutive bullish or bearish candles followed by a significant price move, which signals the formation of an order block. It then plots these zones as colored boxes on the chart—green for demand (bullish order blocks) and red for supply (bearish order blocks). The zones can be based on candle bodies or wicks, depending on user preference, and the indicator supports multi-timeframe analysis by allowing optional higher timeframe inputs.
How It Works:
Sequential Candle Detection: The indicator looks for a specified number of consecutive bullish or bearish candles (configurable by the user) to identify potential order blocks.
Price Movement Threshold: It checks if the price movement after the order block formation exceeds a user-defined percentage threshold, ensuring only significant zones are marked.
Zone Plotting: Once an order block is confirmed, the indicator draws a supply or demand zone as a box on the chart, using either candle bodies or wicks for zone boundaries.
Multi-Timeframe Support: Users can optionally specify higher timeframes to incorporate broader market context, enhancing the reliability of the zones.
Zone Management: The indicator limits the number of zones displayed to avoid clutter, automatically removing the oldest zones when the maximum count is exceeded.
How to Interpret:
Demand Zones (Green Boxes): These represent areas where buying pressure was strong enough to create a bullish order block. Price often finds support here, making these zones potential entry points for long trades or areas to watch for price bounces.
Supply Zones (Red Boxes): These indicate areas of strong selling pressure forming bearish order blocks. Price may face resistance in these zones, which can be used as potential exit points for longs or entry points for shorts.
Multi-Timeframe Confirmation: Zones identified on higher timeframes tend to be stronger and more reliable. Use the optional higher timeframe inputs to align your trades with broader market trends.
Use with Other Indicators: Combine order block zones with volume, momentum, or trend indicators to improve trade confirmation and risk management.
Zone Breaks: A decisive break and close beyond a supply or demand zone may signal a shift in market sentiment and potential trend continuation or reversal.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves significant risk, and it is possible to lose more than your initial investment. Users should conduct their own research and consider their financial situation carefully before making any trading decisions. The developer and publisher of this indicator are not responsible for any trading losses or damages incurred. Always use proper risk management and consult with a licensed financial advisor if needed.
Sultan VSA Pro - CompleteSultan VSA Pro - Complete Volume Spread Analysis System
Professional-grade indicator featuring ALL 18+ Wyckoff/VSA patterns for institutional-level market analysis.
✅ COMPLETE SIGNAL LIBRARY:
📊 **Basic VSA Patterns:**
• No Demand (ND) - Weakness at top
• No Supply (NS) - Strength at bottom
• UpThrust (UT) - False breakout up
• Shakeout (SO) - False breakdown
• Test (T) - Re-test of support
• Spring (SP) - Bear trap reversal
🔥 **Climax Signals:**
• Selling Climax (SC) - Panic bottom
• Buying Climax (BC) - Euphoria top
• Bag Holding (BH) - Distribution complete
• End Rising Market (ERM) - Topping pattern
💪 **Effort Signals:**
• Effort to Rise (ER) - Resistance break with volume
• Effort to Fall (EF) - Support break with volume
• Absorption (Abso) - Range breakout absorbed
• Stopping Volume (SV) - Falling knife catch
🎯 **Wyckoff Accumulation:**
• Preliminary Support (PS) - First sign of support
• Secondary Test (ST) - Re-test after SC
• Automatic Rally (AR) - Relief rally after SC
• Preliminary Supply (PSY) - First sign of distribution
⚡ **Reversal Patterns:**
• 2-Bar Reversals (B/S) - Quick reversals
• 3-Bar Reversals (B3/S3) - Confirmed reversals
⚙️ KEY FEATURES:
✓ 18+ Professional VSA Patterns
✓ ALL signals OFF by default (clean start)
✓ Individual signal toggles (pick what you need)
✓ Customizable sensitivity for each pattern
✓ Multi-timeframe compatible
✓ Color-coded bars (4 priority levels)
✓ Smart label placement (no overlap)
✓ Detailed tooltips on every signal
✓ Complete alert system
✓ Legend dashboard
✓ 3 Moving Averages (optional)
✓ SoS/SoW scoring system
🎨 COLOR SCHEME:
• RED bars = No Demand (Bearish)
• GREEN bars = No Supply (Bullish)
• PURPLE bars = UpThrust (Bearish)
• LIME bars = Spring (Bullish)
📊 BEST USED WITH:
• Support/Resistance levels
• Trend analysis tools
• Volume confirmation
• Price action analysis
💡 TRADING APPLICATION:
This indicator helps identify:
✓ Smart money distribution (selling)
✓ Smart money accumulation (buying)
✓ False breakouts/breakdowns
✓ High-probability reversal points
✓ Market manipulation patterns
⚠️ IMPORTANT NOTES:
• Always confirm with price action
• Use multiple timeframe analysis
• Combine with trend indicators
• Risk management is essential
• Not a standalone trading system
📚 METHODOLOGY:
Based on Richard Wyckoff's Volume Spread Analysis principles, focusing on the relationship between:
• Price movement (Spread)
• Volume (Effort)
• Closing position within the bar
🔧 SETTINGS:
All signals disabled by default - enable only what you need:
• NS/ND Detection (wick % threshold)
• UT Detection (body %, wick ratio)
• Volume lookback periods
• Location filters (SMA)
🎨 CHART SETTINGS RECOMMENDATION:
---------------------------------
• Timeframe: Works on all timeframes (4H, Daily recommended)
• Chart Type: Candlestick
• Theme: Dark theme for best visibility
• Volume: Enable volume bars below chart
📖 USER INSTRUCTIONS
---------------------------------------
HOW TO USE:
1. Add indicator to chart
2. Open Settings (⚙️ icon)
3. Go to "Signal Visibility" section
4. Enable ONLY the signals you want to track:
**For Beginners - Start with:**
- Show Selling Climax (SC) - Major bottoms
- Show Buying Climax (BC) - Major tops
- Show Spring (SP) - Best long setups
**Intermediate - Add these:**
- Show No Supply (NS)
- Show UpThrust (UT)
- Show Absorption (Abso)
**Advanced - Full Wyckoff:**
- Enable PS, ST, AR for accumulation tracking
- Enable PSY for distribution tracking
- Enable Effort signals (ER/EF) for breakouts
5. Adjust sensitivity in "VSA Logic Settings" if needed
6. Set up alerts:
- Click Alert icon (🔔)
- Select "Rashid VSA Pro"
- Choose specific signal alert
7. Interpretation:
- Watch for bar color changes
- Read tooltip for signal details
- Confirm with support/resistance
- Multiple signals = stronger confirmation
SIGNAL PRIORITY GUIDE:
🔴 **HIGHEST PRIORITY (Major Reversals):**
• Selling Climax (SC) - Bottom reversal
• Buying Climax (BC) - Top reversal
• Spring (SP) - Confirmed accumulation
• Stopping Volume (SV) - Panic absorption
🟡 **HIGH PRIORITY (Strong Signals):**
• UpThrust (UT) - Distribution
• Bag Holding (BH) - Weak hands trapped
• End Rising Market (ERM) - Topping
• Shakeout (SO) - Accumulation start
🟢 **MEDIUM PRIORITY (Confirmation):**
• No Supply (NS) - Support holding
• No Demand (ND) - Resistance holding
• Effort to Rise/Fall (ER/EF) - Breakouts
• 3-Bar Reversals (B3/S3)
⚪ **CONTEXT SIGNALS (Background Info):**
• Test (T) - Re-testing
• Preliminary Support/Supply (PS/PSY)
• Secondary Test (ST)
• Auto Rally (AR)
• 2-Bar Reversals (B/S)
📧 RELEASE NOTES (Version 1.0):
-------------------------------
🎉 Initial Release - Sultan VSA Pro
✨ Features:
• 18+ complete VSA/Wyckoff patterns
• All signals OFF by default (clean start)
• Individual toggle for each signal
• 4-tier color priority system
• Smart label placement (no overlap)
• Comprehensive tooltips
• Full alert system for all patterns
• Legend dashboard
• 3 optional Moving Averages
• SoS/SoW strength scoring
🎯 Signal Categories:
• Basic VSA (ND, NS, UT, SO, Test, Spring)
• Climax Patterns (SC, BC, BH, ERM)
• Effort Signals (ER, EF, Absorption, SV)
• Wyckoff Accumulation (PS, ST, AR, PSY)
• Reversals (2-Bar, 3-Bar patterns)
🔧 Customization:
• Adjustable wick percentages
• Volume multipliers
• Lookback periods
• MA filters
• Display options
🙏 Credits:
Based on Richard Wyckoff's Volume Spread Analysis
and Tom Williams' Master the Markets methodology.
Enhanced with modern Wyckoff accumulation/distribution tracking.
Stockbee Screener - Momentum Burst & Episodic Pivot ScannerPLEASE NOTE: This is a screening tool, not a chart indicator!
Overview
A multi-filter screening indicator based on Stockbee/Pradeep Bonde's momentum trading methodology. This screener combines his signature setups to identify stocks exhibiting the characteristics of momentum bursts and institutional accumulation.
You can ditch that extra TC2000 subscription now (you're welcome) - spend the money on some Sugar Babies instead.
The Stockbee Philosophy
Stocks move in momentum bursts of 3 to 5 days, during which they can gain 8-40%. The key to profiting from these moves is identifying range expansion at the beginning of the burst—not chasing after the move is already underway. This screener implements multiple Stockbee scans to catch these setups early.
---
Core Indicators
TI65 - Trend Intensity
Measures whether a stock is in a confirmed uptrend by comparing short-term to medium-term price action.
Formula: avgC7 / avgC65 >= 1.05
When the 7-day average close is 5% or more above the 65-day average close, the stock demonstrates trending momentum. This filters for stocks with established directional movement rather than choppy price action.
9M Volume Flag
Are you a lover of dogs, cats, sugar babies or...umm...lava?? If yes, this feature's for you: it identifies potential Episodic Pivots (EPs)—catalyst-driven moves with massive institutional participation.
When a stock trades 9 million+ shares in a single day, it signals serious accumulation that often precedes multi-day or multi-week runs. These volume surges typically coincide with earnings surprises, news catalysts, or sector rotations that cause the market to fundamentally re-evaluate a stock.
+4% Change Flag
Detects bullish range expansion—the signature of a momentum burst beginning.
A 4% single-day gain (especially when preceded by quiet, narrow-range days) indicates the start of potential explosive movement. This is Stockbee's primary scan for catching momentum bursts on day one.
---
Pattern Filters
Ants TTT (Tight-Tight-Tight - yeah, like that Backstreet Boys T-shirt you still wear)
Identifies tight consolidation patterns indicating controlled institutional accumulation.
Criteria:
- Minimum volume threshold met over recent days
- 3-bar price range extremely tight (≤1.5% change)
- Today's range even tighter (≤0.3% change)
- No disruptive gaps in lookback period
These "quiet before the storm" setups often precede explosive breakouts as institutions finish accumulating positions.
Ants Bullish (Momentum Without Gaps)
Finds stocks with controlled, sustainable momentum—steady accumulation without the volatility of gap moves.
Criteria:
- Momentum confirmed (20% above 30-day low, OR 7-day avg 5% above 65-day avg)
- Controlled daily moves (no wild single-day swings)
- No large gaps in lookback period
- Consistent volume
This filter favors "stair-step" advances that indicate methodical institutional buying.
Bullish Combo
Stockbee's combination scan for high-probability entries combining price action and volume.
Condition 1 - Bullish Candle:
- Close ≥ $0.90 above open
- Volume > 1M shares
- Today's range ≥ yesterday's range
- Prior day was stable (≤2% move)
Condition 2 - Breakout:
- Price up ≥4% from prior close
- Volume surge (today > yesterday)
- Close strength ≥70% (closing near highs)
---
Additional Metrics which may support decision-making
┌─────────────────┬──────────────────────────────────────────────────────────────────────────┐
│ Metric │ Description │
├─────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ ADR% │ Average Daily Range as percentage — measures volatility │
├─────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ ATR Extension │ Distance from 50d SMA in ATR units — identifies overextended stocks │
├─────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Below 10/21 EMA │ Pullback flags for timing entries in uptrends │
├─────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ +DI/-DI Filter │ Directional indicator confirmation for trend direction │
└─────────────────┴──────────────────────────────────────────────────────────────────────────┘
SMT FILL indicatorSMT FILL Indicator – User Guide
The SMT FILL indicator is a multi-market tool that tracks Fair Value Gaps (FVGs) in NQ, ES, and YM and monitors when those inefficiencies get filled — all organized using a time-cycle structure (sessions, days, weeks, etc.).
This helps you understand where price moved too fast, when that happened, and when the market comes back to rebalance it.
🔹 What is an FVG?
A Fair Value Gap forms when price moves aggressively and leaves an imbalance:
Bullish FVG → Current candle’s low is above the high from 2 candles ago
Bearish FVG → Current candle’s high is below the low from 2 candles ago
These zones often act like magnets — price frequently returns to “fill” them later.
🔹 What makes this indicator different?
Most FVG tools only mark gaps on one chart.
This indicator adds three major upgrades:
1️⃣ Multi-Asset SMT Perspective
It tracks FVGs on:
NQ (Nasdaq)
ES (S&P 500)
YM (Dow Jones)
This lets you see:
Which market created the imbalance
Whether other indices confirm or diverge
This is powerful for SMT (Smart Money Technique) traders.
2️⃣ Time-Cycle Classification (Very Important)
Every FVG is labeled by when in the market cycle it formed (New York time).
Cycle Meaning
Mini Cycle (1m) Micro intraday time fragments
Session Cycle (5m) 90-minute blocks inside Asia / London / NY sessions
Daily Cycle (15m) Asia / London / NY AM / NY PM
Weekly Cycle (1H) Progression through the trading week
Monthly Cycle (4H) Week of month
HTF Daily Day of week
HTF Weekly Week of month (higher timeframe view)
This helps answer:
“Was this imbalance created during London? NY open? Late week? Early month?”
That adds time context, not just price levels.
3️⃣ Automatic Lifecycle Tracking
The indicator:
Detects FVGs
Draws them as boxes
Tracks if they are still open
Marks them as filled when price trades through them
Clears old gaps when a new cycle begins (new session, day, week, etc.)
So your chart only shows relevant imbalances for the current cycle.
🔹 What you see on the chart
When your chart matches the asset & timeframe:
🟩 Green Box
Bullish FVG (gap below price)
🟥 Red Box
Bearish FVG (gap above price)
⬜ Gray Box
FVG that has been filled
Border Color
Indicates which cycle the gap belongs to.
Boxes can either:
Extend forward until filled
Or remain only around the 3-candle formation
🔹 Alerts
You can enable alerts when gaps from selected cycles get filled.
You can also limit alerts to a specific time window (e.g., trading hours only).
🔹 How traders typically use this
Traders use this tool to:
✔ Spot unfinished business in the market
✔ Understand which session or cycle created imbalance
✔ Anticipate mean reversion or liquidity draws
✔ Compare how NQ, ES, and YM behave relative to each other (SMT context)
✔ Build narrative:
“NY AM created an imbalance → price may return later in the session/week to fill it”
📌 In simple terms
This indicator shows where the market moved too fast, when that happened in the time cycle, and when price comes back to rebalance it — across all three major US indices.
It adds time structure + multi-market logic to standard FVG analysis.
Market Trend AnalyserThis indicator identifies high-quality entries using market structure concepts such as Change of Character (ChoCH) and Break of Structure (BOS), rather than relying on lagging traditional indicators.
How to use :
Enter trades on ChoCH and BOS signals (both long and short).
To reduce market noise, it is recommended to apply:
An ATR filter with a minimum value of 1
An ADX filter with a minimum value of 15
You may also enable a moving average (MA) filter to avoid trading against the prevailing trend.
Impulse Move FVG TrackerThis script identifies strong directional impulse moves and automatically plots Fair Value Gaps (FVGs) only in locations that are contextually relevant to those moves. It tracks consecutive candle bodies to determine when a large move up or down has occurred, calculates the midpoint of that impulse, and then displays bullish FVGs above the midpoint after strong upward moves and bearish FVGs below the midpoint after strong downward moves. The script operates only within a user-selected, scrollable time-of-day window and allows full control over FVG colors, extension length, minimum impulse size, and how many of the most recent FVGs remain on the chart. It is designed to reduce noise by showing FVGs only where price displacement suggests meaningful imbalance rather than marking every gap indiscriminately.
KXR Capital - Monthly First 3Days High Low (with Avg)This script calculates the following:
1) The Highest High of the first 3 trading days of the month.
2) The Lowest Low of the first 3 trading days of the month.
3) The Midpoint of these High's and Low's.
4) The Pivot Point of (#1+#2+Previous Days Close)/3.
5) The Monthly Opening Price.
These prices can provide guidance on Bullishness or Bearishness for the remaining price action of the month. Price closing above or below the First 3DHH or First 3DLL can give you a trade in that respective direction. The Pivot Point can act as a flip line (reverse point) in the current direction. The midpoint and opening price support price action decisions.
Conceptually its a monthly approach to the classic Opening Range Breakout techniques that are used on an intraday basis.
True FVGs v2This script identifies and plots true Fair Value Gaps (FVGs) using a strict three-candle structure, distinguishing between two formation types while accounting for doji candles. It draws shaded boxes to represent untraded price imbalances, with Type A and Type B gaps defined by precise wick-to-body and body-to-body relationships that reflect institutional price displacement. The indicator allows the user to control how far each FVG extends and how many recent FVGs remain visible, keeping the chart clean and relevant. This is helpful because it highlights high-probability areas where price is likely to react, enabling more precise trade planning, entries, and risk management without visual clutter. It expands on the first script (True FVGs) and allows for a more controlled design fitting each trader's desires.
Smart Trader, Episode 04, by Ata Sabanci, Candles and Z ScoresSmart Trader, Episode 04
Candles and Z-Scores: A Statistical Approach to Market Analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OVERVIEW
This indicator applies Z-Score statistical analysis to measure how unusual current market conditions are compared to historical norms. It simultaneously analyzes five key metrics: Price, Total Volume, Buy Volume, Sell Volume, and Delta (Buy minus Sell) . The system detects 60 academically-researched market scenarios and provides visual feedback through Z-Lines (support/resistance levels), Event Markers, Trend Channels, and a comprehensive Dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CORE CONCEPT: WHY Z-SCORE?
A Z-Score measures how many standard deviations a value is from its mean. In financial markets, extreme Z-Scores indicate statistically rare events that often precede significant price movements.
Mathematical Formula:
Z = (Current Value - Mean) / Standard Deviation
Interpretation:
• Z ≥ +2.0: Extremely high (occurs approximately 2.5% of the time)
• Z ≥ +1.0: Above average
• Z ≈ 0: Normal (near the mean)
• Z ≤ -1.0: Below average
• Z ≤ -2.0: Extremely low (occurs approximately 2.5% of the time)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ACADEMIC FOUNDATION
This indicator is inspired by / grounded in market microstructure literature (abbreviated citations in-script) from market microstructure literature:
• Price-Volume Relationship - Karpoff (1987), Journal of Financial and Quantitative Analysis, Cambridge
Volume is positively correlated with price change magnitude
• Order Flow Imbalance - Cont, Kukanov, Stoikov (2014), Journal of Financial Econometrics
Order imbalance drives price more reliably than raw volume
• Informed Trading (PIN Model) - Easley, Kiefer, O'Hara, Paperman (1996), Journal of Finance
Buy/Sell imbalance reveals informed trader activity
• Mixture of Distributions - Tauchen & Pitts (1983), Clark (1973)
Volume clusters with volatility regimes
• Volume Predictability - Gervais, Kaniel, Mingelgrin (2001)
Volume shocks predict future returns
• Liquidity & Order Imbalance - Chordia, Roll, Subrahmanyam (2002)
Order imbalance affects short-term returns
• Volume-Return Dynamics - Llorente, Michaely, Saar, Wang (2002)
Speculation vs. risk-sharing patterns
• Reversal vs. Continuation - Campbell, Grossman, Wang (MIT)
High volume predicts lower autocorrelation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VOLUME ENGINE
The indicator offers two methods for decomposing total volume into Buy and Sell components:
Method 1: Geometry (Approximation)
Uses candle structure to estimate buying and selling pressure:
Buy Volume = Total Volume × (Close - Low) / (High - Low)
Sell Volume = Total Volume × (High - Close) / (High - Low)
• Works on all instruments without additional data requirements
• Fast calculation
• Less precise than intrabar method
Method 2: Intrabar (Precise)
Uses Lower Timeframe (LTF) tick/second data to aggregate actual up-ticks versus down-ticks:
• More accurate volume decomposition
• Requires LTF data availability
• Configurable LTF: 1T (tick), 1S, 15S, 1M
Delta Calculation:
Delta = Buy Volume - Sell Volume
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Z-SCORE SYSTEM
The system calculates Z-Scores for five metrics simultaneously, using a configurable lookback period (default: 20 bars):
• Zp (Price Z-Score): Measures price deviation from its mean
• Zv (Volume Z-Score): Measures total volume deviation
• Zbuy (Buy Volume Z-Score): Measures buying pressure deviation
• Zsell (Sell Volume Z-Score): Measures selling pressure deviation
• ZΔ (Delta Z-Score): Measures order flow imbalance deviation
Threshold Constants:
• ZH (Z High) = 2.0: Extreme threshold
• ZM (Z Medium) = 1.0: Moderate threshold
• Z0 (Z Zero) = 0.5: Near-zero threshold
Group System:
The analysis window is divided into groups (default: 5 groups × 20 bars = 100 bar total window). Group numbers (1, 2, 3...) are displayed above candles when enabled, helping identify the relative age of detected levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Z-LINES (SUPPORT/RESISTANCE LEVELS)
When any metric reaches an extreme Z-Score, the system marks that price level as a significant support or resistance zone.
Detection Logic:
• Upper Z-Line: Drawn from the HIGH when Z ≥ upper threshold (default +2.0)
• Lower Z-Line: Drawn from the LOW when Z ≤ lower threshold (default -2.0)
Multi-Metric Detection:
Z-Lines can be triggered by any of the five metrics (Price, Volume, Buy, Sell, Delta). When multiple metrics trigger at similar price levels, they are clustered together into a single combined label showing all contributing metrics.
Persistence:
Z-Lines persist for the entire analysis window (Period × Groups bars) and are NOT removed when price touches them. This allows traders to see historical support/resistance levels that may still be relevant.
Anti-Overlap System:
Labels are automatically repositioned to prevent overlap. The "Label Min Gap (%)" setting controls minimum vertical separation between ALL labels (both upper and lower), ensuring readability even when multiple levels cluster together.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EVENT DETECTION ENGINE (60 SCENARIOS)
The system analyzes 60 distinct market scenarios based on Z-Score combinations. Each scenario is derived from academic research and assigned a confidence score based on signal strength and alignment.
Notation:
• Zp = Price Z-Score
• Zv = Total Volume Z-Score
• Zbuy = Buy Volume Z-Score
• Zsell = Sell Volume Z-Score
• ZΔ = Delta Z-Score
• dirP = Price direction (+1 if Zp > 0.5, -1 if Zp < -0.5, else 0)
• = Previous bar value
• ZH = 2.0 (High threshold)
• ZM = 1.0 (Medium threshold)
• Z0 = 0.5 (Zero threshold)
─────────────────────────────────────────────────────────────
CATEGORY A: PRICE-VOLUME (Events 1-10)
Based on: Karpoff (1987), Tauchen-Pitts (1983), Clark (1973)
─────────────────────────────────────────────────────────────
Event 1: Breakout Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Bullish/Bearish (follows price direction)
Event 2: Trend Strength Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH
Direction: Follows price direction
Event 3: Fragile Move
|Zp| ≥ ZH AND Zv ≤ -ZM
Direction: Warning (price move without volume support)
Event 4: Weak Rally
Zp ≥ ZH AND Zv ≤ -ZH
Direction: Warning (price up without volume)
Event 5: Weak Selloff
Zp ≤ -ZH AND Zv ≤ -ZH
Direction: Warning (price down without volume)
Event 6: Momentum Build
ZM ≤ |Zp| < ZH AND Zv ≥ ZH
Direction: Follows price direction
Event 7: Churn
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (high volume, low price movement)
Event 8: Quiet Compression
|Zp| ≤ Z0 AND Zv ≤ -ZH
Direction: Neutral (low volume, low price movement)
Event 9: High Volume Regime
Zv ≥ ZH
Direction: Neutral
Event 10: Low Volume Regime
Zv ≤ -ZH
Direction: Neutral
─────────────────────────────────────────────────────────────
CATEGORY B: ORDER-FLOW / DELTA (Events 11-16)
Based on: Cont, Kukanov, Stoikov (2014), Easley, Kiefer, O'Hara, Paperman (1996)
─────────────────────────────────────────────────────────────
Event 11: Imbalance Drives Price
|ZΔ| ≥ ZH AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction (dirP), with delta alignment required
Event 12: Divergence Top
Zp ≥ ZH AND ZΔ ≤ -ZH
Direction: Warning (distribution at top)
Event 13: Divergence Bottom
Zp ≤ -ZH AND ZΔ ≥ ZH
Direction: Warning (accumulation at bottom)
Event 14: Absorption Positive
|Zp| ≤ Z0 AND Zv ≥ ZH AND ZΔ ≥ ZH
Direction: Bullish (buy absorption, support forming)
Event 15: Absorption Negative
|Zp| ≤ Z0 AND Zv ≥ ZH AND ZΔ ≤ -ZH
Direction: Bearish (sell absorption, resistance forming)
Event 16: Depth Wall
Zv ≥ ZH AND |ZΔ| ≥ ZH AND |Zp| ≤ Z0
Direction: Neutral (market depth absorbing)
─────────────────────────────────────────────────────────────
CATEGORY C: BUY VS SELL (Events 17-23)
Based on: Easley, Kiefer, O'Hara, Paperman (1996), Chordia, Roll, Subrahmanyam (2002)
─────────────────────────────────────────────────────────────
Event 17: Aggressive Buy Dominance
Zbuy ≥ ZH AND ZΔ ≥ ZH AND Zsell ≤ -ZM
Direction: Bullish
Event 18: Aggressive Sell Dominance
Zsell ≥ ZH AND ZΔ ≤ -ZH AND Zbuy ≤ -ZM
Direction: Bearish
Event 19: Two-Sided Battle
Zbuy ≥ ZH AND Zsell ≥ ZH AND |ZΔ| ≤ Z0
Direction: Neutral (buyers and sellers equally strong)
Event 20: Battle with Buy Edge
Zbuy ≥ ZH AND Zsell ≥ ZH AND ZM ≤ ZΔ < ZH
Direction: Bullish
Event 21: Battle with Sell Edge
Zbuy ≥ ZH AND Zsell ≥ ZH AND -ZH < ZΔ ≤ -ZM
Direction: Bearish
Event 22: Hidden Accumulation
Zbuy ≥ ZH AND |Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Bullish (buy shock without price movement)
Event 23: Hidden Distribution
Zsell ≥ ZH AND |Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Bearish (sell shock without price movement)
─────────────────────────────────────────────────────────────
CATEGORY D: PREDICTABILITY (Events 24-26)
Based on: Gervais, Kaniel, Mingelgrin (2001), Karpoff (1987)
─────────────────────────────────────────────────────────────
Event 24: Volume Shock Positive Drift
Zv ≥ ZH AND |Zp| ≤ ZM
Direction: Follows price direction
Event 25: Volume Shock Negative Drift
Zv ≤ -ZH AND |Zp| ≤ ZM
Direction: Opposite to price direction
Event 26: Abnormal Volume Info Arrival
Zv ≥ ZH
Direction: Neutral
─────────────────────────────────────────────────────────────
CATEGORY E: REVERSAL VS CONTINUATION (Events 27-30)
Based on: Campbell, Grossman, Wang (MIT), Llorente, Michaely, Saar, Wang (2002)
─────────────────────────────────────────────────────────────
Event 27: High Vol Reversal Risk
Zv ≥ ZH
Direction: Warning (high volume implies lower positive autocorrelation)
Event 28: Low Vol Continuation Risk
Zv ≤ -ZH
Direction: Follows price direction (trend likely continues)
Event 29: Speculation Continuation
Zv ≥ ZH AND |ZΔ| ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction
Event 30: Risk Sharing Reversal
Zv ≥ ZH AND |ZΔ| ≤ Z0
Direction: Warning (potential reversal)
─────────────────────────────────────────────────────────────
CATEGORY F: IMBALANCE LAG (Events 31-33)
Based on: Chordia, Roll, Subrahmanyam (2002)
─────────────────────────────────────────────────────────────
Event 31: Persistent Imbalance Push
|ZΔ| ≥ ZM AND |ZΔ | ≥ ZM AND sign(ZΔ) = sign(ZΔ )
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(ZΔ ≥ ZM AND ZΔ ≤ -ZM) OR (ZΔ ≤ -ZM AND ZΔ ≥ ZM)
Direction: Warning (imbalance sign flip)
Event 33: Intraday Imbalance Predicts
|ZΔ| ≥ ZM
Direction: Follows delta direction
─────────────────────────────────────────────────────────────
CATEGORY G: SUPPORT/RESISTANCE (Events 34-36)
Based on: Peskir (Manchester)
─────────────────────────────────────────────────────────────
Event 34: SR Barrier Event
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (price stalls with high volume)
Event 35: Volume Backed SR Level
|Zp| ≤ Z0 AND Zv ≥ ZH AND |ZΔ| ≥ ZM
Direction: Follows delta direction
Event 36: Volume Poor SR Level
|Zp| ≤ Z0 AND Zv ≤ -ZM
Direction: Warning (weak S/R without volume)
─────────────────────────────────────────────────────────────
CATEGORY H: EXTENDED ANALYSIS (Events 37-50)
Based on: Extended market microstructure analysis
─────────────────────────────────────────────────────────────
Event 37: Climax Buy
Zbuy ≥ ZH AND Zp ≥ ZH AND Zv ≥ ZH
Direction: Warning (extreme buying exhaustion, potential top)
Event 38: Climax Sell
Zsell ≥ ZH AND Zp ≤ -ZH AND Zv ≥ ZH
Direction: Warning (extreme selling exhaustion, potential bottom)
Event 39: Stealth Accumulation
Zbuy ≥ ZM AND |Zp| ≤ Z0 AND Zv ≤ Z0
Direction: Bullish (quiet buying)
Event 40: Stealth Distribution
Zsell ≥ ZM AND |Zp| ≤ Z0 AND Zv ≤ Z0
Direction: Bearish (quiet selling)
Event 41: Volume Divergence Bull
Zp ≤ -ZM AND Zv ≤ -ZM
Direction: Bullish (price down but volume declining)
Event 42: Volume Divergence Bear
Zp ≥ ZM AND Zv ≤ -ZM
Direction: Bearish (price up but volume declining)
Event 43: Delta Price Alignment
|Zp| ≥ ZM AND |ZΔ| ≥ ZM AND sign(Zp) = sign(ZΔ)
Direction: Follows price direction (strong trend confirmation)
Event 44: Extreme Compression
|Zp| ≤ Z0 AND Zv ≤ -ZH
Direction: Neutral (very low volatility)
Event 45: Volatility Expansion
|Zp| ≥ ZH AND Zv ≥ ZH
Direction: Follows price direction (breakout from compression)
Event 46: Buy Exhaustion
Zbuy ≥ ZH AND Zp ≤ Z0
Direction: Warning (high buy but price fails)
Event 47: Sell Exhaustion
Zsell ≥ ZH AND Zp ≥ -Z0
Direction: Warning (high sell but price holds)
Event 48: Trend Acceleration
|Zp| ≥ ZM AND |Zp| > |Zp | AND Zv ≥ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| ≥ ZM AND |Zp| < |Zp | AND sign(Zp) = sign(Zp )
Direction: Warning (decreasing momentum)
Event 50: Multi Divergence
(Zp ≥ ZM AND ZΔ ≤ -ZM) OR (Zp ≤ -ZM AND ZΔ ≥ ZM) + |Zp| ≥ ZM AND Zv ≤ -ZM
Direction: Warning (multiple divergence signals)
─────────────────────────────────────────────────────────────
CATEGORY I: TREND-INTEGRATED (Events 51-60)
Based on: Combined price-volume-delta trend analysis
─────────────────────────────────────────────────────────────
Event 51: Trend Breakout Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH AND |ZΔ| ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction
Event 52: Trend Support Test
Zp ≥ ZM AND Z0 ≤ Zp < ZM AND ZΔ ≥ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp ≤ -ZM AND -ZM < Zp ≤ -Z0 AND ZΔ ≤ -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) ≠ sign(Zp ) AND |Zp| ≥ ZM AND |Zp | ≥ ZM
Direction: Follows new price direction (momentum flip)
Event 55: Channel Absorption
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (range-bound with volume)
Event 56: Trend Continuation Volume
|Zp| ≥ ZM AND Zv ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction (healthy trend with volume)
Event 57: Trend Exhaustion
|Zp| ≥ ZM AND Zv ≤ -ZM AND |Zp| < |Zp |
Direction: Warning (trend losing steam)
Event 58: Range Breakout Pending
|Zp| ≤ Z0 AND Zv ≤ -ZH AND |ZΔ| ≥ ZM
Direction: Follows delta direction (compression with imbalance)
Event 59: Trend Quality High
|Zp| ≥ ZM AND sign(ZΔ) = dirP AND Zv ≥ Z0 AND dirP ≠ 0
Direction: Follows price direction (strong aligned signals)
Event 60: Trend Quality Low
|Zp| ≥ ZM AND sign(ZΔ) ≠ dirP AND dirP ≠ 0
Direction: Warning (conflicting signals)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TREND CHANNEL SYSTEM
The trend channel system is adapted from Smart Trader Episode 03 to provide consistent visual context for price action analysis.
How It Works:
• Divides the chart into blocks based on Z-Score groups
• Calculates OHLC (Open, High, Low, Close) for each block
• Detects Higher Highs/Higher Lows (uptrend) or Lower Highs/Lower Lows (downtrend) patterns
• Draws channel lines connecting block extremes
• Classifies by angle: steep angles indicate trends, flat angles indicate ranges
Channel Classifications:
• UPTREND: Higher highs and higher lows detected
• DOWNTREND: Lower highs and lower lows detected
• RANGE: Channel angle below threshold (default 10 degrees)
Label Information:
• Trend direction (UPTREND/DOWNTREND/RANGE)
• Channel boundary prices
• Distance from current price (absolute and percentage)
• Channel angle in degrees
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DASHBOARD
The dashboard provides a comprehensive real-time view of all Z-Score metrics and detected events.
Dashboard Sections:
1. Header Row
Displays indicator name and current calculation mode (CLOSED or LIVE).
2. Metric Rows (Price, Total Volume, Buy Volume, Sell Volume, Delta)
Each row displays:
• Value: Current metric value
• Z: Calculated Z-Score
• Visual: Graphical Z-bar showing position relative to mean
• Status: Interpretation (Extreme High, Above Avg, Normal, Below Avg, Extreme Low)
• Upper: Oldest active upper Z-Line in window (Label Mirror)
• Lower: Oldest active lower Z-Line in window (Label Mirror)
3. Event Detection Section
• Count of triggered events out of 60 total scenarios
• Market Bias: Bull/Bear/Neutral percentage with visual bar
• Strongest Event: Highest confidence event currently triggered
• #2 Event: Second highest confidence event
4. Footer
Shows engine type (Geometry/Intrabar), Z-Score period, calculation basis, and number of valid bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERT SYSTEM
The indicator uses native alertcondition() functions, keeping the settings menu clean while providing comprehensive alert options in TradingView's alert dialog.
Available Alert Categories:
• Master Alerts: Any event, Any bullish, Any bearish, Any warning
• Single Event Alerts: Individual alerts for key events (Breakout, Climax, Divergence, etc.)
• Category Alerts: Alerts by event category (Price-Volume, Order-Flow, etc.)
• Confluence Alerts: 2+, 3+, 4+, or 5+ aligned events
• Bias Shift Alerts: 10%, 20%, or 30% shifts in market bias
• High Confidence Alerts: Events with 60%+, 70%+, 80%+, or 90%+ confidence
• Divergence Alerts: Price vs Volume or Price vs Delta divergences
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations when using the Intrabar method.
Data Accuracy Levels:
• 1T (Tick): Most accurate, real volume distribution per tick
• 1S (1 Second): Reasonably accurate approximation
• 15S (15 Seconds): Good approximation, longer historical data available
• 1M (1 Minute): Rough approximation, maximum historical data range
Backtest and Replay Limitations:
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
A Note on Data Access:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LANGUAGE SUPPORT (TRI-LINGUAL UI)
This indicator includes a built-in language switch with three interface languages :
• English (EN)
• Türkçe (TR)
• 한국어 (KO)
The selected language updates key interface text such as the Dashboard headers/rows , tooltips , and the Event Engine outputs (event names, category names, and direction labels). Turkish diacritics and Korean Hangul are supported for clean, native readability.
Why only three languages?
Each additional language requires duplicating strings throughout the code, which increases script size/memory usage and compilation time. To keep the indicator optimized and responsive, language options are intentionally limited to three.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator is designed as an educational and research tool based on academic market microstructure literature. It is NOT financial advice and should NOT be used as the sole basis for trading decisions.
Important Notices:
• Past performance does not guarantee future results
• All trading involves risk of substantial loss
• The indicator's signals are statistical probabilities, not certainties
• Always conduct your own research and consult qualified financial advisors
• The creator assumes no responsibility for trading losses
Research Sources:
This indicator is built upon peer-reviewed academic research from:
• Journal of Financial and Quantitative Analysis (Cambridge University Press)
• Journal of Finance
• Journal of Financial Econometrics
• MIT Working Papers
• arXiv Financial Mathematics
Madstrat StrategyMadstrat 2.0 Strategy
**A structured, rules-based trading system designed for forex and gold traders who want consistency over guesswork.**
What This Strategy Does
Madstrat 2.0 identifies high-probability trade setups by tracking **how the market has moved over the past few days** and waiting for specific conditions to align before entering. It's not a "catch every move" system—it's built for traders who prefer fewer, higher-quality trades with clear entry rules.
The strategy watches for **setup days** (when price has been moving in one direction for 2+ days, then shows signs of reversal) and triggers entries when momentum, price structure, and multiple timeframes all agree.
Key Features
Day Classification System
The strategy automatically labels each trading day (Green Setup Day, Red Setup Day, Inside Day, Breakout Day) so you always know where you are in the market cycle. Signals fire on Day 2 or Day 3 of a setup—the highest-probability windows.
Multi-Timeframe Confirmation
Entries require alignment across your signal timeframe AND higher timeframes. This filters out weak setups where the bigger picture doesn't support the trade.
Built-in Risk Management
- A and B Setup Grading : Trades are automatically classified by quality. "A" setups (everything aligned) get larger position sizes; "B" setups (minor misalignment) get reduced risk.
- Automatic Breakeven : Moves your stop to breakeven after hitting profit targets or key levels.
- P artial Profit Taking : Takes profits at previous day's high/low, then weekly levels, letting runners ride.
Visual Trading Aids
- Session boxes showing Asian, London, and New York ranges
- Killzone highlighting for optimal entry windows
- ADR (Average Daily Range) levels showing how much room price has left to move
- Exhaustion zones marking where price is likely to stall or reverse
Who This Is For
- Forex traders working major pairs who want structure instead of discretionary guessing
- Gold traders looking for a systematic approach to XAU/USD
- Traders who prefer **intraday to swing** timeframes (15m and 30m signal systems)
- Anyone tired of random entries and looking for **repeatable, rule-based setups**
What Makes It Different
This isn't a simple indicator that paints arrows everywhere. Madstrat Strategy requires multiple conditions to align before generating a signal—baseline touches, EMA stack alignment, equilibrium rejection, and higher timeframe confirmation. The result is fewer signals, but ones that come with genuine confluence backing them.
The built-in status tables show you exactly which conditions are met (or missing) in real-time, so you're never guessing why a signal did or didn't fire.
Settings Flexibility
- Choose between Live account or Prop Firm risk profiles
- Filter signals by session (Asian, London, NY only)
- Adjust confluence requirements for more or fewer signals
- Enable/disable visual elements to keep your chart clean
Best suited for 15-minute and 30-minute charts. Works on forex majors, crosses, and gold.
Allyhshn - FVG Classifier## Allyhshn – FVG Classifier
### Technical Specifications & Methodology
### Overview
**Allyhshn – FVG Classifier** is a multi-timeframe Fair Value Gap (FVG) detection, ranking, and visualization indicator built in Pine Script® v6.
It is designed to identify ICT-style three-candle imbalances across multiple timeframes, dynamically rank them by contextual relevance, and display only the most actionable FVG zones on the chart with strong performance safeguards.
The indicator does **not** predict price direction. Instead, it classifies and prioritizes existing imbalance zones based on structural, volatility, trend, and temporal factors.
---
## 1. FVG Detection Logic
### Definition
The indicator uses a strict **3-candle ICT imbalance model**:
* **Bullish FVG**
Formed when:
`Low (current candle) > High (2 candles ago)`
Zone range:
* Bottom = High
* Top = Low
* **Bearish FVG**
Formed when:
`High (current candle) < Low (2 candles ago)`
Zone range:
* Bottom = High
* Top = Low
Each detected FVG is stored as a price zone and tracked independently.
---
## 2. Multi-Timeframe Architecture
### Fixed 5-Timeframe Model
The indicator always processes **exactly five timeframes per bar**, ensuring deterministic behavior and predictable performance.
### Mode Selection
* **Auto Mode**
Timeframes are automatically selected based on:
* Current chart timeframe
* Trading regime (Scalping, Intraday, Swing, Position)
* **Manual Mode**
The user explicitly defines all five timeframes.
### Regime Influence
Trading regimes bias the timeframe selection:
* **Scalping**: Lower timeframes emphasized
* **Intraday**: Balanced LTF/MTF/HTF mix
* **Swing / Position**: Higher timeframes prioritized (Daily, Weekly, Monthly)
---
## 3. Filters and Validation
### Minimum Size Filter
* FVG size is normalized by ATR.
* Zones smaller than a user-defined ATR multiple are ignored.
* Prevents noise and micro-imbalances.
### Trend Alignment (Optional)
* Uses an EMA-based trend filter.
* Bullish FVGs are optionally restricted to uptrends.
* Bearish FVGs are optionally restricted to downtrends.
---
## 4. Scoring & Priority System
Each FVG receives a **dynamic score** representing contextual priority, recalculated every bar.
### Score Components
The final score is a multiplicative composite of:
1. **Timeframe Weight**
* Higher timeframes receive higher structural importance.
* Monthly > Weekly > Daily > Intraday > Seconds.
2. **Distance to Price**
* Zones closer to current price are prioritized.
* Distance normalized by ATR.
3. **Zone Size**
* Moderate-sized imbalances score higher than very small ones.
* Normalized and softly capped.
4. **Trend Alignment**
* Aligned zones receive a boost.
* Counter-trend zones are penalized, not discarded.
5. **Age Decay**
* Older zones remain valid but lose urgency over time.
* Smooth decay with a multi-hour half-life effect.
6. **Session Boost (Optional)**
* Priority boost during user-defined high-liquidity sessions.
The score acts as a **probability proxy**, not a prediction.
---
## 5. Mitigation Logic
Each FVG is monitored for mitigation using one of three user-defined rules:
* **Touch**: Any price overlap with the zone
* **Half**: Price reaches the midpoint of the zone
* **Full**: Entire zone is traded through
Once mitigated:
* The zone is flagged internally
* The visual box is removed
* The data remains available for ranking logic
---
## 6. Memory & Performance Management
### Controlled Storage
* Maximum number of stored FVGs is capped.
* Oldest entries are removed automatically.
### Draw Limit
* Only the **highest-ranked unmitigated FVGs** are displayed.
* Lower-priority zones are visually faded or hidden.
* Prevents chart clutter and performance degradation.
### Array Safety
* All array operations are size-checked.
* Prevents out-of-bounds errors in real-time and historical bars.
---
## 7. Visualization
### Box Rendering
* FVGs are drawn as shaded rectangles.
* Color-coded by direction:
* Bullish and bearish zones use distinct colors.
* Boxes extend a configurable number of bars into the future.
### Transparency Logic
* High-priority zones are emphasized.
* Lower-priority zones are automatically faded.
---
## 8. Priority Table (Optional)
An optional on-chart table displays the **top-ranked unmitigated FVGs**, including:
* Priority rank
* Timeframe
* Direction
* Average price of the zone
* Size (ATR-normalized)
* Current score
The table is rebuilt only on the last bar to preserve performance.
---
## 9. Alerts
### Proximity Alert
An optional alert triggers when:
* Price approaches the midpoint of the **highest-priority FVG**
* Distance threshold is ATR-based and configurable
Alerts are evaluated globally and safely outside local scopes.
---
## 10. Intended Use & Limitations
### Intended Use
* Market structure analysis
* Liquidity-based zone mapping
* Contextual decision support
* Confluence with other execution models
### Not Intended For
* Standalone trade signals
* Price prediction
* Automated execution without confirmation
## 11. Account Compatibility
* Does not require proprietary order book or footprint data.
* Works on all TradingView accounts.
* Uses only publicly available volume information.
---
## Summary
**Allyhshn – FVG Classifier** is a structured, performance-conscious FVG classification engine.
It focuses on **ranking relevance rather than quantity**, making it suitable for scalping, intraday, and higher-timeframe structural analysis without overwhelming the chart or the Pine runtime.
---
cloudbruk_PRE MOVING AVERAGE CLOUDthis indicator was made to give us the trend side and mark where the trend change the way






















