Scalp Precision Matrix [BullByte]SCALP PRECISION MATRIX (SPM)
OVERVIEW
Scalp Precision Matrix (SPM) is a comprehensive decision-support framework designed specifically for scalpers and short-term traders. This indicator synthesizes five distinct analytical layers into a unified system that helps identify high-quality setups while avoiding common pitfalls that trap traders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE CORE PROBLEM THIS INDICATOR ADDRESSES
Scalping demands rapid decision-making while simultaneously processing multiple data points. Traders constantly ask themselves: Is momentum still alive? Am I entering near a potential reversal zone? Is this the right session to trade? What is my actual risk-to-reward? Most traders either overwhelm themselves with too many separate indicators (creating analysis paralysis) or use too few (missing crucial context).
SPM was developed to consolidate these essential checks into one cohesive framework. Rather than overlaying disconnected indicators, each component in SPM directly informs and adjusts the others, creating an integrated analytical system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THESE SPECIFIC COMPONENTS AND HOW THEY WORK TOGETHER
The five analytical layers in SPM are not arbitrarily combined. Each addresses a specific question in the scalping decision process, and together they form a logical workflow:
LAYER 1: MOMENTUM FUEL GAUGE
This answers the question: "Does the current move still have energy?"
After any impulse move (a significant directional price movement), momentum naturally decays over time. The Fuel Gauge estimates remaining momentum by analyzing four factors:
Body Strength (30% weight): Compares recent candle body sizes against the historical average. Strong momentum produces candles with large bodies relative to their wicks. The calculation takes the 3-bar average body size divided by the 20-bar average body size, then scales it to a 0-100 range.
Wick Rejection (25% weight): Measures the wick-to-body ratio. When wicks are large relative to bodies, it suggests rejection and weakening momentum. A ratio of 2.0 or higher (wicks twice the body size) scores low; smaller ratios score higher.
Volume Consistency (20% weight): Compares recent 3-bar average volume against the lookback period average. Sustained moves require consistent volume support. Volume dropping off suggests the move may be losing participation.
Time Decay (25% weight): Tracks how many bars have passed since the last detected impulse. Momentum naturally fades over time. The typical impulse duration is adjusted based on the current volatility regime.
These components are weighted and combined, then smoothed with a 3-period EMA to reduce noise. The result is a 0-100% gauge where:
- Above 70% = Strong momentum (green)
- 40-70% = Moderate momentum (amber)
- Below 40% = Weak momentum (red)
- Below 20% = Exhausted (triggers EXIT warning)
The Fuel Gauge also estimates how many bars of momentum remain based on the current burn rate.
IMPORTANT DISCLAIMER : The Fuel Gauge is NOT order flow, volume profile, or depth of market data. It is a technical proxy calculated entirely from standard OHLCV (Open, High, Low, Close, Volume) data. The term "Fuel" is used metaphorically to represent estimated remaining momentum energy.
LAYER 2: TRAP ZONE DETECTION
This answers the question: "Am I walking into a potential reversal area?"
Price tends to reverse at levels where it has reversed before. SPM identifies these zones by detecting clusters of historical swing points:
How it works:
1. The indicator detects swing highs and swing lows using the Swing Detection Length setting (default 5 bars on each side required to confirm a pivot).
2. Recent swing points are stored (up to 10 of each type).
3. For each potential zone, the algorithm counts how many swing points cluster within a tolerance of 0.5 ATR.
4. Zones with 2 or more clustered swing points, positioned between 0.3 and 4.0 ATR from current price, are marked as Trap Zones.
5. A Confluence Score is calculated based on cluster density and proximity to current price.
The percentage displayed (e.g., "TRAP 85%") is a CONFLUENCE SCORE, not a probability. Higher percentages mean more swing points cluster at that level and price is closer to it. This indicates stronger historical significance, not a prediction of future reversal.
CRITICAL DISCLAIMER : Trap Zones are NOT institutional order flow, liquidity pools, smart money footprints, or any proprietary data feed. They are calculated purely from historical swing point clustering using standard technical analysis. The term "trap" describes how price action has historically reversed at these levels, potentially trapping traders who enter prematurely. This is pattern recognition, not market structure data.
LAYER 3: VELOCITY ANALYSIS
This answers the question: "Is price moving favorably right now?"
Velocity measures how fast price is currently moving compared to its recent average:
Calculation:
- Current velocity = Absolute price change from previous bar divided by ATR
- Average velocity = Simple moving average of velocity over the lookback period
- Velocity ratio = Current velocity divided by average velocity
Classification:
- FAST (ratio above 1.5 ): Price is moving significantly faster than normal. Good for momentum continuation plays.
- NORMAL (ratio 0.5 to 1.5) : Typical price movement speed.
- SLOW (ratio below 0.5 ): Price is moving sluggishly. Often indicates ranging or choppy conditions where scalping becomes difficult.
The velocity score contributes 18% to the overall quality score calculation.
LAYER 4: SESSION AWARENESS
This answers the question: "Is this a good time to trade?"
Different trading sessions have different characteristics. SPM automatically detects which major session is active and adjusts its quality assessment:
Session Times (all in UTC):
- A sia Session : 00:00 - 08:00 UTC
- London Session : 08:00 - 16:00 UTC
- New York Session : 13:00 - 21:00 UTC
- London/NY Overlap : 13:00 - 16:00 UTC
- Off-Peak : Outside major sessions
Session Quality Weighting:
- Overlap : 100 points (highest liquidity, best movement)
- London : 85 points
- New York : 80 points
- Asia : 50 points (tends to range more)
- Off-Peak : 30 points (lower liquidity, more false signals)
The session score contributes 17% to the overall quality calculation. Signals are also filtered to prevent firing during off-peak hours.
Note : These are fixed UTC times and may not perfectly match your broker's session boundaries. Use them as general guidance rather than precise timing.
LAYER 5: VOLATILITY REGIME ADAPTATION
This answers the question: "How should I adjust for current market conditions?"
SPM compares current volatility (14-period ATR) against historical volatility (50-period ATR) to categorize the market:
HIGH Volatility (ratio above 1.3): Current ATR is 30%+ above normal. SPM widens thresholds to filter noise and extends target projections.
NORMAL Volatility (ratio 0.7 to 1.3): Typical conditions. Standard parameters apply.
LOW Volatility (ratio below 0.7): Current ATR is 30%+ below normal. SPM tightens thresholds for sensitivity and reduces target expectations. The market state may show AVOID during prolonged low volatility.
This adaptation prevents false signals during erratic markets and missed signals during quiet markets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE SYNERGY: WHY THIS COMBINATION MATTERS
These five layers are not independent indicators placed on one chart. They form an interconnected system:
- A signal only fires when momentum exists (Fuel above 40%), price is away from danger zones (Trap Zones factored into quality score), movement is favorable (Velocity contributes to score), timing is appropriate (Session is not off-peak), and volatility is accounted for (thresholds adapt to regime).
- The Trap Zones directly influence Entry Zone placement. Entry zones are positioned beyond trap zones to avoid getting caught in reversals.
- Target projections automatically adjust to avoid placing take-profit levels inside detected trap zones.
- The Fuel Gauge affects which signal tier fires. Insufficient fuel prevents all signals.
- Session quality is weighted into the overall score, reducing signal quality during less favorable trading hours.
This integration is the core originality of SPM. Each component makes the others more useful than they would be in isolation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW THE QUALITY SCORE IS CALCULATED
The Quality Score (0-100) synthesizes all layers into a single number for each direction (long and short):
For Long Quality Score:
- Fuel Component (28% weight) : Full fuel value if impulse direction is bullish; 60% of fuel value otherwise
- Trap Avoidance (22% weight) : 75 points if no trap zone below; otherwise 100 minus the trap confluence score (minimum 20)
- Velocity Component (18% weight) : Direct velocity score
- Session Component (17% weight) : Current session quality score
- Trend Alignment (15% bonus) : Adds 12 points if price is above the 20-period SMA
For Short Quality Score:
- Same structure but reversed (bearish impulse direction, trap zone above, price below SMA)
The direction with the higher score becomes the current Bias. A 12-point difference is required to switch bias, preventing flip-flopping in neutral conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL TYPES AND WHAT THEY MEAN
SPM generates four types of signals, each with specific visual representation:
PRIME SIGNALS (Cyan Diamond)
These represent the highest quality confluence. Requirements:
- Quality score crosses above the Prime threshold (default 80)
- Bias aligns with signal direction
- Fuel is sufficient (above 40%)
- Session is active (not off-peak)
- Cooldown period has passed
Prime signals appear as cyan-colored diamond shapes. Long signals appear below the bar; short signals appear above.
STANDARD SIGNALS (Green Triangle Up / Red Triangle Down)
These represent good quality setups. Requirements:
- Quality score crosses above the Standard threshold (default 75) but below Prime
- Same bias, fuel, and cooldown requirements as Prime
Standard signals appear as small triangles in green (long) or red (short).
CAUTION SIGNALS (Small Faded Circle)
These represent minimum threshold setups. Requirements:
- Quality score crosses above the Caution threshold (default 65) but below Standard
- Same additional requirements
Caution signals appear as small, faded circles. These suggest the setup exists but with weaker confluence. Consider these only when broader market context supports them, or skip them entirely during uncertain conditions.
EXHAUSTION SIGNAL (Purple X with "EXIT" text)
This warning appears when the Fuel Gauge drops below 20% from above, indicating momentum has depleted. This is not a trade signal but a warning to:
- Consider exiting existing positions
- Avoid entering new trades in the current direction
- Wait for new momentum to develop
All signals use CONFIRMED bar data only (referencing the previous closed bar) to prevent repainting. Once a signal appears, it will never disappear or change position on historical bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
READING THE CHART ELEMENTS
TRAP ZONES (Red Dashed Box with "TRAP XX%" Label)
These mark price levels where multiple historical swing points cluster. The red dashed box shows the zone boundaries. The percentage is the confluence score indicating cluster strength and proximity.
How to use: When price approaches a trap zone, be cautious about entering in that direction. If your bias is LONG and there's a strong trap zone above, consider taking partial profits before price reaches it or adjusting your target below it.
ENTRY ZONES (Green Solid Box with "ENTRY" Label)
These show suggested entry areas based on the current bias direction. For LONG bias, the entry zone appears below the trap zone (buying the dip beyond support). For SHORT bias, it appears above the trap zone (selling the rally beyond resistance).
How to use: Rather than entering at current price, consider placing limit orders within the entry zone. This positions you beyond where typical trap reversals occur.
TARGET ZONES (Blue Dotted Box with "TARGET" Label)
These project potential take-profit areas based on ATR multiples, adjusted for:
- Current volatility regime (wider in high volatility, tighter in low)
- Impulse direction (larger targets when aligned with impulse)
- Nearby trap zones (targets adjust to avoid placing TP inside trap zones)
How to use: These are suggestions, not guarantees. Consider taking partial profits before the target or using trailing stops once price moves favorably.
STOP LEVEL (Orange Dashed Line with "STOP" Label)
This shows suggested stop-loss placement, calculated as 0.8 ATR beyond the trap zone (or 2.0 ATR from current price if no trap zone exists).
How to use: This provides a reference for risk calculation. The dashboard R:R ratio is calculated using this stop level.
Chart Example: Scalp Precision Matrix displays real-time market analysis through dynamic zones and quality scores. ENTRY/TARGET/STOP zones show potential price levels based on current market structure - they appear continuously as reference points, NOT as trade instructions. Actual trade signals (diamonds, triangles, circles) fire only when multiple conditions align: quality score thresholds are crossed, fuel gauge is sufficient, session is active, and cooldown period has passed. The zones help you understand market context; the signals tell you when to act.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UNDERSTANDING THE DASHBOARD (Top Right Panel)
The main dashboard provides comprehensive market context:
Row 1 - Header:
- "SPM " : Indicator name
- Market State : Current overall condition
Market States Explained:
- PRIME : Excellent conditions. Quality score meets prime threshold, session is active. Best opportunities.
- READY : Good conditions. Quality score meets standard threshold. Solid setups available.
- WAIT : Mixed conditions. Some factors favorable, others not. Patience recommended.
- AVOID : Poor conditions. Off-peak session or very low volatility. High risk of false signals.
- EXIT : Fuel exhausted. Momentum depleted. Consider closing positions or waiting.
Row 2-3 - Quality Bars:
- " UP ########## " : Visual meter for long quality (each # = 10 points, . = empty)
- " DN ########## " : Visual meter for short quality
- The number on the right shows the exact quality score
Row 4 - Bias:
- Shows current directional lean: LONG, SHORT, or NEUTRAL
- Color-coded: Green for long, red for short, gray for neutral
Rows 5-7 (Full Mode Only) - Trade Levels:
- Entry : Suggested entry price for current bias direction
- Stop : Suggested stop-loss price
- Target : Projected take-profit price
Row 8 - Risk:Reward Ratio:
- Format : "1:X.X" where X.X is the reward multiple
- Color-coded : Green if 2:1 or better, amber if 1.5:1 to 2:1, red if below 1.5:1
Row 9 - Fuel:
- Shows percentage and estimated bars remaining in parentheses
- Example : "72% (8)" means 72% fuel with approximately 8 bars remaining
- Color-coded : Green above 70%, amber 40-70%, red below 40%
Row 10-11 (Full Mode Only) - Market Conditions:
- Vol : Current volatility regime (HIGH/NORMAL/LOW)
- Speed : Current velocity zone (FAST/NORMAL/SLOW)
Row 12 - Session:
- Shows active trading session
- Color-coded by session type
Row 13 (Full Mode Only) - Remaining:
- Time remaining in current session (hours and minutes)
Row 14 (Conditional) - Trap Warning:
- Appears when a significant trap zone exists in your bias direction
- Shows direction (ABOVE/BELOW) and confluence percentage
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UNDERSTANDING THE QUICK PANEL (Bottom Left)
The Quick Panel provides essential information at a glance without looking away from price action:
Row 1: Current Bias and Quality Score (large text for quick reading)
Row 2: Market State
Row 3: Fuel Percentage
Row 4: Estimated Bars Remaining
Row 5: Risk:Reward Ratio
Row 6: Current Session
Both panels can be repositioned using the settings, and each can be toggled on/off independently.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS EXPLAINED
CORE SETTINGS:
Analysis Lookback (Default: 20)
Number of bars used for statistical calculations including average volume and average body size. Higher values create smoother but slower-reacting analysis. Lower values are more responsive but may include more noise.
Swing Detection Length (Default: 5)
Bars required on each side to confirm a swing high or low. A setting of 5 means a swing high must have 5 lower highs on each side. Lower values detect more swings (more trap zones, more sensitivity). Higher values find only major pivots (fewer but more significant zones).
Impulse Sensitivity (Default: 1.5)
Multiplier for ATR when detecting impulse moves. Lower values (like 1.0) detect smaller price movements as impulses, refreshing the fuel gauge more frequently. Higher values (like 2.5) require larger moves, making impulse detection less frequent but more significant.
SIGNAL SETTINGS:
Prime/Standard/Caution Thresholds (Defaults: 80/75/65)
These control the quality score required for each signal tier. You can adjust these based on your preference:
- More conservative : Raise thresholds (e.g., 85/80/70) for fewer but higher-quality signals
- More aggressive : Lower thresholds (e.g., 75/70/60) for more signals with slightly lower quality
Signal Cooldown (Default: 8 bars)
Minimum bars between signals to prevent signal spam. After any signal fires, no new signals can appear until this many bars pass. Increase for fewer signals in choppy markets; decrease if you want faster signal refresh.
Show Prime/Standard/Caution/Exhaustion Signals
Toggle each signal type on or off based on your preference.
ZONE DISPLAY:
Show Trap Zones / Entry Zones / Target Zones / Stop Levels
Toggle each zone type on or off. Turning off zones you don't use reduces chart clutter.
Zone Transparency (Default: 88)
Controls how transparent zone boxes appear. Higher values (closer to 95) make zones barely visible; lower values (closer to 75) make them more prominent.
Zone History (Default: 25 bars)
How far back zone boxes extend on the chart. Purely visual preference.
BACKGROUND:
Background Mode (Options: Off, Subtle, Normal)
Controls whether and how intensely the chart background is colored. Subtle is barely noticeable; Normal is more visible; Off disables background coloring entirely.
Background Type (Options: Bias, Fuel)
- Bias : Colors background based on current directional lean (green for long, red for short)
- Fuel : Colors background based on momentum level (green for high fuel, amber for moderate, red for low)
DASHBOARD / QUICK PANEL:
Show Dashboard / Show Quick Panel
Toggle each panel on or off.
Compact Mode
When enabled, the main dashboard shows only essential rows (quality bars, bias, R:R, fuel, session) without entry/stop/target levels, volatility, velocity, or time remaining.
Position Settings
Choose where each panel appears on your chart from six options: Top Right, Top Left, Bottom Right, Bottom Left, Middle Right, Middle Left.
ALERTS:
Alert Prime Signals / Standard Signals / Fuel Exhaustion
Enable or disable TradingView alerts for each condition. When enabled, you can set up alerts in TradingView that will notify you when these conditions occur.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED TIMEFRAMES AND USAGE
OPTIMAL TIMEFRAMES:
- 1-minute to 5-minute : Best for active scalping with quick entries and exits
- 5-minute to 15-minute : Balanced scalping with slightly more confirmation
- 15-minute to 1-hour : Short-term swing entries, fewer but more significant signals
Zone visualizations only appear on intraday timeframes to prevent chart clutter on higher timeframes.
BEST PRACTICES:
1. Trade primarily during LONDON, NEW YORK, or OVERLAP sessions. The indicator weights these sessions higher for good reason - liquidity and movement are typically better.
2. Prioritize PRIME signals. These represent the highest confluence and have proven most reliable. Use STANDARD signals as secondary opportunities. Treat CAUTION signals with extra scrutiny.
3. Respect the Fuel Gauge. Avoid entering new positions when fuel is below 40%. When the EXIT signal appears, seriously consider closing or reducing positions.
4. Pay attention to TRAP warnings. When the dashboard shows a trap zone in your bias direction, be cautious about holding through that level.
5. Verify R:R before entry. The dashboard shows the risk-to-reward ratio. Ensure it meets your minimum requirements (many traders require at least 1.5:1 or 2:1).
6. When state shows AVOID or EXIT, step back. These conditions typically produce poor results.
7. Combine with your own analysis. SPM is a decision-support tool, not a standalone system. Use it alongside your understanding of market structure, news events, and overall context.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PRACTICAL EXAMPLE
Scenario : You're watching a 5-minute chart during London session. A cyan diamond (Prime Long signal) appears below the bar.
Before entering, you check the dashboard:
- State shows "PRIME" - conditions are favorable
- Fuel shows "72% (8)" - plenty of momentum remaining (approximately 8 bars)
- R:R shows "1:2.3" - acceptable risk-to-reward ratio
- Session shows "LONDON" - active session with good liquidity
- No TRAP warning in dashboard - no immediate resistance cluster in your way
- Entry zone visible on chart at a lower price level
- Stop and Target zones clearly marked
With this confluence of factors, you have context for a more informed decision. The signal indicates quality, the fuel suggests momentum remains, the R:R is favorable, and no immediate trap threatens your trade.
However, you also notice the target zone sits just below where a trap zone would be if there were one. This is by design - SPM adjusts targets to avoid placing them inside reversal zones.
This multi-factor confirmation delivered in a single glance is what SPM provides.
Chart Example :This chart demonstrates how the Scalp Precision Matrix identifies key market transitions. After a strong bullish impulse (cyan PRIME signal at ~08:30), price reached a historical reversal cluster (TRAP ZONE at 92,300). The indicator detected momentum exhaustion (purple EXIT signal) as fuel dropped below 20%, warning traders to exit longs. Now showing a SHORT bias with entry/stop/target zones clearly marked. The 92% trap zone confluence indicates a strong cluster of previous swing highs where price historically reversed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DATA WINDOW VALUES
For detailed analysis and strategy development, SPM exports the following values to TradingView's Data Window (visible when you hover over the chart with the indicator selected):
- Long Quality Score (0-100)
- Short Quality Score (0-100)
- Fuel Gauge (0-100%)
- Risk:Reward Ratio
These values can be useful for understanding how the indicator behaves over time and for developing your own insights about when it works best for your trading style.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NON-REPAINTING CONFIRMATION
All signals in SPM are generated using CONFIRMED bar data only. The signal logic references the previous closed bar's values ( and in Pine Script terms). This means:
- Signals appear at the OPEN of the new bar (after the previous bar closes)
- Signals will NEVER disappear once they appear
- Signals will NEVER change position on historical bars
- What you see in backtesting is what you would have seen in real-time
The dashboard and zones update in real-time to provide current market context, but the trading signals themselves are non-repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT DISCLAIMERS
TERMINOLOGY CLARIFICATION:
This indicator uses terms that might imply access to data it does not have. To be completely transparent:
- "Trap Zones" are calculated from historical swing point clustering. They are NOT institutional liquidity pools, order blocks, smart money footprints, or any form of order flow data. The term "trap" is metaphorical, describing how price has historically reversed at these levels.
- "Fuel Gauge" is a technical momentum proxy. It is NOT order flow, volume profile, depth of market, or bid/ask data. It estimates momentum remaining based entirely on standard OHLCV price and volume data.
- "Quality Scores" are weighted combinations of the technical factors described above. A high score indicates multiple conditions align favorably according to the indicator's logic. It does NOT predict or guarantee trade success.
- The percentages shown on trap zones are CONFLUENCE SCORES measuring cluster density and proximity. They are NOT probability predictions of reversal.
TRADING RISK WARNING:
Trading involves substantial risk of loss and is not suitable for all investors. This indicator is a technical analysis tool designed to assist with decision-making. It does not constitute financial advice, trading advice, or any other sort of advice. Past performance of any signal or pattern does not guarantee future results. Markets are inherently unpredictable.
Always use proper risk management. Define your risk before entering any trade. Never risk more than you can afford to lose. Consider consulting with a licensed financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY STATEMENT - NOT A MASHUP
Scalp Precision Matrix is an original work that combines several analytical concepts into a purpose-built scalping framework. While individual components like ATR calculations, pivot detection, session timing, and trend alignment exist in various forms elsewhere, the specific implementation here represents original synthesis:
- The Fuel Gauge decay model with its four-component weighted calculation
- The Trap Zone cluster detection with confluence scoring
- The multi-factor quality scoring system that integrates all layers
- The trap-aware entry and target zone placement logic
- The volatility regime adaptation across all components
- The session weighting is integrated into the quality assessment
The indicator does not simply overlay separate indicators on one chart. It creates interconnected layers where each component informs and adjusts the others. This integration is the core originality of SPM.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For best results, combine SPM with your own market understanding and always practice proper risk management.
-BullByte
Analisis Tren
[xProfit] Trend Pulse MTF Trend Pulse MTF — Multi-Timeframe Momentum Oscillator
Trend Pulse MTF is an advanced momentum oscillator that aggregates multiple technical indicators across various timeframes to provide a comprehensive market analysis. The indicator combines RSI, Wave Trend, Bollinger Bands Trend, and Laguerre RSI into a single normalized momentum value, helping traders identify overbought/oversold conditions, trend direction, and potential reversal points with high precision.
The indicator displays data from five timeframes (30M, 1H, 4H, 1D, 1W) simultaneously, allowing traders to align their trades with higher-timeframe trends while optimizing entry timing on lower timeframes.
Key Features
• Multi-Indicator Aggregation: Combines 4 different momentum indicators (RSI, Wave Trend, BBTrend, Laguerre RSI) into one normalized value.
• Multi-Timeframe Analysis: Displays momentum data from 5 timeframes (30M, 1H, 4H, 1D, 1W) to identify trend alignment and confluence.
• 8-Color Confluence Histogram: 8 distinct colors represent various combinations of trend directions on the 30M, 1H, and 4H timeframes for instant visual clarity.
• Dynamic Signal Line: An EMA-based signal line that changes color based on the 1D trend direction, helping to identify trend shifts and crossovers.
• Extreme Zone Detection: Automatic identification of FOMO (Overbought) and FEAR (Oversold) zones across multiple timeframes.
• MTF Dashboard: A real-time on-chart table (best viewed on 1H) showing values, EMA difference, and trend direction for all major timeframes.
• Adaptive Normalization: BBTrend values are automatically normalized based on the current chart timeframe for consistent and reliable readings.
• Webhook Integration: Built-in support for automated trading alerts with detailed multi-timeframe JSON data.
How the Indicator Works
Core Components
1. Aggregated Momentum Value:
The indicator calculates a composite momentum score by combining:
◦ RSI (Relative Strength Index): Normalized to a -100 to +100 scale. Measures price momentum and overbought/oversold conditions.
◦ Wave Trend (WT): Based on the Trend Channel Index (TCI). Normalized from -100 to +100. Identifies momentum waves and divergences.
◦ BBTrend (Bollinger Bands Trend): Measures the relationship between short and long Bollinger Bands. It scales automatically based on the timeframe.
◦ Laguerre RSI: An advanced RSI variant with gamma-smoothing that reduces lag while filtering out market noise.
2. Signal Line (EMA Difference):
◦ Calculation: The signal line is created by calculating the difference between the Aggregated Value and Laguerre RSI, then applying an EMA smoothing.
◦ Color Coding: The signal line is Green when the 1D timeframe is in an uptrend (Aggregated Value > EMA Difference) and Red during a downtrend.
3. Multi-Timeframe Data:
Each timeframe provides its own aggregated value and EMA difference, allowing traders to see trend alignment across different time horizons.
Trading Logic & Signal Interpretation
Bullish Signals (Buy Setup):
• Histogram bars are in the negative zone (Oversold; values vary by asset, typically below -60/-80).
• Bars begin to close ABOVE the EMA Difference line (crossover).
• Higher timeframes (4H, 1D, 1W) show bullish confirmation.
• The Signal Line turns Green (1D uptrend).
• Color transition: Dark Red/Maroon → Blue/Purple → Green.
• Interpretation: The market is exiting oversold conditions and starting a bullish reversal. The deeper the oversold reading and the higher the confirming timeframe, the stronger the signal.
Bearish Signals (Sell Setup):
• Histogram bars are in the positive zone (Overbought; typically above +60/+80).
• Bars begin to close BELOW the EMA Difference line (crossover).
• Higher timeframes (4H, 1D, 1W) show bearish confirmation.
• The Signal Line turns Red (1D downtrend).
• Color transition: Dark Green/Green → Orange/Gold → Red.
• Interpretation: The market is exiting overbought conditions and starting a bearish reversal.
Trend Following Strategy
• Uptrend Confirmation: When histogram bars consistently close ABOVE the EMA Difference line. Dark Green color represents the strongest uptrend (30M, 1H, and 4H are all bullish).
• Downtrend Confirmation: When histogram bars consistently close BELOW the EMA Difference line. Maroon color represents the strongest downtrend (30M, 1H, and 4H are all bearish).
Extreme Zones (FOMO & FEAR)
• FOMO Zone (Extreme Overbought): When 1H, 4H and 1D shows an aggregated value > +100, a Light Blue horizontal line appears. This indicates extreme greed/overbought conditions. These are warning zones where a reversal is likely.
• FEAR Zone (Extreme Oversold): When 1H, 4H and 1D shows an aggregated value < -100, a Purple horizontal line appears. This indicates extreme fear/oversold conditions. These are often high-probability buying opportunity zones.
Timeframe Usage Guide
• Long-Term Investments (1D/1W): Use 1D and 1W signals for long-term position building. Enter on FEAR zone crossovers and exit on FOMO zone crossovers. Best for swing traders and investors.
• Swing Trading (4H/8H/12H): Focus on the 4H trend. Use 1D/1W for confirmation. Enter when 4H crosses above the EMA Difference in the oversold zone.
• Day Trading (1H/30M): Primary analysis on 1H, entries on 30M or 15M. Check the MTF Dashboard for alignment. Trade in the direction of the 4H and 1D trends.
• Scalping (15M and lower): Very short-term trades. MUST align with 1H and 4H for best results. Use strict risk management.
Understanding the 8-Color Scheme
The histogram uses 8 colors to show the trend direction combination across three timeframes (30M, 1H, 4H):
• Dark Green: (30M ↑, 1H ↑, 4H ↑) — Maximum Bullish Confluence.
• Green: (30M ↓, 1H ↑, 4H ↑) — Strong Uptrend, minor pullback on 30M.
• Purple: (30M ↑, 1H ↓, 4H ↑) — Mixed trend, 1H correction within 4H uptrend.
• Gold: (30M ↓, 1H ↓, 4H ↑) — Weakening uptrend, potential reversal warning.
• Blue: (30M ↑, 1H ↑, 4H ↓) — Weakening downtrend, potential reversal forming.
• Orange: (30M ↓, 1H ↑, 4H ↓) — Mixed trend, 1H rally within 4H downtrend.
• Red: (30M ↑, 1H ↓, 4H ↓) — Strong downtrend, minor bounce on 30M.
• Maroon: (30M ↓, 1H ↓, 4H ↓) — Maximum Bearish Confluence.
MTF Dashboard Table
When active, the dashboard shows:
• Value: Current aggregated momentum (Color-coded by strength).
• EMA Diff: Current signal line value.
• Trend: Real-time direction (Uptrend/Downtrend).
Dashboard Color Rules:
• Extr. Overbought (>100): Maroon | Strong (>61): Red | Moderate (>30): Orange | Neutral: Yellow | Moderate Oversold (<-30): Lime | Strong (<-61): Green | Extr. Oversold (<-100): Dark Green.
Dashboard Color Rules (Other TFs):
• Extr. Overbought (>100): Maroon | Strong (>81): Red | Moderate (>61): Orange | Neutral: Yellow | Moderate Oversold (<-81): Lime | Strong (<-100): Green | Extr. Oversold: Dark Green.
Best Practices & Risk Management
• Alignment is Key: Always check higher timeframe alignment before entering.
• Wait for Close: Signals are only valid once the candle has closed.
• Risk Control: Never risk more than 1-2% per trade. Use stop-losses below recent swing lows (for longs) or above swing highs (for shorts).
• Avoid Chasing: Do not enter late when the market is already deep in FOMO or FEAR zones.
Webhook Integration
The indicator sends data from the PREVIOUS (confirmed) candle to ensure 100% accuracy and eliminate any possibility of repainting.
{ "signal": "Trend Pulse Status Update", "ticker": "BTCUSDT.P", "data_1H": { "val": 45.20, "ema_diff": 12.50, "is_uptrend": true }, "data_4H": { "val": -15.40, "ema_diff": -5.10, "is_uptrend": false }, "data_1D": { "val": 85.00, "ema_diff": 40.20, "is_uptrend": true }, "data_1W": { "val": 110.00, "ema_diff": 95.00, "is_uptrend": true } }
I hope this tool helps you in your trading journey. Feel free to leave your feedback and questions in the comments below! Boost it if you find it useful!
Disclaimer
IMPORTANT: This indicator is a technical analysis tool designed to assist in trading decisions. It does not provide investment advice and should not be the sole basis for any trading decision.
All trading involves substantial risk of loss. Past performance does not guarantee future results. The indicator's signals are based on mathematical calculations and do not predict future market movements with certainty.
Extreme zones (FOMO/FEAR) indicate overbought/oversold conditions but markets can remain in these zones for extended periods. Always use proper risk management, stop losses, and position sizing.
The multi-timeframe data is provided for informational purposes. Higher timeframe trends can change, and lower timeframe noise can generate false signals. Always conduct your own analysis and consider consulting with a qualified financial advisor before making trading decisions.
GEX Walls + Market Open Shading### Overview
This Pine Script (version 6) creates a TradingView indicator called **"GEX Walls + Market Open Shading"**. It overlays directly on the price chart and is designed for intraday trading, particularly for indices like SPX or ES futures. The script combines two main features:
- **GEX Walls**: Visual boxes and labels highlighting "Gamma Exposure" (GEX) levels—key support (Put Wall) and resistance (Call Wall) zones based on options gamma. It includes approach alerts.
- **Market Open Shading**: A semi-transparent background shade during a customizable post-market-open session (e.g., first 2 hours after 9:30 AM EST).
It uses up to 20 boxes and 20 labels, with right-scale positioning for better visibility on the price axis. The script detects new trading days to reset visuals dynamically.
### Key Inputs
The script is highly customizable via inputs grouped into sections:
#### GEX Walls Inputs
- **Call Wall** (default: 6900.0): Upper resistance level.
- **Put Wall** (default: 6850.0): Lower support level.
- **Buffer** (default: 3.0 points): Vertical padding around each wall for box thickness.
- **Alert Distance** (default: 10.0 points): Threshold for triggering "approach" alerts.
- **Colors**: Semi-transparent yellow for Call Wall boxes (#ffeb3b at 80% opacity), orange for Put Wall (#ff9800 at 80%).
- **Toggles**: Show/hide boxes; enable/disable alerts; restrict alerts to shaded session only.
- **Labels**: Text color (white), offset (bars to the right, default -2), size (tiny/small/normal/large).
#### Market Open Shading Inputs
- **Shade Color** (default: white at 90% transparency): Background fill during session.
- **Transparency** (0-100, default: 90): Opacity level.
- **Open Time** (default: 9:30 EST): Hour/minute for session start.
- **Duration**: Dropdown with pre-formatted options (e.g., "120 min: 11:30a EST / 8:30a PST" up to 195 min), showing both EST and PST end times for convenience.
- **Toggle**: Show/hide shading.
### How It Works
#### 1. Market Open Shading
- Calculates end time from open hour/minute + selected duration (e.g., 120 minutes from 9:30 AM EST = 11:30 AM EST).
- Builds a session string (e.g., "0930-1130") for TradingView's `time()` function.
- Detects if the current bar is within the session using `not na(time("", sessionString))`.
- Applies `bgcolor()` with the user-defined color/transparency only during the session.
- Helper functions format times in 12-hour AM/PM style (e.g., "11:30a") for labels, with EST/PST variants.
#### 2. Day Detection
- Uses `time("D")` to track daily changes (`ta.change(dayTime) != 0` signals a new day).
- Maintains variables for the current day's start bar index (`todayStartIndex`) and previous day's start (`prevStartIndex`).
- This ensures boxes span exactly from yesterday's open to today (intraday reset on new days).
#### 3. GEX Walls Visualization
- **Boxes**: Drawn once `prevStartIndex` is known (i.e., on the second day onward).
- Left edge: Previous day's start bar.
- Right edge: Current bar (extends live).
- Height: Wall level ± buffer (e.g., Call Wall box from 6900-3 to 6900+3).
- Updated dynamically with `box.set_*` functions; hidden (100% transparent) if toggled off.
- **Labels**: Placed at exact wall levels, offset to the right (e.g., 2 bars ahead for readability).
- Text: "CALL WALL: 6900.0" or "PUT WALL: 6850.0".
- Style: Right-aligned, black background (transparent), user-defined text color/size.
- Deleted if toggled off.
- All visuals use `xloc.bar_index` for bar-based positioning.
#### 4. Alerts
- **Call Wall Approach**: Triggers when close enters within `alertDistance` below the wall, but prior bar was further away (rising toward resistance). Message: "Price approaching Call Wall at from below (within points)".
- **Put Wall Approach**: Symmetric for falling toward support (within distance above wall).
- Filtered optionally to shaded session only.
- Uses `alertcondition()` with hidden plots (`display=display.none`) for dynamic message placeholders (e.g., `{{plot_0}}` inserts wall level).
### Notable Features & Behaviors
- **Intraday Focus**: Boxes/labels reset daily, making it ideal for day trading without historical clutter.
- **Time Zone Handling**: Defaults to EST for market open but shows PST equivalents in dropdowns (subtracts 3 hours).
- **Efficiency**: Uses `var` declarations for persistent objects (boxes/labels) to avoid recreation on every bar.
- **Edge Cases**: Handles label offsets (clamped -10 to 50 bars); session wrapping (e.g., overnight via %24); new chart loads (initializes on first bar).
- **Customization Depth**: 20+ inputs allow fine-tuning without code edits. Alerts integrate seamlessly with TradingView's system.
- **Limitations**: Relies on bar_index for historical spanning (best on lower timeframes like 1-5 min); no historical backfill for walls (live-only).
This script is a practical tool for options-aware traders monitoring gamma squeezes or pinning levels during market open volatility. To use it, paste into TradingView's Pine Editor, adjust inputs for your asset (e.g., update walls for current GEX data), and add to chart.
Glossy [JOAT]# Glossy - Vector Candles and Order Zones
Glossy - Vector Candles and Order Zones is a Pine Script v6 overlay indicator that transforms raw price and volume data into a visually distinct decision layer. It combines vector candle analysis, supply/demand zone mapping, pivot detection, trend tools, and a composite scoring system into one cohesive overlay.
Note: This script is published as an invite-only INDICATOR. It does not generate backtesting results or automated trade execution. Access requires authorization through the script's access control settings.
## Why This Script Merits Invite-Only Protection
This indicator combines multiple analytical dimensions that individually exist as separate tools across the trading community. The value proposition lies in the specific integration methodology and composite scoring system that synthesizes:
Vector candle engine that classifies bars by volume-range relationship into climax, rising, and normal states
Automatic supply/demand zone detection with retest tracking and break removal
Dynamic pivot point system with configurable density and automatic cleanup
Dual moving average trend layer with crossover detection
Optional Ichimoku cloud integration for additional trend context
Composite scorer that weights and blends all modules into a single actionable score
Glossy visual layer with gradient veils, shimmer effects, and sparkle overlays
Dual analytics panels displaying real-time score, bias, and structure statistics
The proprietary elements include the vector candle classification algorithm, the zone detection logic using body-size ratios, the composite scoring normalization system, and the visual integration that maintains readability while adding aesthetic appeal. While individual components like MAs and RSI are standard, their specific combination, the scoring methodology, and the visual integration represent original development work that justifies source code protection.
## How Components Work Together
The indicator's value comes from how its modules interact, not from any single component:
Data Flow:
Vector candle engine analyzes volume relative to lookback baseline and spread-volume product
Zone engine detects two-candle reversal patterns with significant body-size shifts
Pivot system identifies swing highs/lows using configurable left/right bar counts
Trend MAs establish directional bias and generate crossover signals
Ichimoku (optional) adds cloud context for trend confirmation
Composite scorer normalizes weights and blends all module signals into 0-100 score
Analytics panels display real-time metrics for quick decision support
Integration Logic:
Each module produces a normalized signal (0.0 to 1.0) that feeds into the composite score:
Vector candle signal: 1.0 for climax, 0.5 for rising, 0.0 for normal
Volume scanner signal: 1.0 for spike detected, 0.0 otherwise
Zone signal: 1.0 for retest, 0.7 for break, 0.5 for inside zone, 0.0 otherwise
Ichimoku signal: 0.0 to 1.0 based on crossovers, cloud breaks, and chikou confirmation
Weights are user-configurable and auto-normalized to sum to 1.0
Why This Integration Matters:
A standard volume spike might fire while price is nowhere near structure. The composite scoring system catches these disconnects by requiring multiple modules to align before the score reaches threshold. This multi-dimensional validation separates this indicator from simple mashups that display multiple indicators without integration.
## Core Functionality
This indicator addresses the challenge of synthesizing volume behavior, price structure, and trend context into a single readable overlay. Most indicators focus on one dimension; this script integrates several while maintaining visual clarity.
What This Script Does:
Recolors candles based on volume-range classification (climax, rising, normal)
Automatically detects and draws supply/demand zones from two-candle reversal patterns
Tracks zone retests and optionally removes zones when broken
Identifies pivot highs/lows and draws horizontal support/resistance levels
Plots dual moving averages with crossover detection
Optional Ichimoku cloud with tenkan/kijun lines and cloud projection
Computes composite score (0-100) blending all enabled modules
Calculates market bias from trend, momentum, RSI, and cloud position
Displays real-time analytics in two compact dashboard panels
Adds glossy visual effects (gradient veil, shimmer stripes, sparkles) without obscuring price
## Technical Architecture
### Vector Candle Engine
The indicator classifies each confirmed bar into three categories based on volume and range behavior:
Climax Bars - Volume >= Climax Multiplier (default: 2.0x) times the lookback SMA AND spread-volume product >= 85% of lookback maximum. These represent extreme effort and are colored brightest (green for bull, red for bear) with white borders.
Rising Bars - Volume >= Rising Multiplier (default: 1.5x) times the lookback SMA but not climax. These show building interest with medium-intensity colors.
Normal Bars - All other confirmed bars. Colored with solid but calmer tones that don't compete with significant bars.
The goal is instant visual recognition: when volume truly slams into the market, you see it immediately in both color and intensity.
### Volume Scanner
On top of vector candles, a directional volume scanner runs independently:
Detects when volume exceeds Spike Multiplier (default: 1.5x) times the scanner lookback SMA
Differentiates bullish vs bearish spikes using candle direction
Prints compact labels showing spike direction and approximate percentage above baseline
Labels appear near price for context without cluttering the chart
### Supply/Demand Zone Engine
The zone engine automatically tracks recent supply and demand patterns:
Detection Logic - Identifies two-candle patterns where the second candle's body is >= Body Multiplier (default: 2.0x) times the first candle's body, with opposite directions
Supply Zones - Drawn in dark purple (#2D1B4E) with medium purple border (#6B3FA0)
Demand Zones - Drawn in near-black (#0D1B2A) with dark teal border (#1B4D6E)
Extension - Zones extend forward configurable bars (default: 100) for visibility
Retest Tracking - Labels update with retest count (R1, R2, etc.) when price revisits zone
Break Removal - Optionally removes zones when price closes convincingly beyond them
Max Zones - Limits active zones (default: 8) to keep chart readable
### Pivot Point System
Recent swing highs and lows become horizontal support/resistance levels:
Uses configurable left/right bar counts (default: 3/3) for pivot detection
Resistance lines drawn in bright pink (#FF3366) with "R" labels
Support lines drawn in bright teal (#33FF99) with "S" labels
Lines extend forward 50 bars from pivot point
Optional break removal cleans up invalidated levels
Max pivots setting (default: 12) prevents chart clutter
### Trend Tools
Dual moving averages provide trend context:
Fast MA (default: 21-period SMA) - Colors based on price position relative to MA
Slow MA (default: 55-period SMA) - Thicker line for primary trend reference
Crossover Labels - Optional labels mark bullish/bearish MA crosses
Trend Bias - Fast > Slow = bullish trend context
### Ichimoku Integration (Optional)
For traders who use Ichimoku, a soft cloud layer can be enabled:
Tenkan Line (default: 9-period) - Short-term equilibrium
Kijun Line (default: 26-period) - Medium-term equilibrium
Senkou Span A/B - Projected cloud showing future support/resistance
Cloud Fill - Teal for bullish cloud, coral for bearish cloud
Signal Detection - TK crosses and cloud breaks feed into composite score
### Composite Scoring System
The scorer blends all enabled modules into a single 0-100 percentage:
Weight: Vector (default: 0.30) - Contribution from climax/rising detection
Weight: Volume (default: 0.20) - Contribution from volume spike scanner
Weight: Zones (default: 0.30) - Contribution from zone interaction
Weight: Ichimoku (default: 0.20) - Contribution from cloud/crossover signals
Threshold (default: 0.60) - Score level that triggers "SIGNAL" status
Weights auto-normalize to sum to 1.0 regardless of input values
With Ichimoku Lines/Plots:
### Bias Calculation
A separate bias score (0-5) determines market lean:
+1 if Fast MA > Slow MA (trend bullish)
+1 if Price > Fast MA (price above trend)
+1 if Momentum > 0 (positive momentum)
+1 if RSI > 50 (bullish RSI)
+1 if Price > Cloud Top (above Ichimoku cloud)
Score 4-5 = "STRONG BULL", 3 = "BULL", 2 = "NEUTRAL", 1 = "BEAR", 0 = "STRONG BEAR"
## Visual Elements
Vector Candles:
Climax Bull - Bright green (#00FF88) with white border
Climax Bear - Bright red (#FF0055) with white border
Rising Bull - Medium green (#00CC66)
Rising Bear - Medium red (#CC0044)
Normal Bull - Solid green (#009955)
Normal Bear - Solid red (#990033)
Signal Labels:
"CLIMAX BUY/SELL" - Appears on climax bars with volume ratio
"VOL SPIKE" - Appears on abnormal volume with percentage
"MA CROSS Bullish/Bearish" - Appears on MA crossovers
"SUPPLY/DEMAND" - Zone labels with retest counts
"R/S" - Pivot resistance/support labels with price
Glossy Visual Layer:
Gradient veil that subtly shifts based on composite score
Diagonal shimmer stripes that create motion effect
Floating sparkle particles placed around price
All effects configurable via opacity and spacing inputs
Can be disabled entirely via "Glossy Mode" toggle
## Analytics Panels
Top-Right "Glossy" Panel (8 rows):
Header - "GLOSSY" with composite score percentage
Status - "SIGNAL" or "WAIT" based on threshold
Bias - STRONG BULL / BULL / NEUTRAL / BEAR / STRONG BEAR
RSI - Current value or OVERBOUGHT/OVERSOLD flags
Momentum - RISING / POSITIVE / FALLING / NEGATIVE
Volume - Current ratio vs baseline with intensity indicator
Trend - BULL TREND / BEAR TREND / MIXED
ATR - Current ATR value for volatility context
Bottom-Right "Stats" Panel (6 rows):
Header - "STATS"
Zones - Count of active supply/demand zones
Pivots - Count of active pivot levels
Vol %ile - Current volume percentile vs lookback
Retests - Total zone retest count
Position - "IN ZONE" or "---" based on current price location
## Complete Configuration Reference
### Visual Settings Group
Glossy Mode (default: true) - Toggle sparkles and shimmer effects
Zone Opacity (default: 40, range: 10-80) - Lower = darker zones
Glow Veil Opacity (default: 85, range: 40-95) - Controls glossy gradient veil
Sparkle Spacing (default: 4, range: 2-20) - Bars between sparkle particles
Sparkle Softness (default: 25, range: 0-90) - Transparency of sparkles
High Contrast Mode (default: false) - Alternative color palette
Show Signal Labels (default: true) - Display text labels instead of shapes
### Vector Candles Group
Enable Vector Candles (default: true) - Toggle candle recoloring
Lookback (default: 10, range: 3-100) - Bars for volume SMA baseline
Climax Multiplier (default: 2.0, range: 1.2-5.0) - Volume threshold for climax
Rising Multiplier (default: 1.5, range: 1.1-3.0) - Volume threshold for rising
### Volume Scanner Group
Enable Volume Scanner (default: true) - Toggle spike detection
Lookback (default: 20, range: 5-100) - Bars for scanner baseline
Spike Multiplier (default: 1.5, range: 1.2-3.0) - Threshold for spike detection
### Supply/Demand Zones Group
Enable Order Zones (default: true) - Toggle zone detection
Body Multiplier (default: 2.0, range: 1.3-5.0) - Body ratio for zone detection
Extension Bars (default: 100, range: 20-300) - How far zones extend forward
Remove on Break (default: true) - Delete zones when price breaks through
Max Zones (default: 8, range: 1-20) - Maximum active zones
### Pivot Points Group
Enable Pivots (default: true) - Toggle pivot detection
Left Bars (default: 3, range: 1-15) - Bars to left for pivot confirmation
Right Bars (default: 3, range: 1-15) - Bars to right for pivot confirmation
Remove on Break (default: true) - Delete pivots when price breaks through
Max Pivots (default: 12, range: 2-30) - Maximum active pivot levels
### Trend Tools Group
Enable MAs (default: true) - Toggle moving average display
Fast MA (default: 21, range: 5-100) - Fast moving average period
Slow MA (default: 55, range: 20-200) - Slow moving average period
### Ichimoku Group
Enable Ichimoku (default: false) - Toggle Ichimoku cloud display
Tenkan (default: 9, range: 5-30) - Tenkan-sen period
Kijun (default: 26, range: 10-60) - Kijun-sen period
Senkou B (default: 52, range: 20-120) - Senkou Span B period
### Composite Scorer Group
Enable Scorer (default: true) - Toggle scoring system
Weight: Vector (default: 0.30, range: 0.0-1.0) - Vector candle weight
Weight: Volume (default: 0.20, range: 0.0-1.0) - Volume scanner weight
Weight: Zones (default: 0.30, range: 0.0-1.0) - Zone interaction weight
Weight: Ichimoku (default: 0.20, range: 0.0-1.0) - Ichimoku signal weight
Threshold (default: 0.60, range: 0.3-1.0) - Score level for "SIGNAL" status
### Performance Group
Cheap Mode (default: false) - Reduces lookback periods for faster calculation
## Alert System
The script includes ten alert conditions:
Climax Bull - Bullish climax bar detected
Climax Bear - Bearish climax bar detected
Volume Spike Bull - Bullish volume spike (non-climax)
Volume Spike Bear - Bearish volume spike (non-climax)
Zone Retest - Price retests an active zone
Zone Break - Price breaks through a zone
Pivot Crossed - Price crosses a pivot level
Score Threshold - Composite score reaches threshold
MA Cross Bull - Fast MA crosses above Slow MA
MA Cross Bear - Fast MA crosses below Slow MA
All alerts fire once per bar at bar close.
## Technical Implementation Notes
Pine Script v6 compliant
All calculations use confirmed bars only (barstate.isconfirmed) to prevent repainting
Arrays manage zones, pivots, labels, and sparkles with automatic cleanup
Resource limits respected: max_labels_count=200, max_lines_count=150, max_boxes_count=50
Cheap mode available to reduce computational load on slower systems
Color mixing function for smooth gradient transitions
Weight normalization ensures composite score validity regardless of input values
## Usage Considerations
Timeframe Selection: The indicator works across all timeframes. Zone and pivot detection may produce more signals on lower timeframes. Adjust lookback periods and max counts based on your trading style.
Market Compatibility: Tested on crypto, forex, stocks, and indices. Vector candle classification requires meaningful volume data. Markets with irregular or no volume may not benefit from volume-based features.
Signal Interpretation: The composite score and bias are informational summaries, not trade signals. Use them as context alongside your own analysis and risk management.
Visual Customization: If the glossy effects are distracting, disable "Glossy Mode" for a cleaner chart while retaining all analytical features.
## Limitations and Compromises
Zone detection uses simplified two-candle patterns; complex institutional order flow is not captured
Composite score is a weighted blend of heuristics, not a predictive model
Pivot detection may lag by the right-bar count before confirmation
Ichimoku signals are simplified; full Ichimoku analysis requires additional context
Glossy visual effects add computational overhead; use Cheap Mode if performance is an issue
Past zone/pivot behavior does not guarantee future price reaction
The indicator is designed as an analytical and educational aid. It does not guarantee profitable trades, remove risk, or replace your own process.
## Disclaimer
This script is provided for informational and educational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. You are solely responsible for your own trading decisions. Past results shown on any chart do not guarantee future performance. Always conduct your own analysis and use appropriate risk management.
-Made with passion by officialjackofalltrades
Sri - NIFTY Sector Strength Dashboard (Sorted & Compact)📌 Title: Sri – NIFTY Sector Strength Dashboard (Sorted • Compact • Custom Lookback)
A compact, auto-sorted performance dashboard for major NIFTY sectors, showing percentage change over a user-selected lookback period.
This tool helps traders instantly identify sector leadership, weakness, and rotation trends without scanning multiple charts.
The dashboard calculates percentage performance for each included sector based on change in closing price and then automatically sorts them from lowest performer (top) to highest performer (bottom) for clear visual ranking.
🔧 FEATURES
✔ Auto-sorted sector ranking (bottom = strongest)
✔ Adjustable lookback: Today, 2D, 5D, 10D, 30D, 60D, 90D, 120D
✔ 15 major NIFTY sector indices included
✔ Clean 2-column compact layout
✔ Optional font sizes (Tiny / Small / Normal)
✔ Color-coding: Green for positive % change, Red for negative
✔ Lightweight and responsive — works on all chart timeframes
🧩 WHAT THE DASHBOARD SHOWS
For each sector, the script displays:
Sector short name (FIN, OILGAS, IT, FMCG, METAL, etc.)
Percentage performance over the selected lookback
Auto-ordered list so stronger sectors appear lower
Color-coded values for quick identification
This provides a simple but effective strength meter for understanding market rotation within NSE sectors.
📈 SECTORS INCLUDED
NIFTY FINANCIAL SERVICES
NIFTY ENERGY
NIFTY OIL & GAS
NIFTY PHARMA
NIFTY IT
NIFTY FMCG
NIFTY AUTO
NIFTY METAL
NIFTY REALTY
NIFTY INFRA
NIFTY HEALTHCARE
NIFTY MEDIA
NIFTY CONSUMER DURABLES
NIFTY BANK
NIFTY 50 (Benchmark Index)
These represent the key sectors driving the Indian equity market.
🧮 CALCULATION METHOD
Each sector’s percentage change is computed using:
(Current Close – Close ) / Close × 100
This method aligns with widely used sector momentum analysis.
🎛️ LOOKBACK OPTIONS
Choose how far back the performance should be compared:
Today (1)
2 Days
5 Days
10 Days
30 Days
60 Days
90 Days
120 Days
Useful for both intraday rotation and short-term to medium-term trend study.
⭐ USE-CASES
Perfect for:
Intraday or swing sector rotation analysis
Identifying outperformers vs underperformers
Tracking sector leadership shifts
Benchmarking sectors against NIFTY 50
Building sector-aligned trading bias
⚠️ LIMITATIONS
⚠ TradingView requires sufficient historical bars for deeper lookback values (60–120 days).
⚠ Script shows NA if historical depth is insufficient for any sector.
📜 DISCLAIMER
This script is for analysis and educational purposes only.
Not financial advice. Please research independently before trading.
🏷️ TAGS (Allowed & Recommended)
sector dashboard, NIFTY sectors, strength meter, rotation, heatmap, NSE India, performance table
Trade with Pivot points Designed for intraday and swing traders, this tool plots CPR + Pivot Support/Resistance for Daily, Weekly, and Monthly levels. It also provides forward-looking levels for the next trading day, next week, and next month, helping you pre-plan key zones for entries, targets, stop-loss placement, and option-selling risk zones. Includes EMA and Previous Day High/Low.
New Feature are underdevelopment :
Phase 2: Intelligence Layer
1) CPR Width Classification (core)
Automatically tag CPR as:
Narrow (compression / breakout potential)
Normal
Wide (range / mean reversion)
You’ll get a label or background marker like: “Daily CPR: Narrow” / “Weekly CPR: Wide”.
2) Bias / Trend Filter
Add a simple bias panel:
Bullish / Bearish / Sideways
Using:
EMA position (price above/below EMA)
Pivot position (price above/below Pivot or CPR band)
3) No-Trade / Chop Zone Highlighting
Mark zones where trading is usually messy, like:
Price inside CPR band
CPR is wide
Price stuck between P and BC/TC
Trade with Pivot points Designed for intraday and swing traders, this tool plots CPR + Pivot Support/Resistance for Daily, Weekly, and Monthly levels. It also provides forward-looking levels for the next trading day, next week, and next month, helping you pre-plan key zones for entries, targets, stop-loss placement, and option-selling risk zones. Includes EMA and Previous Day High/Low.
New Feature are underdevelopment :
Phase 2: Intelligence Layer
1) CPR Width Classification (core)
Automatically tag CPR as:
Narrow (compression / breakout potential)
Normal
Wide (range / mean reversion)
You’ll get a label or background marker like: “Daily CPR: Narrow” / “Weekly CPR: Wide”.
2) Bias / Trend Filter
Add a simple bias panel:
Bullish / Bearish / Sideways
Using:
EMA position (price above/below EMA)
Pivot position (price above/below Pivot or CPR band)
3) No-Trade / Chop Zone Highlighting
Mark zones where trading is usually messy, like:
Price inside CPR band
CPR is wide
Price stuck between P and BC/TC
ASCEND CAPITAL Coffee Tea & Time TBO @iamjorgemedinaAm and Afternoon Breakout strategy
use on spy voo qqq iwm and spx 2min chart for execution
follow me on IG @iamjorgemedina
on discord iamjmedinatrades
Wyckoff Climax Candles: Engulf + Wick + BigBody (Confirmaciones)Segunda versión del indicador Wyckoff Climax Candles, con confirmaciones
ICT keyLevels & timeFactors (zhaofei)Key levels and time factors
1. Key time levels within a trading day
2. Key levels of the high and low points during a time period
3. Dynamic time macro
1、日内关键时间水平
2、时段高低点关键水平
3、动态时间宏
IFT CCI + IFT RSI Average by ysfgnrIFT CCI + IFT RSI Average is a momentum-based oscillator that combines the Inverse Fisher Transform (IFT) of the Commodity Channel Index (CCI) and the Relative Strength Index (RSI) into a single, normalized impulse signal.
The indicator is designed to provide a smoother and more interpretable view of momentum dynamics by transforming traditional oscillators into a bounded range and blending them using adjustable weight ratios.
Core Concept
Both CCI and RSI are calculated, smoothed, and transformed using the Inverse Fisher Transform, which compresses values into a range between -1 and +1.
This transformation improves visual clarity and makes momentum shifts easier to interpret.
The final impulse value is calculated as a weighted average of the IFT-transformed CCI and RSI components.
Weighting Logic
The IFT CCI Weight (%) and IFT RSI Weight (%) inputs control the relative contribution of each component to the final impulse value.
The weights are automatically normalized, meaning the combined contribution always equals 100%, regardless of the selected ratio.
This allows users to emphasize CCI-based momentum, RSI-based momentum, or maintain a balanced blend without affecting overall stability.
Trend Interpretation
The impulse signal is interpreted using fixed threshold levels:
Values above +0.5 indicate strong bullish momentum
Values below -0.5 indicate strong bearish momentum
Values between these levels represent weaker or developing momentum states
An optional Early Trend Entry Mode allows trend detection to begin earlier using predefined threshold logic, without altering the strong trend boundaries.
Multi-Timeframe Support
The indicator supports multi-timeframe analysis.
IFT CCI and IFT RSI calculations can be performed on a user-selected timeframe, while the results are displayed on the current chart timeframe.
This allows higher-timeframe momentum to be analyzed within lower-timeframe price action.
Trend Duration Statistics
The script tracks bullish and bearish trend durations measured in bars and provides statistical summaries using either:
Average duration, or
Median duration, which reduces the influence of extreme values
A progress metric shows how the current trend compares to its historical duration, expressed as a percentage.
Visuals and Table
The impulse line is color-coded based on trend direction and strength
A compact statistics table displays:
Current trend state
Average or median trend duration
Current trend length
Progress relative to historical norms
Table size and position are fully configurable.
Alerts
Alert conditions are provided for:
Strong bullish and bearish momentum starts
Weak trend entries (when enabled)
Trend direction changes
Trend duration threshold warnings
Alerts are designed to notify state changes rather than predict future price movement.
Important Notes
This indicator is intended for analytical and educational purposes.
It does not provide trading signals, predictions, or financial advice.
Users are encouraged to combine it with other tools and apply their own judgment.
Crypto 1H [Universal - Strict + R:R]Overview This indicator is a trend-following strategy designed specifically for the 1-hour timeframe (though it works universally). It focuses on high-probability "pullback" entries within an established trend.
What distinguishes this script from standard trend indicators is the integrated Risk:Reward (R:R) Pre-Filter. Before generating a signal, the script calculates the distance to the logical Stop Loss and the logical Take Profit (Resistance/Support). If the trade does not offer a minimum Risk-to-Reward ratio (default 1:2), the signal is suppressed.
How It Works
The strategy follows a strictly defined logical flow:
1. Trend Identification The script uses a Baseline EMA (Default: 50) to determine the trend.
Long: Price is above the 50 EMA, and the 50 EMA is sloping up.
Short: Price is below the 50 EMA, and the 50 EMA is sloping down.
2. The Pullback & Trigger Once a trend is identified, the script waits for price to pull back to the "Trigger" EMA (Default: 21).
The Wait Window: The script utilizes a "Max Wait Bars" logic. Once the price touches the Trigger EMA, it listens for an entry signal for exactly 3 bars. If price lingers too long without reacting, the setup is invalidated to avoid chopping markets.
3. The Risk:Reward Filter (Crucial) This is the final gatekeeper. Even if the trend and candle shape are perfect, the script performs a geometric check:
Stop Loss Calculation: Determined by the lowest low (for longs) or highest high (for shorts) of the last 5 bars, plus a small ATR buffer.
Target Calculation: Determined by the highest high or lowest low of the last 24 bars (local Support/Resistance).
The Math: If the distance to the Target is not at least 2.0x the distance to the Stop Loss, the trade is skipped. This prevents buying right into resistance or selling right into support.
Indicator Features & Settings
Session Filter: Defaults to London and NY sessions (UTC) to ensure volume is present.
Volatility Filter: Requires the signal candle to have a minimum body size (0.15% of price) to avoid "doji" or low-momentum entries.
Visuals:
White Line: 50 EMA (Trend)
Yellow Line: 21 EMA (Momentum Trigger)
Labels: Green (Long) and Red (Short) entry markers.
Red Crosses: These indicate exactly where the suggested Stop Loss was located at the moment of entry.
Risk Disclaimer This tool is designed for educational and analytical purposes. The "Strict R:R" filter does not guarantee profit; it simply filters out setups that mathematically do not fit the specified ratio based on historical price action. Always perform your own analysis.
Pullbacks CompletoThis indicator is a comprehensive Trend Following toolkit that combines two distinct, high-probability pullback strategies into a single, intelligent interface. It is designed to help traders identify precise entry points during corrections in established trends, filtering out low-quality noise.
The indicator features Smart Conflict Detection: if the two strategies generate opposing signals on the same candle, the system blocks the individual alerts and displays a Purple "X", warning the trader of market indecision.
Strategy 1: Stoch Pullback (Triangles)
Visual: Green/Red Triangles Logic:
Trend: Defined by the alignment of the Fast EMA (21) and Slow EMA (100).
The Setup: The indicator waits for the Stochastic RSI to enter an Overbought or Oversold zone.
Strict Filter: A signal is only valid if, while in the zone, the price physically tests the Fast EMA (closes against it). This filters out "shallow" pullbacks.
Trigger: The signal is fired when the Stochastic RSI crosses back out of the extreme zone, resuming the trend.
Strategy 2: Dave Landry Setup (Dots)
Visual: Green/Red Circles Logic:
Trend: Filtered by MACD Histogram momentum and the relation to the Fast EMA (21).
The Pattern: Looks for a correction of at least 2 candles making lower lows (for uptrends) or higher highs (for downtrends).
Trigger: Enters when the price breaks the high/low of the previous candle, provided it closes in favor of the EMA 21.
Anti-Climax Filter: Includes a "Stretched" filter to prevent buying/selling on exhausted "Elephant Bars" (huge candles that have already consumed the move).
Key Features
Dual Alert System: Receive specific alerts for "Pullback" or "Landry" setups.
Conflict Warning: If Strategy A says "Buy" and Strategy B says "Sell" simultaneously, a "Doubtful Signal" alert is triggered, and a purple Cross appears on the chart.
Smart Visibility: The indicator automatically hides or shows the Moving Averages depending on which strategies you have enabled in the settings.
Educational Tooltips: Hover over the "i" icons in the settings menu to read the rationale behind each specific filter.
How to Use
Green Triangle: Look for Long opportunities (Stoch Pullback).
Green Dot: Look for Long opportunities (Landry Breakout).
Red Triangle: Look for Short opportunities (Stoch Pullback).
Red Dot: Look for Short opportunities (Landry Breakout).
Purple X: Stay Out. The setups are conflicting (Trend vs. Momentum disagreement).
Configuration You can toggle each strategy on/off in the settings menu. You can also choose to display the Overbought/Oversold background zones to visualize where the Stoch Pullback is "arming".
Seven Campbell - Harmonia Auction LadderHarmonia Auction Ladder
Equilibrium-Based Probability & Execution Framework for Futures
🔍 What Is Harmonia?
Harmonia is an auction-based execution framework designed for intraday futures traders.
It maps where price is statistically balanced, where it is likely to expand, and where it becomes over-extended, using a rolling historical distribution — not indicators, oscillators, or predictions.
This tool does not tell you what to trade.
It tells you when not to trade, and where trades actually make sense.
🧠 Core Philosophy
Markets move as an auction:
They rotate around balance (equilibrium)
They expand in measured phases
They exhaust at extremes
Harmonia visualizes this process using probability ladders built from real historical behavior — not assumptions.
🧭 Key Components
🟡 EQ — Equilibrium (Yellow Line)
The midpoint of the rolling range
Represents balance
No-trade zone
If price is at EQ → WAIT
🟢🔴 Probability Bands (Always Visible)
Harmonia plots symmetrical probability levels above and below EQ:
Level Meaning Usage
20% - Early expansion - Primary entry zone
50% - Common reach - Partial / risk-off
80% - Frequent extension - Target / decision
100% - Historical max - Over-extended / tail risk
These levels are always visible, regardless of current price, so you always know:
Where trades would occur
Where profits should be taken
Where risk increases sharply
🪜 Auction Ladder Guides
Faint ladder guides visually connect:
EQ → 20 → 50 → 80 → (100)
They act as a mental map, making it instantly clear where price sits in the auction — without staring at numbers.
🟣 100% Over-Extended (Optional)
Based on the maximum historical excursion
Not a probability — a boundary
Marks tail risk and exhaustion
New entries beyond 100% are discouraged
Management and exits are prioritized here
📊 Execution Hint Table (Top-Right)
Instead of cluttering the chart, Harmonia uses a small table that updates in real time:
Current session (Asia / London / NY AM / NY PM)
Market state:
WAIT — BALANCE
ROTATION ZONE
CONTINUATION ZONE
EXTREME / FADE ONLY
This keeps guidance visible without blocking price action.
🎯 How Harmonia Is Traded
❌ What You Don’t Do
Trade at EQ
Chase breakouts
Fade randomly
Use indicators for direction
✅ The Core Trade Logic
Wait at EQ → Enter at 20% → Pay at 50% → Decide at 80%
Example (Long)
Price leaves EQ
Pulls back into upper 20%
Entry with defined risk
Partial at 50%
Target or decision at 80%
Risk management near 100%
Same logic applies inversely for shorts.
⏱️ Session-Aware Behavior
Harmonia adapts naturally to session characteristics:
Asia: balance & rotations
London: expansions & false breaks
NY AM: continuation & range extension
NY PM: exhaustion & fades
The framework stays the same — behavior changes, not rules.
⚖️ What Makes Harmonia Different
No lagging indicators
No predictions
No signals
No repainting
No over-optimization
Just structure, probability, and discipline.
Harmonia exists to:
Keep you out of chop
Define high-quality locations
Standardize execution
Reduce emotional trading
🏁 Who This Is For
Futures traders (ES, NQ, YM, RTY, GC, CL)
Intraday scalpers & day traders
Traders who value structure over indicators
Anyone tired of over-trading balance
🧠 Final Thought
Price does not need to be predicted — it needs to be placed.
Harmonia doesn’t guess direction.
It shows you where trades make sense and where they don’t.
That’s the edge.
Reflex + Trendflex mit Signalenndicator Description: Reflex + Trendflex with SignalsName / Short Title: R+Tflex Signals
Type: Cycle & Trend Oscillator with Integrated Entry Signals
Basis: John Ehlers (Reflex & Trendflex concept ~2020)
Display: Two separate histograms + visual buy/sell signalsWhat makes this indicator special?This indicator combines two very modern, low-lag components developed by John Ehlers:Reflex → shows the cyclical (short-term) component of the market
Trendflex → shows the trend-based (medium-term) component
Both are calculated in such a way that they have significantly less lag than classic oscillators (MACD, RSI, Stochastic, CCI, etc.).Visual Appearance on the ChartReflex Histogram (usually light green/turquoise → red)
Trendflex Histogram (usually cyan/turquoise → purple/dark red)
Both bars are dynamically colored: lighter = decreasing momentum, stronger = increasing momentum
Buy/Sell signals as labels + arrows:
• BUY (green) → when Reflex crosses Trendflex from below to above
• SELL (red) → when Reflex crosses Trendflex from above to below
Horizontal reference lines at ±1.5 and ±3 (red & purple) as orientation for overbought/oversold zones
Typical Interpretation & Trading ApproachSituation
Interpretation
Typical Trading Reaction
Reflex crosses Trendflex ↑ & both > 0
Start of bullish cycle in a positive trend
Very strong buy signal
Reflex crosses Trendflex ↓ & both < 0
Start of bearish cycle in a negative trend
Very strong sell signal
Reflex extremely low (< -2…-4) → turns upward
Cyclical exhaustion (strongly oversold) → reversal chance
Often very good long opportunity (with caution)
Reflex extremely high (> +2…+4) → turns downward
Cyclical exhaustion (strongly overbought) → pullback
Often good short or profit-taking opportunity
Both indicators flat near 0 (±0.5…±1)
Sideways market / lack of direction
Usually no good setups → wait
Trendflex stays long above/below 0
Very strong persistent trend
Prefer trend-following trades
Strengths of this IndicatorVery low lag → signals arrive earlier than most classic oscillators
Excellent separation between short-term cycle (Reflex) and medium-term trend (Trendflex)
Very intuitive visual presentation through histograms + color gradient
Immediately usable entry signals (crossover)
Very good divergence signals (especially when Reflex diverges but Trendflex still holds)
Important Practical Usage NotesScaling factor (default = 6.0) must be adjusted!
→ Crypto & small timeframes often 8–15
→ DAX/Indices 1H+ often 4–8 sufficient
Filters are very important!
Pure crossover signals produce many false signals in strong trending markets.
Very popular filter combinations: Buy only when Trendflex > 0
Sell only when Trendflex < 0
Signal only after extreme zone (e.g. Reflex previously < -1.5 or > +1.5)
Additional trend filter (e.g. price above EMA 50/200, Supertrend, VWAP etc.)
Short version for daily use:“When Reflex crosses Trendflex and both are pointing in the same direction – especially after an extreme zone – the probability of a good trade is significantly increased.”Good luck with your trading!
AUTO_DOW_SIGNAL/MTF_MA/H1This indicator automatically identifies trend direction based on Dow Theory and draws key price levels where a trend reversal may occur.
Without repainting, it visualizes the direction for trend-following entries in day trading.
What this indicator can do
Clearly shows the trend-following direction
Automatically determines the trend direction (Uptrend or Downtrend) to help prevent misjudgment
No repainting — drawings update continuously in line with current price action
Draws potential trend-reversal price levels as horizontal lines
(e.g., “If price breaks below this level, it may shift into a downtrend.”)
Displays the same results across all timeframes, and keeps major moving averages fixed on the chart to avoid confusion
Sends Dow reversal alerts to your smartphone/PC via the TradingView app
Works across multiple markets: Forex / Bitcoin / Stocks / Gold / etc.
TradingMoja / SQZMOM ADX . Mi indicatores lo que ultizo en mis añalisis a dia dia . Si trata de SQZMOM y ADX
30d Rolling TWAP (Hourly)code:
//@version=5
indicator("30d Rolling TWAP (Hourly)", overlay=true)
// Calculation: (High + Low + Close) / 3
typicalPrice = hlc3
// 30 days * 24 hours = 720 bars
length = 720
twap30 = ta.sma(typicalPrice, length)
// Plotting
plot(twap30, color=color.new(#2962FF, 0), title="30d Hourly TWAP", linewidth=2)
// Optional: Background highlight
fillColor = close > twap30 ? color.new(color.green, 90) : color.new(color.red, 90)
bgcolor(fillColor)
US100 US30 US500 THE CONSTANTINESmart timing indicator for US100 / US500 / US30.
Highlights key intraday trading windows: SDW, OTT, Silver Bullet and critical market timings (London, NY Open, Pre-Market, NY Close).
Designed for scalping and swing trading using Smart Money concepts.
No signals. No repaint. Timing only
Alg0 Hal0 Peekab00 WindowDescription: Alg0 Hal0 Peekaboo Window
The Alg0 Hal0 Peekaboo Window is a specialized volatility and breakout tracking tool designed to isolate price action within a specific rolling time window. By defining a custom lookback period (defaulting to 4.5 hours), this indicator identifies the "Peekaboo Window"—the high and low range established during that time—and provides real-time visual alerts when price "peeks" outside of that established zone.
This tool is particularly effective for intraday traders who look for volatility contraction (ranges) followed by expansion (breakouts).
How It Works
The indicator dynamically calculates the highest high and lowest low over a user-defined hourly duration. Unlike static daily ranges, the Peekaboo Window moves with the price, providing a "rolling" zone of support and resistance based on recent market history.
Key Features
Rolling Lookback Window: Define your duration in hours (e.g., 4.5h) to capture specific session cycles.
Dynamic Visual Range: High and low levels are automatically plotted and filled with a background color for instant visual recognition of the "value area."
Peak Markers: Small diamond markers identify exactly where the local peaks and valleys were formed within your window.
Breakout Signals: Triangle markers trigger the moment price closes outside the window, signaling a potential trend continuation or reversal.
Unified Alerting: Integrated alert logic notifies you the second a breakout occurs, including the exact price level of the breach.
How to Use the Peekaboo Window
1. Identify the "Squeeze"
When the Peekaboo Window (the shaded area) begins to narrow or "flatten," it indicates the market is entering a period of consolidation. During this time, price is contained within the green (High) and red (Low) lines.
2. Trading Breakouts
The primary signal occurs when a Breakout Triangle appears:
Green Triangle Up: Price has closed above the window's resistance. Look for long entries or a continuation of bullish momentum.
Red Triangle Down: Price has closed below the window's support. Look for short entries or a continuation of bearish momentum.
3. Support & Resistance Rejections
The yellow diamond Peak Markers show you where the market has previously struggled to move further. If the price approaches these levels again without a breakout signal, they can serve as high-probability areas for mean-reversion trades (trading back toward the center of the window).
4. Customizing Your Strategy
Scalping: Lower the Lookback Duration (e.g., 1.5 hours) to catch micro-breakouts.
Swing/Intraday: Keep the default 4.5 hours or increase it to 8+ hours to capture major session ranges (like the London or New York opens).
Settings Overview
Lookback Duration: Set the "width" of your window in hours.
Window Area Fill: Customize the color and transparency of the range background.
Line Customization: Adjust the thickness and style (Solid/Dashed/Dotted) of the boundary lines.
Breakout Markers: Toggle the visibility of the triangles and diamonds to keep your chart clean.
Market Structure External/Internal with BOS/CHoCH/FTC [zazenio]You're staring at a chart trying to figure out one thing: which way is price going? You see a move up—is it a new trend or just a pullback? You spot what looks like a swing low, but is it real or will price slice right through it? And even if you get the direction right, where do you enter?
This market structure indicator can help answer these questions.
Market Structure 2.0 tracks swing points and tells you when they actually break—not when a wick pokes through, but when price closes beyond the level. That close is what matters.
CHoCH (Change of Character) – Your signal that trend direction may be flipping. If price has been making lower lows then suddenly closes above a swing high, that's a CHoCH. Doesn't guarantee reversal, but the character of the move has shifted.
BOS (Break of Structure) – Confirms trend continuation. In an uptrend, when price closes above the previous swing high, that's a BOS. Buyers are still in control.
FTC (Failure to Close) – Price wicked beyond a pivot but couldn't close there. Someone defended that level. A warning sign that the move might stall or reverse.
External vs Internal Structure
External structure is your CTF (current timeframe) trend—the main swing points that define overall direction.
Internal structure tracks price action forming within the current pivot range. It auto-resets each time external structure breaks, keeping your chart clean.
External is more important for trend direction. Internal gives you insight into what's happening between those major swings—useful for timing entries on pullbacks.
The BOS Counter
A dashboard tracking consecutive BOS counts with color-coded trend state:
Green – Trending bullish, price holding above CHoCH level
Red – Trending bearish, price holding below CHoCH level
Gray – Sideways/ranging, price has crossed back through CHoCH but no new break yet
** Gray means caution—what was trending is now in question.
Premium & Discount Zones
Zones based on the range between the most recent external swing high and low:
Premium – Top 25%, look for shorts
Discount – Bottom 25%, look for longs
50% line – Equilibrium
** Optional alerts when price enters either zone.
What Makes This Different
Most pivot indicators mark swings after a fixed bar count. This indicator only confirms a pivot when price breaks structure the other way. That swing low isn't real until price closes above the swing high. Until then, it shows faded—potential, not confirmed.
Every element is fully customizable—colors, styles, labels, positioning. Make it fit your setup.
━━━━━━━━━━━━━━━━━━━━━━
Features v2.0
Automatic swing high and swing low detection
Structure-based pivot confirmation (closes beyond level, not fixed lookback)
Customizable pivot markers (style, size, colors)
Adjustable swing width sensitivity
Dual-layer analysis (External CTF trend + Internal structure within pivot range)
BOS lines for trend continuation
CHoCH lines for potential reversals
FTC lines for failed breakouts / level rejections
Fully customizable structure lines (colors, styles, widths, labels)
Real-time BOS counter dashboard with trend state (trending vs sideways)
Premium zone (upper 25% of range)
Discount zone (lower 25% of range)
50% equilibrium line
Zone entry alerts (Premium & Discount)
Internal structure auto-resets on external breaks
Provisional structure lines (live preview before bar close)
Unconfirmed pivots displayed faded until validated
━━━━━━━━━━━━━━━━━━━━━━
Disclaimer : This script is provided for educational and informational purposes only. It is not financial advice and does not constitute a recommendation to buy or sell any financial instrument. Always do your own research and trade at your own risk.






















