Peak Trading Activity Graphs [LuxAlgo]The Peak Trading Activity Graphs displays four graphs that allow traders to see at a glance the times of the highest and lowest volume and volatility for any month, day of the month, day of the week, or hour of the day. By default, it plots the median values of the selected data for each period. Traders can enable the Median Delta feature to further highlight differences in the data. The graphs are customizable in width and height and feature gradient colors by default.
🔶 USAGE
The tool is simple yet powerful. Using the three main parameters on the settings panel, traders can display up to four different graphs and up to 16 different configurations.
There are two main types of data: volume and volatility. There are also four different time periods: months, days of the month, days of the week, and hours of the day. There is also the possibility of displaying the raw medians or the delta between them.
Understanding which time periods have the most and least volume and volatility is essential for any trader. From avoiding trading during periods of low volume to properly sizing positions during periods of high volatility, there are multiple use cases directly related to improving execution and risk management.
🔹 Months
This chart shows the monthly volume and volatility of NQ as medians at the top and as the delta of medians at the bottom.
As we can see on the left-hand chart, the volume is fairly consistent throughout the year. January, March, and October have the highest volume, and December has the lowest volume for obvious reasons. Note the bottom chart with the delta feature enabled, which clearly shows the top and bottom periods.
On the right, we have volatility, which is also evenly distributed throughout most months. October is the most volatile month, and March is the least volatile month. The differences are also very clear on the bottom chart with delta enabled.
Traders may want to compare median volatility and volume by month to size positions and favor exposure during historically high-activity months.
🔹 Days of Month
The same NQ charts are shown, but in this case, the Days of Month period has been selected. As you can see, this displays a calendar-like graph. The volume is on the left, the volatility is on the right, and the delta feature is enabled on the bottom charts. This feature allows for stronger differences in gradient.
The top charts show that the raw medians of both volume and volatility are evenly distributed. We need to enable the delta feature on the bottom charts to see where the most and least volume and volatility are.
Traders can use median activity by calendar day to anticipate liquidity expansions or contractions and adjust trade frequency.
🔹 Days of Week
In this case, we have BTC charts with the same layout as before. Notably, the difference in volume on weekends is not as pronounced from a volatility perspective on those same days.
A practical use case can be differentiate high-risk, high-participation weekdays from low-activity sessions to select trend or range-based strategies.
🔹 Hours of Day
This shows the volume and volatility of each hour of the day for gold futures. As we can see, the most volume and volatility occur during the three hours around the RTH open at 8:00, 9:00, and 10:00 a.m.
Traders may want to isolate hours with the highest median volatility and volume to concentrate execution and avoid low-liquidity periods.
🔹 Assets Comparison
This tool allows us to compare different assets over the same period. In this case, we are comparing the hours of the day for 10-year notes, the S&P 500, silver, and the yen. Each asset has a different volatility profile throughout the day.
With the Delta feature enabled, we can clearly see the differences. The 10Y Notes move from 7:00 to 9:00 and from 2:00 to 9:00. The Yen moves from 7:00 to 9:00 and from 2:00 to 9:00. Silver moves from 8:00 to 10:00. The S&P 500 moves from 8:00 to 9:00 and from 14:00 to 15:00. All times are in exchange time.
🔹 Sizing & Coloring Graphs
Traders can adjust the width and height of the graphs, as well as the text size, at will.
Traders can choose from four different color configurations in the settings panel.
🔶 SETTINGS
Data: Select the type of data to display: Volume or Volatility.
Period: Select the time period to display: Month, Day of Month, Day of Week, or Hours.
Display delta between medians. Display the difference between the medians as a percentage. The smaller median is 0 and the larger median is 100. Enabling this feature highlights the differences between values.
🔹 Graph
Graph: Select the graph location.
Size: Select the graph size.
Width: Select the graph width.
Height: Select the height of the graph.
🔹 Style
Colors: Select a color map: Viridis, Plasma, Magma, or Custom.
Custom Cold: Select a custom color for cold (low values).
Custom Lukewarm: Select a custom color for lukewarm (medium values).
Custom Hot: Select a custom color for hot (high values).
圖表形態
Swing Zig Zag - Market Structure Indicator by Panda TradingOverview
The Swing Zig Zag indicator is a powerful tool for identifying market structure changes, Break of Structure (BOS), and Change of Character (CHoCH) patterns. It automatically detects and visualizes key price action levels, helping traders identify potential trend reversals and continuation patterns.
Key Features
📊 Market Structure Detection
- Break of Structure (BOS): Identifies when price breaks significant swing highs/lows, indicating trend continuation
- Change of Character (CHoCH): Detects trend reversals when price breaks counter-trend levels
- Visual ZigZag Lines: Connects CHoCH points to clearly visualize market structure flow
🎨 Customizable Display
- **Adjustable Pivot Length**: Control sensitivity of swing point detection (default: 5)
- **Two Detection Modes**:
- Extreme Points: Uses absolute highs and lows
- Adjusted Points: Dynamically adjusts levels for better accuracy
- **Line Limit Control**: Display up to 500 structure lines to keep charts clean
- **Color-Coded Levels**: Distinct colors for bullish/bearish BOS and CHoCH
⚡ Real-Time Alerts
- Built-in alert system for CHoCH detection
- Separate alerts for bullish and bearish changes
- Once-per-bar alert frequency to avoid spam
🔧 Customization Options
- ZigZag Lines: Toggle visibility, customize color, width, and style (Solid/Dashed/Dotted)
- Structure Lines: Show/hide market structure with adjustable display limit
- CHoCH Extension: Horizontal lines extend forward to highlight active levels
How to Use
1. Trend Following: Use BOS confirmations to enter in the direction of the trend
2. Reversal Trading: Watch for CHoCH signals indicating potential trend changes
3. Support/Resistance: CHoCH levels often act as key support and resistance zones
4. Market Structure: The zigzag pattern helps identify higher highs/lows and market phases
Settings
- Pivot Length: Controls sensitivity (lower = more signals, higher = stronger signals)
- Structure Limit: Number of historical structure lines to display (10-500)
- ZigZag Display: Toggle and customize the connecting lines between CHoCH points
- Mode Selection: Choose between Extreme Points or Adjusted Points for different trading styles
Best Practices
- Combine with other indicators for confirmation
- Use on higher timeframes for stronger signals
- Wait for candle close before acting on signals
- CHoCH levels can act as dynamic support/resistance
Technical Notes
- Maximum 5000 bars lookback
- Supports up to 500 lines and labels
- Optimized for performance on all timeframes
- Works on all markets: Forex, Crypto, Stocks, Indices
---
Perfect for: Price action traders, swing traders, and anyone looking to understand market structure and trend changes with clarity.
Pine Script®指標
bitcoin Multi-Timeframe Trend Analysis Toolbitcoin Multi-Timeframe Trend Analysis Tool: A Comprehensive Guide for Market Cycle Identification
Introduction
The Multi-Timeframe Trend Analysis Tool is a sophisticated technical indicator designed to help traders identify critical market phases across different time horizons. This tool synthesizes multiple established technical analysis concepts into a unified framework, specifically optimized for high-volatility markets such as cryptocurrencies and alternative coins (altcoins). By integrating trend-following, momentum, and mean-reversion principles, it provides visual cues for strategic entry and exit points throughout market cycles.
Core Philosophy and Integration Rationale
The indicator's design philosophy centers on the principle that different market phases require different analytical approaches. Rather than relying on a single indicator, which often produces false signals during complex market conditions, this tool combines multiple technical components that complement each other's strengths and compensate for individual weaknesses.
The integration follows a logical hierarchy:
Trend Identification through multiple EMA periods establishes the market's primary direction
Momentum Confirmation via multiple MACD configurations validates trend strength and potential reversals
Multi-timeframe Alignment ensures signals are significant across both short-term and long-term perspectives
This layered approach reduces the likelihood of whipsaws and increases the statistical significance of generated signals.
Component Synergy and Operational Mechanics
1. EMA System: The Trend Foundation
The tool employs six Exponential Moving Averages organized into two groups:
Long-term EMA Group (200, 300, 700 periods):
The 200-period EMA serves as the primary trend baseline
The 300-period EMA provides confirmation of the longer-term direction
The 700-period EMA represents the "macro trend" and helps identify major cycle shifts
Medium-term EMA Group (18, 36, 63 periods):
These shorter EMAs capture intermediate trend dynamics
The relationship between these EMAs helps identify acceleration or deceleration in trend momentum
The EMA system works by comparing relationships between different period lengths. For instance, when shorter EMAs are positioned below longer EMAs, it confirms a bearish trend structure, while the opposite configuration suggests bullish momentum.
2. Multi-Period MACD System: Momentum and Divergence Detection
The tool implements three separate MACD configurations, each serving a distinct purpose:
Bottom MACD (168/364/6 periods):
Designed to capture long-term momentum shifts at potential market bottoms
The extended periods (168 and 364) filter out short-term noise while highlighting significant trend changes
Particularly effective at identifying oversold conditions during prolonged downtrends
Top MACD (108/234/9 periods):
Optimized for detecting momentum deterioration at potential market tops
The period selection is based on historical analysis of bull market cycles
Helps identify when bullish momentum is weakening before price action clearly reverses
Local Top MACD (9/36/9 periods):
Functions as an early warning system for short-term corrections
Particularly useful for swing traders and risk management
Can help identify profit-taking opportunities during ongoing trends
The three MACDs operate independently but collectively provide a comprehensive view of momentum across different time horizons. When multiple MACDs simultaneously show confirming signals, the reliability of the indication increases significantly.
3. Signal Generation Logic: Conditional Framework
Signals are generated only when multiple conditions align across different components:
Accumulation Zone Conditions:
Requires both trend alignment (200 EMA below 300 EMA) AND either:
Price trading at a significant discount to the 200 EMA (suggesting oversold conditions), OR
The 200 EMA itself declining sharply (confirming bearish momentum exhaustion)
This dual requirement prevents false accumulation signals during healthy downtrends
Strong Buy Zone Conditions:
Includes all accumulation zone requirements PLUS:
Sharp decline in the 36-period EMA (suggesting panic or capitulation)
Accelerated decline in the 200 EMA (confirming bearish exhaustion)
This represents a higher-conviction signal with multiple confirming factors
Potential Bull Market Top Conditions:
Requires the 700 EMA to be rising sharply (confirming extended bullish trend) AND
Top MACD showing bearish divergence (momentum weakening) AND
Short-term EMA alignment still bullish (indicating the top is forming amid strength)
This combination helps distinguish between minor corrections and major trend reversals
Local Top Warning Conditions:
Triggered when the 700 EMA shows accelerated gains (potential euphoria phase) AND
The Local Top MACD shows bearish momentum divergence
Serves as a risk management tool rather than a direct reversal signal
Practical Application and Usage Guidelines
For Long-Term Investors:
Monitor for "Accumulation Zone" signals during market downturns
Consider initiating or adding to positions during "Strong Buy Zone" signals
Use these signals for dollar-cost averaging strategies rather than timing exact bottoms
Hold through intermediate fluctuations unless "Potential Bull Market Top" signals appear
For Trend Traders:
Use EMA alignments to confirm trend direction before entering positions
Employ "Local Top Warnings" to secure profits on portions of positions
Watch for alignment between medium-term EMA direction and MACD signals for entry timing
Consider "Potential Bull Market Top" signals as reasons to reduce exposure or implement hedging strategies
For Risk Managers:
Use "Local Top Warnings" to tighten stop-losses or reduce position sizes
Monitor the relationship between price and the 200 EMA for overall market health assessment
Track multiple timeframes to distinguish between normal volatility and potential trend changes
Originality and Distinctive Features
This tool represents a novel synthesis of existing technical concepts rather than a completely new indicator. Its originality stems from:
Purpose-Specific MACD Configurations: Unlike standard MACD implementations, each of the three MACDs is optimized for a specific market condition, with period lengths derived from empirical analysis of market cycles.
Multi-Layered Confirmation Framework: Signals require alignment across trend, momentum, and rate-of-change dimensions, reducing false positives common in single-indicator systems.
Progressive Signal Hierarchy: The tool distinguishes between initial warning signals ("Local Top Warnings") and higher-conviction reversal signals ("Potential Bull Market Tops"), allowing for graduated responses.
Combination of Absolute and Relative Conditions: The logic incorporates both absolute price relationships (price vs. EMA levels) and rate-of-change metrics (EMA acceleration/deceleration), capturing both state and momentum information.
Limitations and Considerations
Lagging Nature: Like all trend-following indicators, this tool reacts to established conditions rather than predicting future movements. Early trend phases may not generate signals.
Parameter Sensitivity: The default parameters are optimized for daily cryptocurrency charts. Performance may vary across different asset classes or timeframes.
Complementary Analysis Required: This tool should be used alongside fundamental analysis, volume confirmation, and market structure considerations.
No Guarantee of Performance: Past success in identifying market phases does not ensure future accuracy. All trading involves risk, and no indicator provides certainty.
Conclusion
The Multi-Timeframe Trend Analysis Tool provides a structured approach to identifying significant market phases by integrating trend, momentum, and mean-reversion concepts across multiple time horizons. Its value lies not in predicting exact turning points but in identifying zones of increasing probability for trend changes, allowing traders to adjust their strategies accordingly. When used as part of a comprehensive trading plan with proper risk management, it can help traders navigate complex market environments with greater clarity and discipline.
The tool is particularly suited to the extended trends and pronounced cycles characteristic of cryptocurrency markets, though its principles apply across various financial instruments. As with all technical tools, its effectiveness increases with user understanding of both its mechanisms and its limitations.
Pine Script®指標
Chinese Silver Price_SRC (USD/oz)This indicator converts the Chinese silver price quoted in CNY per kilogram (e.g. SHFE silver) into USD per troy ounce and overlays it directly on the XAGUSD (global silver spot) chart.
The conversion uses the real-time USD/CNY exchange rate and the standard troy ounce conversion factor.
USD/oz = (CNY/kg ÷ USD/CNY) ÷ 32.1507
Pine Script®指標
Bitcoin Macro Trend IndicatorBitcoin Macro Trend Indicator: A Multi-Timeframe Confirmation System for Strategic Positioning
Introduction
The Bitcoin Macro Trend Indicator is a comprehensive technical analysis tool designed for cryptocurrency traders and investors seeking to navigate Bitcoin's volatile cycles. It integrates multiple exponential moving averages (EMAs) and MACD variations into a unified system that identifies long-term accumulation zones, bull market tops, and strategic re-entry points. This document outlines the logical foundation of this integration, explains the synergistic operation of its components, and provides practical guidance for its application.
Rationale for Multi-Indicator Integration
Bitcoin's market behavior exhibits distinct cyclical patterns characterized by extended accumulation periods, parabolic advances, and sharp corrections. Single indicators often generate false signals during volatile conditions. This system employs a layered confirmation approach where:
Ultra-long-term EMAs establish the primary trend context
Medium-term EMA crossovers identify trend transitions
Multiple MACD configurations detect momentum shifts across different time horizons
This multi-timeframe methodology reduces noise and increases signal reliability by requiring convergence across independent but complementary technical elements.
Component Synergy and Operational Mechanism
1. EMA Framework: The Trend Foundation
700-period EMA: Serves as the primary trend baseline. Prices below this line suggest long-term undervaluation (accumulation territory), while sustained positions above indicate established bull markets.
18/63-period EMA Pair: Functions as the core trend transition system. The golden cross (18 above 63) confirms bullish momentum, while the death cross signals potential trend exhaustion.
12/52-period EMA Pair: Specialized for identifying renewed momentum after corrections within ongoing trends, reducing premature re-entry during false recoveries.
12-period EMA (Auxiliary): Provides early warning of short-term trend deterioration that may precede larger corrections.
2. MACD Ensemble: Momentum Verification
Bottom MACD (168/364/6): With exceptionally slow parameters, this configuration filters out short-term noise to identify genuine long-term momentum shifts characteristic of market bottoms.
Top MACD (63/133/1): Optimized for detecting momentum divergence at potential market tops, where traditional MACD settings often lag.
Local Top Warning MACD (30/65/4): Balanced to capture intermediate-term momentum deterioration that frequently precedes significant pullbacks.
Early Bull MACD (9/19/6): Sensitive to initial momentum surges following accumulation periods, providing early confirmation of trend initiation.
3. Signal Hierarchy and Progressive Confirmation
The indicator employs a cascading confirmation logic:
Stage 1 (Accumulation): Requires both long-term MACD improvement AND price position below the 700-period EMA. Strong accumulation signals add Early Bull MACD confirmation.
Stage 2 (Warning): Local top warnings activate only when multiple conditions align: medium-term trend remains bullish, ultra-long-term trend confirms strength, AND specialized MACDs show momentum deterioration.
Stage 3 (Re-entry): Requires both EMA crossover confirmation AND momentum recovery in the warning MACD, reducing false continuation signals.
Stage 4 (Top Confirmation): The most stringent criteria, demanding convergence across long-term, medium-term, and momentum indicators before signaling major trend reversal.
Practical Application and Interpretation
Signal Classification System
Accumulation Zones (Green): Areas where long-term indicators suggest undervaluation. These represent strategic buying opportunities for patient investors.
Strong Accumulation Signals (Dark Green): Enhanced accumulation zones with additional momentum confirmation, suggesting higher-probability entry points.
Local Top Warnings (Orange/Red): Progressive warnings of increasing risk, with red zones indicating conditions historically associated with more severe corrections.
Re-entry Opportunities (Blue): Post-correction zones where momentum recovery aligns with trend resumption signals.
Bull Market Termination (Purple): Signals suggesting completion of major advance cycles, prompting defensive positioning.
Top Confirmation (Dark Red): High-confidence reversal signals with multi-timeframe confirmation.
Usage Guidelines
Timeframe Recommendation: Designed primarily for daily and weekly charts where macroeconomic trends are most evident.
Position Sizing: Accumulation signals support gradual position building, while warning signals suggest reducing exposure rather than immediate liquidation.
Corroboration: Although self-contained, the indicator performs best when combined with volume analysis and fundamental considerations.
Historical Validation: Users should review signal performance across multiple market cycles to understand characteristic behaviors.
Limitations and Considerations
No technical indicator predicts market movements with absolute certainty. This tool provides probabilistic assessments based on historical patterns.
Extraordinary market events or fundamental shifts may override technical signals.
The indicator's parameters, while optimized for Bitcoin's historical behavior, may require adjustment for unprecedented market conditions.
Signals should be interpreted in context of overall market structure and trader/investor time horizon.
Originality and Differentiation
This system represents a novel synthesis of established technical concepts through:
Parameter Optimization: Specific EMA and MACD periods calibrated to Bitcoin's characteristic volatility and cycle duration.
Conditional Layering: Unlike single-criterion systems, signals require convergence across independent technical dimensions.
Progressive Warning System: Multi-stage alerts that distinguish between routine corrections and potential trend reversals.
Macro-Micro Integration: Simultaneous analysis of ultra-long-term trends and short-term momentum shifts.
Empirical Foundation
The indicator's design incorporates observations from Bitcoin's market behavior since 2010, particularly:
The tendency for major bottoms to form during extended periods below long-term moving averages
Characteristic momentum patterns preceding significant tops
The predictive value of specific EMA relationships during different market phases
Historical performance of multi-timeframe confirmation versus single indicators
Conclusion
The Bitcoin Macro Trend Indicator provides a structured framework for identifying high-probability turning points in Bitcoin's market cycles. By integrating multiple technical perspectives into a confirmation hierarchy, it reduces reaction to market noise while maintaining sensitivity to genuine trend changes. Users should employ this tool as part of a comprehensive trading plan that includes risk management protocols and consideration of external market factors. The system's greatest utility emerges when understood not as a predictive oracle but as a systematic method for identifying favorable risk-reward scenarios based on multi-timeframe technical convergence.
Pine Script®指標
Fear Greed RangesFear Greed Ranges Indicator: A Practical Guide to Market Sentiment Analysis
Introduction: Understanding Market Psychology
The "Fear Greed Ranges" indicator is a specialized technical analysis tool designed to visualize market sentiment through the lens of the Relative Strength Index (RSI). Unlike traditional RSI displays that show only a line graph, this indicator transforms raw RSI data into intuitive, color-coded zones that immediately signal whether markets are driven by fear, greed, or balanced sentiment. By providing this visual context, it helps traders identify potential turning points and manage risk more effectively.
Rational Integration: Why RSI Forms the Core
The indicator's foundation rests on the well-established RSI oscillator, chosen for several compelling reasons. First, RSI has stood the test of time since its development by J. Welles Wilder Jr. in 1978, with decades of empirical validation across various asset classes. Second, its mathematical construction—comparing the magnitude of recent gains to recent losses—directly measures momentum, which often precedes price reversals at extremes. Third, RSI's bounded nature (0-100 range) makes it ideal for creating clearly defined zones without subjective interpretation.
The integration transforms this numerical oscillator into a spatial visualization system. Rather than simply reading RSI values, traders can immediately perceive market conditions through color psychology: red triggers caution, green suggests opportunity, and yellow indicates neutrality. This multi-sensory approach reduces cognitive load during fast-moving markets and helps overcome confirmation bias that might occur when interpreting raw numbers.
Component Synergy: How the System Works Together
The indicator comprises three interconnected layers that create a unified analytical framework:
Core Calculation Layer: The traditional RSI calculation processes price data using the specified period length (default 14 periods). This generates the fundamental sentiment metric that drives all subsequent visualizations. The RSI calculation serves as the "brain" of the indicator, continuously analyzing market momentum.
Sentiment Classification Layer: This layer applies threshold logic to categorize each RSI reading into one of three emotional states. Readings above 70 are classified as "Greed" (market potentially overbought), below 30 as "Fear" (market potentially oversold), and between 30-70 as "Neutral" (balanced market conditions). These thresholds are based on the conventional RSI interpretation framework that has been widely adopted in technical analysis.
Visual Translation Layer: The most innovative aspect transforms numerical classifications into immediate visual cues. The colored ribbon area creates a "sentiment atmosphere" around price action, while the background tint provides subtle contextual framing. Horizontal reference lines at 30, 50, and 70 offer precise anchoring points, and the floating label provides real-time status updates. These elements work in concert: the ribbon shows sentiment intensity, the background provides persistent context, and the reference lines offer precise measurement points.
Practical Application: How to Use the Indicator Effectively
For optimal results, traders should incorporate this tool into a comprehensive analysis framework:
Initial Setup: Apply the indicator to any financial chart (stocks, forex, cryptocurrencies, etc.) using the default 14-period setting for general purposes. For shorter timeframes, consider reducing the period to 10; for longer-term analysis, increase to 20-25 periods.
Signal Interpretation:
When the ribbon turns red and the background tints crimson, exercise caution with new long positions and consider profit-taking on existing holdings.
Green zones may indicate accumulation opportunities, particularly if accompanied by bullish divergence (price making lower lows while RSI makes higher lows).
Yellow areas suggest normal market fluctuation where trend-following strategies may be more appropriate than reversal anticipation.
Confirmation Protocol: Always wait for additional confirmation before acting on extreme readings. For greed zone signals, look for bearish candlestick patterns, resistance at key price levels, or decreasing volume. For fear zone signals, watch for bullish reversal patterns, support levels holding, or increasing volume on down moves.
Timeframe Harmony: Analyze multiple timeframes simultaneously. A greed signal on a daily chart carries more weight than one on a 15-minute chart. Look for alignment across timeframes for higher-probability setups.
Alert Utilization: Enable the built-in alert system to receive notifications when sentiment zones change, ensuring you never miss potential opportunities or risk scenarios.
Original Contribution: What Sets This Indicator Apart
While RSI indicators are ubiquitous, the "Fear Greed Ranges" implementation offers several distinctive advantages:
Cognitive Efficiency: By converting numerical data into immediate visual perception, the indicator reduces the mental processing required to assess market conditions. Traders can glance at a chart and instantly understand the sentiment landscape without calculating or interpreting raw values.
Contextual Persistence: The colored background maintains a subtle but constant reminder of the prevailing sentiment, preventing the common pitfall of overlooking extreme conditions that might develop gradually.
Dual-Layer Communication: The system operates on both conscious (reference lines, labels) and subconscious (color psychology) levels, engaging multiple cognitive pathways for more reliable signal recognition.
Integrated Risk Framework: By explicitly naming emotional extremes ("Fear" and "Greed"), the indicator constantly reminds traders of the psychological forces driving markets, encouraging more disciplined decision-making.
Important Considerations and Limitations
No technical indicator guarantees future performance, and this tool should form only one component of a comprehensive trading strategy. Several critical factors require attention:
Market Context Matters: During strong trending markets, RSI can remain in extreme zones for extended periods without immediate reversal. In such conditions, the indicator signals strength rather than imminent reversal.
Volatility Adjustments: Highly volatile instruments may generate frequent zone changes that could lead to overtrading if not filtered appropriately.
Complementary Tools: This indicator works best when combined with price action analysis, volume studies, support/resistance levels, and fundamental factors where applicable.
Personal Adaptation: Traders should backtest the indicator on their preferred markets and timeframes to understand its characteristics before live implementation, potentially adjusting the RSI period or zone thresholds to match specific instrument behaviors.
The "Fear Greed Ranges" indicator serves as a visual translator of market psychology, converting mathematical momentum readings into intuitive emotional landscapes. By making RSI interpretation more immediate and accessible, it helps traders maintain objectivity during emotionally charged market conditions and supports more disciplined execution of their trading strategies. Remember that successful trading involves risk management, continuous learning, and adapting tools to your individual approach—this indicator provides one lens through which to view the markets, not a complete trading system in itself.
Pine Script®指標
2026 Model2026 Model
OVERVIEW
This Pine Script indicator is a comprehensive trading tool designed for identifying key market structure patterns, session-based trading opportunities, and higher timeframe context. It combines multiple trading concepts including Fair Value Gaps (FVGs), Turtle Soup patterns, Smart Money Technique (SMT) divergence, and session-based analysis.
CORE FEATURES
1. SESSION/KILLZONE DETECTION
What It Does:
- Identifies and highlights major trading sessions based on New York time (EDT/EST)
- Displays session labels that change color: light green for the current session, grey for past sessions
- Shows background shading for active sessions
Sessions Tracked:
- Asia Session: 8:00 PM - 12:00 AM NY time
- London AM: 2:00 AM - 5:00 AM NY time
- NY AM: 9:30 AM - 11:00 AM NY time
- NY PM: 1:30 PM - 4:00 PM NY time
How It Works:
- Uses timezone conversion to check if current time falls within each session range
- Creates labels at the start of each session
- Updates label colors every bar to highlight the active session
- Labels are positioned at a consistent Y-level (aligned with HTF boundary lines)
Killzone Status:
- Active during 1:00 AM - 12:59 PM NY time
- Displayed in the dashboard table
2. DAILY BIAS CALCULATION
What It Does:
- Determines market bias based on the relationship between the last two completed daily candles
- Only calculates on weekdays (Monday-Friday) for traditional markets
- Works 24/7 for crypto markets
Bias Logic:
- Bullish:
* Previous day's high exceeded the day before's high AND close was above previous day's high
* OR previous day's low was below the day before's low BUT close recovered above the day before's low
- Bearish:
* Previous day's low was below the day before's low AND close was below previous day's low
* OR previous day's high exceeded the day before's high BUT close fell below the day before's high
How It Works:
- Compares wicks and closes of the last two completed daily candles
- Persists the last weekday bias on weekends
- Displayed in the dashboard table
3. FAIR VALUE GAPS (FVGs)
What It Does:
- Identifies price gaps where liquidity was skipped
- Draws boxes on the chart showing potential retracement zones
- Uses adaptive thresholds that adjust to market volatility
FVG Types:
- Bullish FVG: Gap between candle 1's low and candle 2's high (price jumped up)
- Bearish FVG: Gap between candle 1's high and candle 2's low (price jumped down)
Threshold Modes:
1. ATR-based (Default): Automatically adapts to asset volatility
- Calculates threshold as: (ATR / Close Price) × 100 × Multiplier
- More sensitive for volatile assets, less sensitive for stable ones
2. Auto: Uses cumulative average of price changes
3. Manual: Fixed percentage threshold (e.g., 0.01%)
How It Works:
- Only detects FVGs on confirmed (closed) bars
- Requires the middle candle's percentage change to exceed the threshold
- Extends FVG boxes 15 bars forward
- Limits to 50 FVG boxes to prevent memory issues
Settings:
- Threshold multiplier (default: 1.0) - lower = more FVGs detected
- Minimum threshold override - ensures minimum quality
- ATR length for volatility calculation
4. HIGHER TIMEFRAME (HTF) CANDLE OVERLAY
What It Does:
- Displays the last 3-5 completed HTF candles on the right side of the chart
- Shows HTF context without cluttering the main chart
- Supports 1H, 4H, Daily, Weekly, and Monthly timeframes
Features:
- Candle Display: Shows completed HTF candles with proper wicks and bodies
- Boundary Lines: Optional vertical lines on the main chart marking HTF candle boundaries
- Labels: Optional time/day/month labels under each candle
- SMT Integration: Draws SMT lines connecting swing points on the overlay candles
- Turtle Soup Integration: Shows TS levels as horizontal lines on overlay candles
How It Works:
- Fetches HTF data using request.security() with lookahead_off to get only confirmed candles
- Positions candles to the right of the current chart using future bar indices
- Calculates boundary high/low from all visible candles for consistent line heights
- Only displays when chart timeframe ≤ HTF timeframe
Settings:
- HTF timeframe selection (1H, 4H, 1D, 1W, 1M)
- Number of candles to display (3, 4, or 5)
- Toggle boundary lines and labels
5. TURTLE SOUP PATTERN DETECTION
What It Does:
- Identifies false breakouts followed by reversals
- Draws horizontal lines at the price level that was broken and then reversed
- Works on multiple timeframes (15min, 1H, 4H)
Pattern Definition:
- Bullish Turtle Soup:
* Candle breaks below previous candle's low (wick goes lower)
* BUT closes above the previous candle's low
* Indicates a false breakdown, potential reversal up
- Bearish Turtle Soup:
* Candle breaks above previous candle's high (wick goes higher)
* BUT closes below the previous candle's high
* Indicates a false breakout, potential reversal down
Threshold System:
- ATR-based (Default): Adapts to volatility
- Converts ATR to PIPs: (ATR × Multiplier) / Pip Size
- Only triggers if the initial candle meets minimum size requirement
- Fixed PIPs: Uses a fixed minimum candle size in PIPs
How It Works:
- Checks patterns when HTF candles complete
- Finds the exact swing high/low time within the HTF candle (on lower timeframes)
- Finds when price broke through that level in the reversal candle
- Draws horizontal line from swing point to break point
- Tracks patterns for HTF overlay display
Settings:
- Timeframe selection (15min, 1H, 4H)
- Threshold mode (Fixed PIPs or ATR-based)
- ATR multiplier (default: 0.4)
- Minimum PIPs (for fixed mode)
6. SMART MONEY TECHNIQUE (SMT) / DIVERGENCE
What It Does:
- Detects divergence between correlated trading pairs
- Draws lines connecting swing points when one pair shows Turtle Soup but the other doesn't
- Only works on 4H timeframe and lower
SMT Logic:
- Bullish SMT:
* Correlated pair has bullish Turtle Soup (reversed upward)
* Current pair does NOT have bullish Turtle Soup
* Current pair stayed within previous candle's range (true divergence)
* Draws line connecting swing lows
- Bearish SMT:
* Correlated pair has bearish Turtle Soup (reversed downward)
* Current pair does NOT have bearish Turtle Soup
* Current pair stayed within previous candle's range (true divergence)
* Draws line connecting swing highs
Correlated Pairs:
- ES ↔ NQ (futures)
- SPX ↔ YM (indices)
- BTC ↔ ETH (crypto)
- GBPUSD ↔ EURUSD (forex)
- XAU ↔ XAG (metals)
How It Works:
- Fetches 4H Turtle Soup status for both current and correlated pair
- Checks if current pair showed true divergence (stayed in range)
- On lower timeframes, finds actual swing points within 4H candles
- Draws line connecting the two swing points
- Only triggers on new 4H bar close to avoid duplicates
- Displays on both main chart and HTF overlay
Settings:
- Toggle SMT display on/off
7. DASHBOARD TABLE
What It Does:
- Displays key market information in a table at the bottom-right corner
- Updates in real-time as market conditions change
Information Shown:
1. Killzone: Y/N - Whether currently in active trading hours (1 AM - 12:59 PM NY)
2. Daily Bias: Bullish/Bearish/N/A - Market direction from daily candle analysis
3. 4H Turtle Soup: Bullish/Bearish/No - Most recent 4H TS pattern (within last 5 candles)
4. 4H SMT: Bullish/Bearish/No - Most recent 4H SMT divergence (within last 5 candles)
How It Works:
- Checks arrays of TS and SMT occurrences
- Finds the most recent pattern within the last 5 completed 4H candles
- Updates only on the last bar to optimize performance
HOW IT ALL WORKS TOGETHER
Workflow Example:
1. Session Context: The indicator identifies you're in NY AM session (9:30-11 AM), highlights it in green
2. Daily Bias: Shows "Bullish" from yesterday's price action
3. HTF Overlay: Displays last 5 completed 4H candles on the right, showing higher timeframe structure
4. Turtle Soup: Detects a bearish TS on 4H - price broke above previous high but closed below it
5. SMT: If correlated pair (e.g., NQ) had bullish TS but current pair (ES) didn't, draws SMT line
6. FVGs: Identifies gaps in price that may get filled
7. Dashboard: Summarizes all this information in one place
Key Design Principles:
1. Adaptive Thresholds: Both FVG and Turtle Soup use ATR-based thresholds that adjust to volatility
2. Multi-Timeframe: Works across different chart timeframes while maintaining HTF context
3. Visual Clarity: Current session highlighted in green, past sessions in grey
4. Memory Management: Limits arrays to prevent performance issues
5. Confirmed Data Only: Uses lookahead_off to ensure only completed candles are analyzed
Best Practices for Use:
1. Timeframe Selection: Use lower timeframes (5m, 15m) for entries, but always check HTF overlay for context
2. Session Awareness: Trade during active killzones when liquidity is highest
3. Daily Bias: Align trades with daily bias for higher probability
4. Turtle Soup: Look for TS patterns at key support/resistance levels
5. SMT Divergence: Use SMT to identify when one pair is leading/diverging from correlated pair
6. FVG Fills: Watch for price to return and fill FVG gaps
TECHNICAL DETAILS
Performance Optimizations:
- Limits arrays to 50 elements (FVGs, TS, SMT)
- Only updates dashboard on last bar
- Clears and redraws HTF overlay each bar to prevent duplicates
- Uses efficient time-based lookups for swing point detection
Timezone Handling:
- All sessions use New York time (America/New_York)
- Handles EDT/EST automatically
- Daily bias uses exchange timezone for daily candles
Symbol Support:
- Works with forex, futures, stocks, crypto
- Automatically detects JPY pairs for correct pip calculation (0.01 vs 0.0001)
- Handles 24/7 markets (crypto) vs traditional market hours
SETTINGS SUMMARY
Display Settings:
- Show FVGs
- Show HTF Candle Overlay
- Show Session Times
- Turtle Soup Threshold Mode (Fixed PIPs / ATR-based)
- Turtle Soup ATR Multiplier
- ATR Length
FVG Settings:
- FVG Threshold Mode (Auto / Manual / ATR-based)
- FVG Threshold Multiplier
- FVG Manual Threshold (%)
- Minimum Threshold Override (%)
- FVG ATR Length
HTF Candle Overlay:
- HTF Overlay Timeframe (1H, 4H, 1D, 1W, 1M)
- Number of Candles (3, 4, 5)
- Show HTF Candle Boundaries
- Show HTF Candle Labels
HTF Turtle Soup Settings:
- Show HTF Turtle Soup
- Turtle Soup Timeframe (15, 60, 240)
- Lookback Candles
SMT Settings:
- Show SMT
This indicator is designed to provide a comprehensive view of market structure, combining multiple trading concepts into a unified tool for better trading decisions.
Pine Script®指標
TTC Open Lines v1This liquidity-based key level indicator displays previous highs and lows from the daily, weekly, monthly, quarterly, and yearly charts. These price levels serve as important reference points in the trading of any market or financial instrument.
They also represent high-probability reaction zones, making them ideal areas to look for trades using simple confirmation patterns.
Each level plays a crucial role in determining whether the market is likely to continue its current trend or reverse direction. I like to think of these levels as two magnets — they can either attract price or push it away.
You might wonder how two opposing behaviors can both be useful. The key is to remain directionally neutral and develop your own set of rules to identify when price is more likely to react by being drawn toward these areas or rejected from them.
I have my own rules for this, and you can develop a framework that fits your own trading style as well.
Pine Script®指標
Super Crooks - Breakers█ OVERVIEW
This indicator plots bullish and bearish breaker formations. When price is moving quickly, it can be difficult to mark out breaker formations across multiple timeframes. This indicator simplifies that process by marking these out automatically -- ultimately making the formations easily visible.
█ CONCEPTS
Adds L, H, LL, HH swing point labels to show bullish breaker formations
Adds H, L, HH, LL swing point labels to show bearish breaker formations
█ HOW TO USE
Add the Super Crooks Breakers indicator to your TradingView charts
Open the indicator's settings and select your preferred configurations
Watch your charts to see the indicator plot breaker formations
█ FEATURES
Visuals are drawn in real time (after candle closure) on your selected timeframe
Breaker formations can be configured to be plotted based on candle wick (high/low) price or candle close price
Configuration options (swing lengths, show/hide setups)
Pine Script®指標
Aggressive Buyers & SellersShows indicators of aggressive sellers and buyers, so when you are looking at the chart closer then you will be able to make short time trade based off the indicators tell.
Pine Script®指標
Superbank Grid The Superbank Grid automatically plots institutional-grade price zones across Forex, Indices, and Crypto, giving traders a consistent framework for identifying major liquidity areas, psychological levels, and high-probability reaction zones — on any timeframe.
This indicator is designed to eliminate guesswork by anchoring price to repeatable, whole-number structures used by professional traders.
What It Draws
Forex (All FX Pairs)
Major Zones: Every 1,000 pips
Median Levels: 500 pips
Quarter Levels: 250 & 750 pips
Minor Grid: 100-pip intervals
Examples:
EURUSD:
Major → 0.7000 · 0.8000 · 0.9000 · 1.0000 · 1.1000
Quarters → 0.7250 · 0.7500 · 0.7750
USDJPY:
Major → 60 · 70 · 80 · 90 · 100 · 110
Quarters → 62.5 · 65.0 · 67.5 · 122.5 · 125.0 · 127.5
Indices & Crypto
Major “Superbank” Zones: $10,000
Median Levels: $5,000
Minor Grid: $1,000
Ideal for:
NAS100
US30
SPX
BTC
ETH
Key Features
Works on all timeframes
Auto-adapts to Forex, JPY pairs, Indices, and Crypto
Prevents chart auto-scale distortion (“screen squish”)
Displays only relevant zones near current price
Adjustable colors, line weights, and label sizes
Optional visibility toggles for Major, Median, Quarter, and Minor levels
Best Use Cases
Identifying institutional liquidity pools
Marking reaction zones and decision points
Structuring entries, targets, and stop placement
Aligning price action with Big Money levels
Swing trading, position trading, and intraday execution
Important Notes
This indicator is a context and structure tool, not a signal generator.
Best used in combination with market structure, order flow, and risk management.
Designed to reflect how professional traders segment price, not retail indicators.
Who This Is For
Traders who think in zones, liquidity, and scale — not random indicators.
If you trade:
Forex
Indices
Crypto
and want a repeatable framework for understanding where price matters…
This tool belongs on your chart.
Pine Script®指標
Paulo - Volume Scalp AutoIndicator Name:
Paulo – Volume Scalp Auto (Crypto)
Description:
This indicator was developed for aggressive crypto scalping, with a focus on 1-minute charts and highly volatile altcoins.
It combines volume analysis, price action, and ATR-based volatility, automatically adjusting signal sensitivity depending on whether the market is in a normal or volatile regime.
The script detects relevant volume spikes relative to the moving average, helping filter out weak entries and highlighting potential short-term participation of large market players.
When volatility increases, the indicator automatically raises the volume threshold, reducing false signals that are common in fast-moving altcoins.
Key features:
• Automatic Normal vs. Volatile mode
• Dynamic volatility detection
• Visual buy and sell signals
• Native TradingView alerts
• Optimized for 1-minute crypto scalping
Disclaimer: This indicator is a decision-support tool only and does not constitute financial advice. Always use proper risk management.
Pine Script®指標
Pine Script®指標
ORB 369 - Opening Range Breakout The ORB 369 is a professional-grade momentum indicator designed to capture the volatility of the New York market open. While many Opening Range Breakout (ORB) scripts simply draw lines, this script integrates time-segmented price action with Supply and Demand (S/D) theory to filter out "fakeouts" and identify high-probability institutional entries.
💡 The Core Concept: Why 3-6-9?
The strategy is rooted in the "Market Open Volatility" principle. The first 15 minutes (9:30–9:45 AM EST) represent the period where institutional orders are processed and "price discovery" is most aggressive.
The Range: We define the 15-minute high and low as the "Battlefield."
The 369 Logic: This script focuses on the 3rd 5-minute candle of the session (completing the 15m range) and monitors the subsequent 5m and 15m cycles for a definitive trend shift.
🛠️ How It Works
The script utilizes Pine Script v6 high-precision time-tracking and state-handling to ensure accuracy even on historical data.
1. Dynamic Session Anchoring
Unlike static indicators, this script uses America/New_York timezone anchoring. It identifies the Opening Range (OR) regardless of your local time, ensuring you are aligned with the NYSE floor traders.
2. Supply & Demand Detection
The script doesn't just look at the high/low; it analyzes the micro-structure within that 15-minute window.
It identifies unmitigated zones (areas where price moved so fast it left "imbalances").
If a breakout occurs but price immediately hits an internal S/D zone, it warns the trader of a potential "Look Above and Fail" scenario.
3. Breakout Confirmation (5m Logic)
A common mistake is entering on a "wick." This script uses Closing Logic:
Bullish Signal: A 5-minute candle must close entirely above the 15m High.
Bearish Signal: A 5-minute candle must close entirely below the 15m Low.
The script then repaints the candle body (defaulting to Blue/Red) to provide an instant visual cue that the "Breakout is Confirmed."
📈 How to Use It
Wait for the Box: At 9:45 AM EST, the script will automatically lock in the High, Low, and Midpoint (Mean) of the range.
Monitor the Midpoint: The Midpoint acts as the "Line in the Sand." If a breakout occurs but price stays near the Midpoint, the trend is weak. If price stays in the upper half of the range, the Bullish bias is stronger.
The Entry: Wait for the Candle Color Change. A blue candle above the range suggests a long entry; a red candle below suggests a short.
Supply/Demand Zones: If the script highlights a "Demand Zone" at the bottom of the range and price bounces off it before breaking the top, this provides a "double-confluence" setup.
⚙️ Technical Features
Customizable Aesthetics: Use the Settings menu to change the breakout colors (Green/Blue/Red) to match your personal chart theme.
Smart Tooltips: Hover over the inputs in the settings to see detailed explanations of what each parameter does.
Alert Ready: Built-in alerts for "Bullish Breakout" and "Bearish Breakout" that can be sent directly to your phone or desktop via TradingView.
Pine Script®指標
AI Indicator EMA big moveThe Institutional big move+ big move + Target indicator is designed to help trader identify high probabilty breakout,
Pine Script®指標
Divergence Detector with GradingIt detects divergences in real time and grades the divergence based on the probability of that divergence playing out. It will grade divergences with a higher grade if near major support and resistantance levels.
Pine Script®指標
Pivot Points AvancadoOlá Amigos,
Indicador Pivot Points com Cruzamento de Médias Móveis
Fabricio Nicolau
Pine Script®指標
Previous High & LowPrevious High & Low plots key reference levels from higher timeframes directly on your chart to help you spot liquidity targets, support/resistance, and reaction zones faster.
What it shows:
PDH / PDL (Previous Day High & Low): yesterday’s high and low, extended to the end of the current day (works on all timeframes, including low TF).
H-2 / H-3 (1H levels): the high/low from the previous-previous hour (H-2) and an optional extra set (H-3) for additional intraday context. These lines are limited up to the current candle.
H4-1 / H4-2 (4H levels): the high/low of the previous 4-hour candle (H4-1) and the previous-previous 4-hour candle (H4-2), also limited up to the current candle.
Customization:
Toggle each group on/off (PDH/PDL, H-2, H-3, H4-1, H4-2)
Fully style lines (color, width, solid/dashed/dotted)
Optional labels for each level
How to use:
Use these levels as “areas of interest” for breakouts, pullbacks, stop runs/liquidity sweeps, and mean-reversion reactions—especially around PDH/PDL and prior 4H/1H extremes.
Pine Script®指標
Custom Trading Strategy (1H)Overview: This indicator is a technical tool designed for the 1-Hour timeframe (1H).
It combines Trend following with Momentum to filter false signals.
The strategy only triggers a signal when three classic indicators align perfectly.
How it Works? The script plots a green "N" label when the following 4 conditions are met simultaneously:
MACD: Both MACD Line and Signal Line must be above Zero (Bullish Territory).
MACD Crossover: A bullish crossover occurred either on the current bar or the previous bar.
SMA: Simple Moving Average (5) crosses over SMA (20).
RSI: Relative Strength Index is above 50 (Positive Momentum).
Features:
Clean Chart: Calculates SMAs and Stop Loss levels in the background without cluttering the chart with lines.
Only the signal label "N" is displayed.
Filtering: Filters out weak signals by requiring RSI > 50 and MACD > 0 confirmation.
Pine Script®指標
FVG SMC Real Combat ProOverview
FVG SMC Real Combat Pro is a professional-grade trading indicator specifically optimized for high-volatility assets like Gold (XAU) and Silver (XAG). By integrating Fair Value Gaps (FVG) with Smart Money Concepts (SMC) and Multi-Timeframe (MTF) Trend Filtering, this tool identifies high-probability institutional order flow zones.
Key Capabilities
Asset-Specific Logic: Pre-configured EMA and ATR filters tailored for the unique volatility of Silver and Gold.
MTF Trend Alignment: Automatically syncs with the 1H timeframe to ensure your entries are always aligned with the higher-timeframe narrative.
Dynamic Zone Management: Draws FVG boxes in real-time. Zones that are mitigated or breached are automatically marked as "INVALID" to keep your charts clutter-free.
Professional Dashboard: A sleek, real-time UI provides:
Current Bias: Bullish, Bearish, or Neutral.
Entry Points: Aggressive (Edge) and Conservative (Consequent Encroachment/Midpoint).
Smart SL/TP: Automated risk-reward calculations based on ATR and swing structures.
How to Use
Check the Bias: Look for the "🚀 BULLISH" or "📉 BEARISH" status on the dashboard.
Monitor the Zone: Wait for the price to retrace into the highlighted FVG box (Status: "🔥 IN ZONE").
Execute: Utilize the provided CE (50% Midpoint) for optimized entries and follow the Stop Loss levels for disciplined risk management.
核心概述
FVG SMC Real Combat Pro 是一款專為黃金 (XAU) 與 白銀 (XAG) 等高波動資產設計的專業級指標。本工具結合了價格行為中的合理價值缺口 (FVG) 與 聰明錢概念 (SMC),並導入多時框 (MTF) 趨勢過濾,旨在捕捉機構級別的訂單流區間。
核心功能
商品專屬邏輯: 針對金、銀不同的波動率,內建優化過的 EMA 趨勢長度與 ATR 缺口判定參數。
MTF 趨勢對齊: 自動串接 1 小時圖表趨勢,確保您的操作始終與大週期方向一致。
動態區間管理: 即時繪製 FVG 區間。當區間被突破或回測完成時,系統會自動標註為「失效」,保持圖表簡潔清晰。
專業數據面板: 提供直觀的實時 UI:
Bias (建議方向): 顯示看多、看空或觀望。
精準點位: 提供激進進場位與保守進場位 (CE/中軸)。
智慧止損盈: 基於 ATR 與波動結構自動計算科學的止損與目標價 (TP1/TP2)。
操作指南
確認方向: 觀察面板中的方向標籤(🚀 看多 / 📉 看空)。
等待回測: 等待價格回調至 FVG 區間(面板狀態顯示「🔥 區間內」)。
執行計畫: 參考面板給出的 CE (中軸) 或 Entry (邊緣) 進行操作,並嚴格執行建議的 Stop Loss 點位。
重要聲明 (Disclaimer)
Non-Repainting: This indicator does NOT repaint. All signals are calculated based on closed candles. (本指標絕不重繪,所有訊號基於收盤價計算。)
Risk Warning: Past performance is not indicative of future results. Trading involves significant risk. (過去績效不代表未來獲利,交易存在風險。)
Pine Script®指標
ICT Internal Levels [Amaan] 🔷 OVERVIEW
The ICT Internal Levels is a comprehensive institutional analysis suite designed to bridge the gap between subjective price action and objective algorithmic logic. This script automates the detection of core ICT pillars—Liquidity, Time, and Displacement—into a single, high-performance interface.
🧠 The Core Engine
Unlike standard support/resistance indicators, this script uses a dynamic state-tracking system to identify institutional interest zones. It manages historical levels using memory-efficient User-Defined Types (UDTs) and arrays, ensuring that only the most relevant "unswept" liquidity remains on your chart.
🛠 Key Features
• Auto IFVG Checklist: A real-time confluence engine that "grades" market conditions from C to A+ by cross-verifying Liquidity Sweeps, Midnight Open Bias, and HTF Delivery.
• SMT Divergence Engine: A dual-mode detector (Adjacent & Structural) that identifies cracks in correlation between correlated assets (e.g., NQ/ES) with built-in dynamic invalidation.
• Algorithmic Macros: Six fully customizable time-anchored sessions (New York local time) that highlight the specific "killzones" where institutional volatility is highest.
• Internal Liquidity Scanner: A multi-timeframe scanner for Equal Highs (EQH) and Equal Lows (EQL) that identifies the "Draw on Liquidity" across 1m to 15m charts.
• Institutional Bias Framework: Automatically anchors the Midnight Opening Price to determine Daily Equilibrium (Discount vs. Premium arrays).
📈 Why Use This Script?
This tool is built for the "Smarter Trader." It removes the guesswork from ICT concepts by providing:
1. Objectivity: Know exactly when a setup has enough confluence via the automated Checklist.
2. Clarity: Clear visual distinction between Major and Minor liquidity levels.
3. Risk Management: Automated "Breakeven" logic prompts you when the stop-run phase is likely complete.
📝 Technical Implementation
This version is optimized for speed and accuracy. It features zero repainting on the checklist and SMT components by utilizing closed-candle verification. The UI is fully customizable, allowing you to tailor the dashboard to your specific trading style.
🟢 Advanced BSL & SSL Liquidity Engine
The core of this script is a sophisticated tracking system for Buyside Liquidity (BSL) and Sellside Liquidity (SSL). In institutional trading (ICT), these aren't just highs and lows; they are "Liquidity Pools" where retail stop-losses (buy/sell stops) are clustered, acting as magnets for the market algorithm.
1. The Logic of "Parent Swings"
Unlike basic indicators that mark every fractal high/low, this script uses a Swing Strength filter. It only identifies levels after they have been confirmed by a specific number of bars on either side (lookback/lookforward). This ensures the levels represent significant structural points where true "Smart Money" liquidity resides.
2. Major vs. Minor Classification (The Volatility Filter)
The script includes an intelligent classification system based on the Major Level Threshold %:
• The Calculation: Once a pivot is formed, the script measures the displacement away from that level.
• The Depth: If price expands by more than \bm{X\%} (e.g., 0.5%) after forming a high, it is labeled a "Major BSL".
This tells the trader that this level protected a significant move, making the liquidity sitting above it even more valuable to the algorithm.
3. Proximity Logic: Relatively Equal Highs/Lows (REQH/REQL)
The script features an internal "Proximity Scan." It automatically evaluates the distance between active liquidity levels:
• Logic: If two BSL levels are within a defined price threshold (\bm{REQ\_THRESHOLD}), the script identifies them as Relatively Equal Highs.
• Trading Insight: In ICT concepts, equal highs/lows are "engineered liquidity." The market is much more likely to run through these levels aggressively because there is a double layer of stops resting there.
4. Automated Level Management & Mitigation
To prevent "chart clutter," the script uses Custom Types and Arrays to manage levels dynamically:
• Mitigation (The Purge): As soon as price trades through a level, it is considered "mitigated" or "purged."
• Traded-Through Memory: You can toggle a setting to keep these levels visible. If enabled, the script stops extending the line and reduces its opacity (e.g., to 25%), leaving a "ghost level" on the chart. These often act as S/R Flips or support/resistance zones in future sessions.
📝 Logic behind it
• Methodology: The script utilizes the method keyword in Pine Script v6 to create clean, object-oriented code for level deletion and updates.
• Performance: By using array.unshift() and array.remove(), the script maintains a FIFO (First-In-First-Out) queue. This ensures that even on high-volatility days, the script never exceeds the 500-line drawing limit, maintaining smooth chart performance.
• Coordinate Precision: Lines are pinned using bar_index , ensuring that the line starts at the exact wick peak, providing pixel-perfect accuracy for liquidity analysis.
🟢 Institutional Macro Sessions
In the ICT methodology, Time is the primary filter. Price levels only become significant when they are reached at specific times of the day. This script automates the detection of Algorithmic Macros—tight 20-to-30-minute windows where the "Interbank Price Delivery Algorithm" (IPDA) is programmed to execute specific volatility injections.
1. Algorithmic Directives
During these highlighted windows, the market is not moving randomly. The algorithm is usually "called" to perform one of three tasks:
• Liquidity Purge: A quick run to stop out retail traders at a previous High (BSL) or Low (SSL).
• Rebalancing: Returning to a Fair Value Gap (FVG) or "Imbalance" to seek equilibrium.
• Expansion: Moving rapidly from an internal range toward a higher-timeframe target.
2. The 6 Tracked Macros
Your script identifies the most vital institutional windows for the New York session:
• AM Macro 1 (08:50 – 09:10): Often used for "Setting the Stage" or manipulation before the Equities Open.
• AM Macro 2 (09:50 – 10:10): A high-probability execution window often coinciding with the "Silver Bullet" setup.
• AM Macro 3 (10:50 – 11:10): Frequently marks the "Trend Continuation" or the start of a midday reversal.
• Lunch Macro (11:50 – 12:10): Algorithmic rebalancing before the PM session.
• PM Macro (13:10 – 13:40): The kick-off for the afternoon trend and London Close volatility.
• Last Hour Macro (15:15 – 15:45): The final algorithmic rebalancing before the New York "MOC" (Market On Close) orders.
3. Behind the Logic: Timezone Synchronization
A major technical challenge in Pine Script is ensuring time-boxes align correctly regardless of the user's local clock
• The Solution: This script utilizes a Timezone Shift parameter combined with the timestamp() function.
• Logic: It anchors the calculation to the chart’s syminfo.timezone and then offsets it to match New York Local Time.
This ensures that even if you are trading from London, Tokyo, or Dubai, the "09:50 Macro" will always plot exactly when the New York algorithms become active.
🟢 Multi-Timeframe Liquidity Scanner (EQH/EQL)
One of the most powerful features of V2 is the Stable Deep Scan Logic. Unlike basic fractal indicators, this script doesn't just mark any two similar peaks; it performs a rigorous historical audit of the price action.
The "Unswept" Logic
The table is powered by a custom function, check_liquidity_deep(), which executes a two-stage verification:
1. Detection: It scans a lookback window (default 300 bars) to find price points that are mathematically equal.
2. Verification: Once a level is found, the script runs a secondary loop to ensure that no intervening candle has breached (swept) that level. If a higher high has occurred between the level formation and the current bar, the level is discarded as "invalid/purged."
Data Visualization
The scanner requests this deep-scan data via request.security() for the 1m, 2m, 3m, 4m, 5m, and 15m timeframes simultaneously.
• EQH (Green/Red): Indicates a "Ceiling" of liquidity waiting to be raided.
• EQL (Red/Green): Indicates a "Floor" of sell-side liquidity.
• Both: Alerts the trader to a "bracketed" market, often preceding a high-volatility expansion.
• Memory Management: By using var array structures for SMT lines and labels, the script avoids the "Maximum Objects" limit often hit by lower-quality scripts.
• Optimization: The check_liquidity_deep function is designed to only trigger its heaviest calculations on the barstate.islast, ensuring your chart remains fluid and responsive even with multiple timeframes active.
• Coordinate Precision: The script uses xloc.bar_time for Macro lines to ensure they remain pinned to the correct NYC time regardless of the user's local computer clock or daylight savings shifts.
🟢 The Auto IFVG Checklist
The Auto IFVG Checklist in this script is a real-time confluence engine. It doesn't just display labels; it executes complex multi-timeframe scans and state-checks to verify if an institutional setup is currently active.
1. 🛡️ Liq Sweep (Liquidity Sweep)
Code Logic: high > high and close < high (for Bearish) or low < low and close > low (for Bullish).
• How it works: Your code identifies "Wick Manipulations." It flags a sweep when price breaches a previous candle's extremity but fails to hold that level on the close.
• Persistence: It uses swept_p with a ta.barssince lookback of 5 bars, meaning the "fuel" from the sweep remains valid for 5 candles after it occurs.
2. ⚡ Momentum (Midnight Open Bias)Orderflow Code Logic: midnightOpen = na anchored at hour == 0 and minute == 0.
• How it works: The script establishes a "True Day Open."
• IOF Bullish: Price is currently below Midnight Open (accumulating in a discount).
• IOF Bearish: Price is currently above Midnight Open (distributing in a premium).
• The Checklist Role: The Momentum check confirms if you are trading on the correct side of the "Power of 3" (Accumulation/Manipulation/Distribution).
3. 🎯 Clear DOL (Draw on Liquidity)
Code Logic: iof_bullish ? close < ta.vwap : close > ta.vwap.
• How it works: It uses VWAP (Volume Weighted Average Price) as the standard for algorithmic equilibrium.
• The Objective: If the bias is bullish, the script looks for price to be below VWAP, indicating the "Draw" is toward a higher premium or internal liquidity pool. It ensures the trade has room to "breathe" before hitting equilibrium.
4. 🔄 HTF iFVG (Higher Timeframe Inversion FVG)
Code Logic: f_scan_tf(tf) using request.security.
• How it works: This is the most complex part of the indicator. It scans the 1m, 2m, 3m, 4m, and 5m timeframes for "Inversion."
• The "Inversion" Event: It checks if price has closed completely through a Fair Value Gap (inv_b or inv_s). In your script, if a gap on any of these five timeframes is inverted, it signals a high-probability "Change in State of Delivery."
5. 🚢 HTF Delivery (Higher Timeframe Narrative)
Code Logic: f_scan_tf scanning 15m, 30m, 1H, and 4H.
• How it works: The script checks if price is currently interacting with an institutional zone on much higher timeframes.
• Priority: It uses a hierarchical "if-else" chain. If a 4H zone is found, it overrides the 1H; if a 1H is found, it overrides the 15m. This ensures the Checklist always displays the most significant timeframe currently "delivering" price.
6. ⚖️ Breakeven (The Risk-Off Trigger)
Code Logic: beR = ta.barssince(swept) < 10.
• How it works: This is a time-based risk management filter.
• The Logic: If a Liquidity Sweep occurred within the last 10 bars and the trade is moving, the script flags "Breakeven." It alerts the trader that the "Stop Run" phase should be over, and it is time to move the stop loss to the entry to ensure a risk-free trade.
📊 The Mathematical Rating System
The final "RATING" cell in the table is the result of a weighted boolean check:
• A+: Requires all 5 confluences (Sweep, Momentum, iFVG, Delivery, and DOL).
• A: Requires Sweep, Momentum, iFVG, and DOL.
• B+: Only requires the intraday pillars (Sweep, Momentum, and iFVG).
• C: Only requires an iFVG presence.
🟢 SMT Divergence Engine
The SMT engine in this script acts as a "crack in correlation" detector. It monitors the relationship between current chart and a Comparison Symbol (e.g., NQ vs. ES) to identify institutional accumulation or distribution that isn't visible on a single chart.
1. Dual-Mode Detection
This feature implements two distinct types of SMT to capture both aggressive and structural shifts:
• Adjacent Wick SMT: This is "Micro-SMT." It compares the current candle's wick to the previous candle's wick. If the main symbol makes a Higher High but the correlated symbol does not, it flags an immediate divergence.
• Structural Pivot SMT: This is "Macro-SMT." It uses three different lookback lengths (Primary, Secondary, and Tertiary) to find divergences across major market swings.
2. Dynamic Invalidation Logic (The "Mended Crack")
A common issue with SMT indicators is that they stay on the chart forever. Your code solves this with a Reference Price Check:
• The Logic: When a divergence is found, the script stores the correlated symbol’s high/low in an array (adj_up_comp_refs).
• The Invalidation: If the correlated symbol eventually "catches up" and breaks that stored reference price, the "crack" is considered mended. The script then executes a while loop to purge the lines and labels from the chart automatically.
3. Advanced Memory Management (Array-Based)
This allows the script to track multiple concurrent SMTs. If three different divergences happen in a row, the script can display and manage all of them independently without hitting TradingView's drawing limits or "forgetting" old levels.
4. Triple-Length Pivot Analysis
By using three different pivot lengths (3, 5, and 8), the SMT engine filters "Market Noise":
• Tertiary (3): For scalpers looking for quick entries.
• Primary (5): For standard intraday trend changes.
• Secondary (8): For major structural shifts and daily bias reversals.
5. Algorithmic Correlation Mapping
The script uses fixnan(ta.pivothigh(...)) to ensure that the SMT lines are pinned exactly to the historical pivots, even if the comparison symbol has gaps in its data. This ensures that the "slope" of the SMT line is mathematically accurate, providing a clear visual of the divergence.
⚒️How to use ICT Internal Levels
Step 1: Establish the "Daily Anchor" (Midnight Open)
Before looking for trades, identify your bias using the Midnight Opening Price.
• Look at the Momentum section of your Checklist.
• If the script says "BULL" (price is below Midnight Open), you are in a Discount and should only look for Longs.
• If it says "BEAR" (price is above Midnight Open), you are in a Premium and should only look for Shorts.
Step 2: Identify the "Draw" (EQH/EQL & BSL/SSL)
Now, find out where the market is likely to go.
• The Scanner: Check the Multi-TF EQH/EQL Table. If you see "EQH" across multiple timeframes (1m, 5m, 15m), that is a high-probability Draw on Liquidity (DOL).
• The Levels: Look for the Major BSL/SSL lines. These are your "Targets." The market will likely seek these pools of money before reversing.
Step 3: Wait for the "Time Window" (Macros)
Don't trade in the "dead zones." Wait for price to enter a Macro Session (the highlighted vertical zones).
• Institutional volatility is most consistent during these windows (e.g., 09:50–10:10 AM).
• The Goal: You want to see price reach your "Draw" (from Step 2) during this time window.
Step 4: Confirm the "Crack" (SMT Divergence)
As price approaches a BSL or SSL level within a Macro window, look for an SMT label.
• If the asset you are trading (e.g., NQ) sweeps a high, but the comparison symbol (e.g., ES) does not, the SMT engine will plot a line.
• This confirms that "Smart Money" is actively distributing, and a reversal is imminent.
Step 5: The "Entry Signal" (HTF iFVG)
Wait for the Change in State of Delivery.
• Look for an iFVG (Inversion Fair Value Gap) to form on the 1m or 5m chart.
• When price closes through a gap, the HTF IFVG item on your Checklist will turn green. This is your "Green Light" to enter the market.
Step 6: Final Audit (The Checklist Grade)
Before clicking "Buy" or "Sell," look at the RATING in the bottom corner of the checklist.
• A+ / A: Execute with full confidence. All pillars (Time, Price, SMT, and HTF) are aligned.
• B+: High probability, but perhaps you are trading outside of a Macro or against the HTF Delivery. Use smaller risk.
• C: Avoid this setup; it is likely a trap or a low-probability scalp.
Step 7: Risk Management (Breakeven)
Once you are in the trade:
• Monitor the Breakeven status on the checklist.
• Once it switches to "YES" (usually after 10 bars or a significant move), move your Stop Loss to your entry price. You now have a "Risk-Free" trade.
⚠️ Risk Disclaimer
The ICT Internal Levels V2 is an educational tool for market analysis and does not provide financial advice or guaranteed "buy/sell" signals. Trading involves significant risk, and you may lose some or all of your invested capital.
No Guarantees: Past performance does not guarantee future results. While this script uses advanced logic to identify confluences, all market analysis involves probability, not certainty.
User Responsibility: The author is not liable for any financial losses resulting from the use of this indicator. You are solely responsible for your trading decisions and should always use proper risk management. Use this script to supplement your own manual analysis—never rely on an indicator alone for execution.
Pine Script®指標
Overnight Mid-pointThis script defines a scrollable intraday session and continuously tracks the highest and lowest candle body closes made during that session, explicitly ignoring wicks. As the session develops, it plots a single horizontal midpoint line (dotted, dashed, or solid by user selection) calculated as the average of those two body closes, extending to the right from the session. For visual verification, it places exactly two dots on the chart: a green dot above the bar with the highest body close and a red dot below the bar with the lowest body close. Each new session resets the calculation, ensuring only one midpoint line and two verification markers are visible at any time. For proper use, 1800 - 0800 local time should be used (may be a couple hours off depending on your region).
Pine Script®指標
Auto Decision Box LITEAuto Decision Box LITE
Simple educational indicator that visualizes consolidation "decision boxes" on a higher timeframe after impulse moves.
Features:
- Draws orange high/low box lines with fill based on ATR impulse and balance bars
- Optional RTH session filter (9–11 AM ET by default)
- Basic crossover/crossunder labels when price breaks the box (green up / red down)
- Daily disclaimer label
This is a structure-only tool — no signals, no filters, no trading logic. Use it to manually identify potential zones on stocks, futures, forex, etc.
For educational purposes only. Not financial advice. Always do your own research and manage risk.
Pine Script®指標






















