Indicateur

Indicateur

Indicateur

Stratégie

Indicateur

Fibonacci Order Blocks [yigdeli]Fibonacci Order Blocks
Overview
Fibonacci Order Blocks is a rule-based structural analysis and visualization tool that combines pivot-based Fibonacci mapping with volume-distributed support and resistance zones.
The Fibonacci foundation used in this script was built on auto Fibonacci correction techniques available on TradingView. Thanks to the original technical groundwork and to the TradingView Pine community for the structural ideas that helped shape this project. On top of that base, this script extends the framework with Fibonacci zone boxes, internal buy/sell volume split, right-side information boxes, and support/resistance order block visualization.
This script is designed for structural chart analysis and visual interpretation.
It does not predict future price direction.
It does not provide standalone entry or exit signals.
It does not provide investment advice.
Fibonacci Structure
The script automatically builds a Fibonacci leg between the latest confirmed structural pivots.
Each enabled Fibonacci level can display:
the Fibonacci line itself
a local main zone box
a buy-side sub-box
a sell-side sub-box
This makes each level readable as a price zone rather than as a line only.
Image 1 — Fibonacci Lines
Shows the pivot-based Fibonacci structure used as the main framework of the script.
Image 2 — Fibonacci Level Boxes
Shows the Fibonacci main boxes and the internal buy/sell sub-boxes for enabled levels.
Fibonacci Information Boxes
Each Fibonacci zone can also display separate right-side information boxes.
These boxes are used to show:
total volume for the zone
Fibonacci level value
exact price value
They are separated from the main Fibonacci box to improve readability and make the chart easier to interpret visually.
Image 3 — Fibonacci Info Boxes
Shows the separate total-volume box and the level/price information boxes displayed to the right of Fibonacci zones.
Support and Resistance Zones
The indicator also builds structural support and resistance zones using the active chart context and lookback settings.
Each zone includes:
a main support or resistance box
total zone volume displayed on the main box
internal buy and sell sub-boxes
These zones are intended to help visualize how localized volume is distributed inside broader structural areas.
Image 4 — Support and Resistance Zones
Shows the main support and resistance block structure.
Internal Buy / Sell Volume Split
Both Fibonacci zones and support/resistance zones use internal buy/sell volume distribution logic.
This volume split is derived from historical chart data and internal overlap calculations. It is a chart-based analytical representation, not exchange-native bid/ask data and not a direct order book feed.
The purpose of the split is to provide visual context about how volume is distributed inside each displayed zone.
Image 5 — Support / Resistance Buy-Sell Split
Shows the complete box-based layout of the script, including Fibonacci zone boxes, buy/sell sub-boxes, right-side information boxes, and support/resistance volume blocks.
Customization
The script includes adjustable settings for:
pivot detection behavior
Fibonacci direction and extension
visible Fibonacci levels
line style and colors
support/resistance colors
volume box widths
right-side info box widths
support/resistance lookback behavior
This allows users to adapt the visualization to different chart layouts and analysis preferences.
What This Script Does Not Do
It does not forecast future price levels
It does not guarantee reversals or continuations
It does not generate standalone trading signals
It does not provide broker, exchange, or true order book execution data
It does not provide financial advice or trading recommendations
Notes
All calculations are derived from chart data, user-defined settings, and rule-based internal logic.
This script should be used as a structural and visual analysis tool. It is intended to help users study price structure, Fibonacci mapping, and localized volume behavior inside predefined zones. Indicateur

Structural Pivot Mapper [JOAT]Structural Pivot Mapper
Introduction
The Structural Pivot Mapper (SPM) is an advanced open-source structural analysis indicator that combines W/M pattern detection, dynamic support/resistance level mapping, pivot point analysis, volume profile integration, and break-retest detection to identify institutional structural pivots and key price levels. This indicator reveals market structure through systematic detection of swing highs/lows, classical chart patterns, and volume-based price levels, providing traders with a comprehensive structural framework for identifying high-probability entry and exit zones.
Unlike basic pivot indicators that simply mark swing points, SPM employs sophisticated pattern recognition algorithms to detect W patterns (bullish reversal), M patterns (bearish reversal), Head & Shoulders formations, and tracks level strength through touch counting and volume analysis. The indicator automatically manages support/resistance levels, removes outdated levels, and highlights Point of Control (POC) from volume profile analysis to show where institutional activity is concentrated.
Why This Indicator Exists
This indicator addresses the challenge of identifying key structural levels where institutional players are likely to defend positions or initiate new trades. Market structure provides the framework for understanding price behavior, and SPM systematically reveals:
W/M Pattern Detection: Identifies classical reversal patterns with strict validation rules
Dynamic Support/Resistance: Tracks pivot-based levels with automatic strength scoring
Level Touch Counting: Quantifies level importance through historical price interaction
Volume Profile Integration: Identifies Point of Control (POC) where maximum volume traded
Break & Retest Detection: Monitors level breaks and subsequent retests for confirmation
Head & Shoulders Patterns: Detects both regular and inverse H&S formations
Smart Level Management: Automatically removes weak levels and maintains only strongest
Each component provides unique intelligence. W/M patterns show reversal zones, pivots show swing structure, touch counting shows level strength, volume profile shows institutional interest, break-retest confirms level validity, and H&S patterns show major reversals.
Core Components Explained
1. W Pattern Detection (Bullish Reversal)
SPM detects W patterns through systematic analysis of 5 pivot points (A-B-C-D-E):
f_detect_w_pattern(float src, int lookback, int offset, bool strict) =>
// Find 5 pivot points forming W shape
// E = current, D = first low, C = middle high, B = second low, A = left high
// Validation: E > C, D < E, D < C, B <= D (strict), B < A
found := a > 0 and a != b and c != 0 and d != 0 and
src > src and src < src and src < src and
(src <= src or not strict) and src < src
W patterns indicate bullish reversal when:
- Price forms double bottom (D and B)
- Middle high (C) is lower than current price (E)
- Second low (B) is higher than or equal to first low (D) in strict mode
- Pattern completes with breakout above middle high (C)
Entry level is at middle high (C), stop loss at second low (B).
2. M Pattern Detection (Bearish Reversal)
M patterns are detected through inverted W logic:
f_detect_m_pattern(float src, int lookback, int offset, bool strict) =>
// Find 5 pivot points forming M shape
// E = current, D = first high, C = middle low, B = second high, A = left low
// Validation: E < C, D > E, D > C, B >= D (strict), B > A
found := a > 0 and a != b and c != 0 and d != 0 and
src < src and src > src and src > src and
(src >= src or not strict) and src > src
M patterns indicate bearish reversal when:
- Price forms double top (D and B)
- Middle low (C) is higher than current price (E)
- Second high (B) is lower than or equal to first high (D) in strict mode
- Pattern completes with breakdown below middle low (C)
Entry level is at middle low (C), stop loss at second high (B).
3. Dynamic Support/Resistance Level Management
SPM tracks pivot-based support and resistance levels with automatic management:
float pivot_high = ta.pivothigh(high, pivot_left, pivot_right)
float pivot_low = ta.pivotlow(low, pivot_left, pivot_right)
// Store levels in arrays
if not na(pivot_high) and barstate.isconfirmed
if array.size(resistance_levels) < max_levels
array.push(resistance_levels, pivot_high)
array.push(resistance_touches, 1)
else if auto_cleanup
array.shift(resistance_levels) // Remove oldest
array.push(resistance_levels, pivot_high)
Level strength is calculated through touch counting:
1 touch: New level (weak)
2 touches: Confirmed level (moderate)
3+ touches: Strong level (high importance)
Levels are automatically removed when max_levels is reached and auto_cleanup is enabled.
4. Level Touch Counting & Strength Scoring
SPM tracks how many times price interacts with each level:
float zone_size = atr_value * zone_width
if high >= level - zone_size and high <= level + zone_size
array.set(resistance_touches, i, array.get(resistance_touches, i) + 1)
Strength score (0-100) is calculated based on:
Touch Count (0-40 points): More touches = stronger level (8 points per touch, max 40)
Age Factor (0-30 points): Older levels = more established (based on level_strength_period)
Volume Factor (0-30 points): Higher volume at level = more institutional interest
Only levels with 2+ touches and strength >60 are displayed to reduce clutter.
5. Volume Profile & Point of Control (POC)
SPM calculates volume profile to identify price levels with maximum trading activity:
f_volume_profile(int bins, int lookback) =>
float price_range = price_high - price_low
float bin_size = price_range / bins
// Accumulate volume in 20 price bins
for i = 0 to lookback - 1
float bar_price = hlc3
int bin = math.floor((bar_price - price_low) / bin_size)
array.set(vp_volumes, bin, current_vol + bar_vol)
// Find POC (highest volume bin)
float poc_price = array.get(vp_prices, poc_bin)
POC represents the price level where most volume traded - typically where institutions have significant positions. Value Area High (VAH) and Value Area Low (VAL) define the range containing 70% of volume.
6. Break & Retest Detection
SPM monitors when price breaks through resistance levels and subsequently retests:
// Detect break (close above resistance)
if not was_broken and close > level and close <= level
array.set(level_broken, i, true)
array.set(break_bar_index, i, bar_index)
// Detect retest (price returns to broken level within 3-20 bars)
if was_broken
int break_bar = array.get(break_bar_index, i)
bool is_retest = bar_index - break_bar >= 3 and bar_index - break_bar <= 20
bool touching_level = math.abs(close - level) < atr_value * 0.5
if is_retest and touching_level
label.new(bar_index, level, "RT", color=c_support_strong)
Successful retests confirm level validity and often provide high-probability entry opportunities.
7. Head & Shoulders Pattern Detection
SPM detects both regular and inverse Head & Shoulders formations:
f_detect_head_shoulders(float src, int lookback) =>
// Find 3 pivot highs: left shoulder, head, right shoulder
float ph1 = ta.pivothigh(src, lookback, lookback)
float ph2 = ta.pivothigh(src, lookback, lookback)
float ph3 = ta.pivothigh(src, lookback, lookback)
// Validate: head higher than shoulders, shoulders roughly equal
if ph2 > ph1 and ph2 > ph3 and math.abs(ph1 - ph3) < (ph2 - ph1) * 0.3
found := true
neckline := math.min(low , low )
H&S patterns are major reversal formations indicating trend exhaustion and potential reversal.
Visual Elements
Support Lines: Blue horizontal lines with strength-based width (2-3px)
Resistance Lines: Pink horizontal lines with strength-based width (2-3px)
Level Labels: "S: price " for support, "R: price " for resistance (N = touch count)
Pivot Markers: Small circles at swing highs (pink) and lows (blue)
POC Line: Yellow dotted line showing Point of Control from volume profile
Retest Markers: "RT" labels when price retests broken levels
Pattern Lines: Optional dashed lines showing W/M pattern structure (disabled by default)
Dashboard: Real-time metrics showing resistance count, support count, pattern status, POC price
Input Parameters
Pattern Detection:
Pattern Range: Lookback period for W/M detection (default: 9)
Pattern Offset: Additional bars to check (default: 0)
Strict Pattern Validation: Enforce stricter pattern rules (default: false)
Pivot Settings:
Pivot Left Bars: Bars to left of pivot (default: 6)
Pivot Right Bars: Bars to right of pivot (default: 1)
Show Pivot Labels: Toggle pivot markers (default: true)
Level Management:
Maximum Levels: Max support/resistance levels to track (default: 3)
Level Strength Period: Lookback for strength calculation (default: 50)
Auto-Cleanup Old Levels: Remove oldest when max reached (default: true)
Visualization:
Show Support/Resistance Zones: Toggle level display (default: true)
Zone Width (ATR %): Width of level zones (default: 0.5)
Show Pattern Lines: Toggle W/M pattern visualization (default: false)
How to Use This Indicator
Step 1: Identify Key Structural Levels
Look for blue (support) and pink (resistance) lines. Thicker lines with higher touch counts are strongest.
Step 2: Monitor Pattern Formations
Watch dashboard for "W Pattern" (bullish) or "M Pattern" (bearish) status. These indicate potential reversal zones.
Step 3: Check POC Proximity
Yellow POC line shows where maximum volume traded. Price often gravitates toward POC or bounces from it.
Step 4: Wait for Break & Retest
When price breaks resistance and retests (RT label), it confirms level as new support. High-probability long entry.
Step 5: Use Level Strength for Confidence
Levels with 3+ touches are most reliable. Dashboard shows total support/resistance count.
Step 6: Combine with Higher Timeframe Structure
Use SPM on multiple timeframes. Daily/weekly levels are stronger than intraday levels.
Best Practices
Focus on levels with 3+ touches - these have proven institutional interest
W/M patterns work best at major support/resistance levels
POC acts as magnet - price often returns to POC after deviating
Break-retest setups have highest win rate when combined with volume confirmation
Disable pattern lines to reduce chart clutter - use dashboard for pattern status
Adjust zone width based on instrument volatility (higher ATR = wider zones)
Auto-cleanup keeps chart clean but may remove valid older levels
H&S patterns are most reliable on higher timeframes (4H+)
Level strength score >70 indicates institutional-grade level
Smart spacing prevents overlapping levels - only strongest levels shown
Indicator Limitations
Pattern detection requires sufficient historical data and clear pivot formation
W/M patterns can produce false signals during strong trends
Level touch counting is historical - doesn't predict future touches
Volume profile requires consistent volume data - may not work on illiquid instruments
Break-retest detection has time window (3-20 bars) - may miss delayed retests
Maximum level limit means some valid levels may be removed
Pivot detection lags by pivot_right bars - not real-time
H&S patterns are rare and require specific market conditions
Level strength scoring is multi-factor but still subjective
Smart spacing may hide valid levels that are too close to stronger levels
Technical Implementation
Built with Pine Script v6 using:
Custom W/M pattern detection with 5-point validation
Pivot-based support/resistance tracking with arrays
Touch counting system with ATR-based zone detection
Multi-factor level strength scoring (touches + age + volume)
Volume profile calculation with 20-bin price distribution
POC detection through maximum volume identification
Break-retest monitoring with time window validation
Head & Shoulders pattern detection (regular and inverse)
Smart level spacing to prevent overlapping (1.5 ATR minimum)
Automatic level cleanup when maximum reached
Dynamic line and label management to prevent memory issues
Real-time dashboard with 4 key metrics
The code is fully open-source and can be modified to suit individual trading styles.
Originality Statement
This indicator is original in its comprehensive structural analysis approach. While pivot detection and pattern recognition are established concepts, this indicator is justified because:
It combines W/M pattern detection with dynamic support/resistance management in a unified system
The multi-factor level strength scoring (touches + age + volume) provides quantitative level assessment
Volume profile integration with POC detection adds institutional perspective to structural analysis
Break-retest detection with time window validation automates a manual trading technique
Smart level spacing prevents chart clutter while maintaining strongest levels
Head & Shoulders detection (both regular and inverse) adds major reversal pattern recognition
Automatic level cleanup maintains chart readability without manual intervention
Integration of classical patterns (W/M, H&S) with modern volume analysis creates layered confirmation
Each component contributes unique information: W/M patterns show reversals, pivots show structure, touch counting shows strength, volume profile shows institutional interest, break-retest confirms validity, H&S shows major reversals, and strength scoring quantifies importance. The indicator's value lies in presenting these complementary perspectives simultaneously with intelligent level management.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Structural levels and patterns do not guarantee price behavior. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades Indicateur

Reverse ZigZagReverse ZigZag
A reimagined ZigZag indicator that processes price data from the most recent bar backwards, solving the biggest frustration with traditional ZigZag implementations: the inaccurate last leg.
━━━━━━━━━━━━━━━━━━━━━━━━
THE PROBLEM
Standard ZigZag indicators process bars left-to-right. This means the last leg is always "tentative" — it often anchors to the current bar instead of the actual swing extreme. If the true low was 3 bars ago but price has since bounced, the traditional ZigZag either misses it entirely or draws to the wrong bar. This makes the indicator unreliable precisely where it matters most: at the current price action.
THE SOLUTION
This indicator flips the logic. Instead of walking forward through history, it starts at the most recent bar and walks backwards. The result:
→ The last leg is always accurate — it finds the true extreme first, then works outward
→ No tentative or "pending" pivots — every swing point is drawn to the correct bar
→ No repainting — pivots don't shift around as new bars form
→ Clean, consistent results that match what your eyes see on the chart
━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
Phase 1 — Initialization
Starting from the current bar, the indicator walks left until it finds a price range that exceeds the deviation threshold. The more recent extreme becomes the first confirmed pivot.
Phase 2 — Backward Walk
From that first pivot, the algorithm continues left, tracking running highs and lows. When price reverses by more than the deviation %, a pivot is confirmed and the direction flips. This continues across the full lookback window.
Phase 3 — Drawing
Lines and labels are drawn between all confirmed pivots. Labels show the price and the magnitude of each swing move.
━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
• Deviation % — Minimum reversal required to confirm a new pivot (default: 5%). Lower values capture smaller swings, higher values show only major structure.
• Lookback Bars — How far back to calculate (default: 500). Increase for longer history.
• Show Price Labels — Toggle pivot labels showing price and swing magnitude.
• Line Color / Width — Customize appearance.
• High/Low Pivot Colors — Separate colors for swing highs and lows.
━━━━━━━━━━━━━━━━━━━━━━━━
USE CASES
• Swing traders identifying reversal points and market structure
• Harmonic pattern recognition where accurate pivot placement is critical
• Elliott Wave analysis requiring precise swing labeling
• Support/resistance identification from confirmed swing levels
• Measuring swing magnitude to gauge momentum shifts
━━━━━━━━━━━━━━━━━━━━━━━━
NOTES
• The indicator recalculates on the last bar, so all drawing happens once per bar update — this is efficient and avoids the overhead of managing state across bars.
• Works on any timeframe and any instrument.
━━━━━━━━━━━━━━━━━━━━━━━━
Indicateur

Structural SVM Ranker [LuxAlgo]The Structural SVM Ranker indicator is a market structure tool that utilizes a linear Support Vector Machine (SVM) algorithm to classify and rank structural breaks based on volume, momentum, and price magnitude. By assigning a score from 0 to 100 to every Break of Structure (BOS) and Change of Character (CHoCH), it aims to help traders differentiate between high-conviction structural shifts and low-probability price action.
🔶 USAGE
The indicator identifies key pivot highs and lows to map out the market structure. When price closes beyond these levels, a structural break is identified and assigned a score based on the quality of the move.
BOS (Break of Structure): Represented by solid lines, these indicate a continuation of the current local trend.
CHoCH (Change of Character): Represented by dashed lines, these indicate a potential reversal in the trend direction.
SVM Score: Displayed on labels and the dashboard. A higher score suggests the break occurred with significant relative volume, strong RSI momentum, and a meaningful price distance beyond the pivot level.
Traders can use the SVM score to filter trade quality. For example, a "CHoCH" with a score above 70 indicates a high-conviction reversal backed by volume and momentum, whereas a score below 30 might suggest a "fakeout" or a weak structural shift.
🔶 DETAILS
The core of the script is a linear classification logic inspired by Support Vector Machines. It takes three primary features into account to determine the "strength" of a break:
Relative Volume: Compares current volume to its 20-period average to ensure the break is supported by market participation.
RSI Momentum: Measures the distance of the RSI from its midpoint (50) to confirm trend strength.
Break Distance: Measures how far the price closed beyond the structural level, normalized by the Average True Range (ATR).
These features are multiplied by user-defined weights and then passed through a Sigmoid function to produce a normalized score between 0 and 100.
🔶 SETTINGS
🔹 Market Structure
Pivot Lookback: Determines the number of bars required to confirm a pivot high or low.
Show BOS/CHoCH: Toggles the visibility of structural break lines and labels.
🔹 SVM Ranking Parameters
Relative Volume Weight: Adjusts the influence of volume on the final score.
RSI Momentum Weight: Adjusts the influence of RSI deviation from 50 on the final score.
Break Distance Weight: Adjusts the influence of the price distance beyond the pivot (relative to ATR).
ATR Length: The period used for the ATR normalization of the break distance.
🔹 Dashboard
Dashboard: Toggles the visibility of the real-time ranking table.
Position: Moves the dashboard to different corners of the chart (Top Right, Bottom Right, Bottom Left).
Size: Adjusts the scale of the dashboard text.
Indicateur

Indicateur

MNM Market Narrative Map [v6]Market Narrative Map (Clean) is a multi-component market structure indicator designed to help traders read price action in a cleaner, more organized way. It maps the story of the market by combining swing structure, supply and demand zones, breakout behavior, liquidity activity, trend flow, and volume-weighted visual emphasis into one streamlined tool.
The indicator is built for traders who want more than isolated signals. Instead of focusing on a single condition, it helps frame the full market narrative: where price has turned before, where it may react again, whether a breakout is holding or failing, where liquidity may sit, and how momentum is evolving through the ribbon structure.
Core Features
1. Swing Highs and Swing Lows
Automatically detects structural pivot points to highlight important turning areas in price. These swing points help define trend continuation, reversals, and key reaction levels.
2. Supply and Demand Zones
Plots adaptive zones around confirmed pivot highs and lows to show likely areas of resistance and support. Zone thickness is volatility-aware, helping the script stay relevant across different market conditions.
3. Breakout Classification
Separates successful breakouts from failed breakouts using confirmation logic. This helps distinguish genuine expansion from fakeouts and weak participation.
4. Liquidity Mapping
Optional liquidity pool tracking at swing levels helps identify areas where price may seek stops, trigger sweeps, or reverse after clearing obvious highs and lows.
5. Money Noodle Ribbon
A clean trend ribbon built around smoothed price structure. It helps visualize directional flow, slope change, and trend continuity without cluttering the chart.
6. Breaker Blocks from Failed Breaks
When enabled, failed breakout zones can be projected as breaker blocks, giving traders additional context for future reactions and retests.
7. Volume Weighting
Visual zone emphasis can be adjusted based on relative volume, making stronger activity areas stand out more clearly.
Why Use It
This indicator is useful for traders who want a more complete market map instead of relying on isolated indicators. It can assist with:
Identifying key structural highs and lows
Locating likely supply and demand reaction zones
Spotting breakout continuation versus failed expansion
Tracking potential liquidity sweep areas
Reading short-term trend flow more clearly
Keeping chart analysis clean and visually organized
Best Use Case
Market Narrative Map works best as a chart-reading and decision-support tool. It is especially useful for traders who combine market structure, liquidity concepts, breakout behavior, and contextual price action in their analysis.
It is not designed to replace trade management or risk management. Instead, it provides a cleaner structural framework so traders can make better-informed decisions based on how price is behaving.
Design Philosophy
The script is built with a clean-chart approach in mind. Every major module can be enabled or disabled, allowing traders to keep the chart minimal or expand it into a more complete structural map depending on preference. Indicateur

Weekly Initial BalanceThis indicator marks the Weekly Initial Balance — the price range established during the first two trading days of the week — and projects extension levels for the remainder of the week.
The idea behind it
Monday sets the opening range for the week. Tuesday may extend that range — it could produce a false break, a range extension, a reversal, or an inside day. In a large majority of weeks, by the time Monday and Tuesday have traded, the high and low extremes are already in place for the rest of the week. One of these extremes will tend to hold, while the other may get broken.
The default window (Sunday 18:00 – Tuesday 16:00 New York time) captures exactly this: the full Monday session plus Tuesday's contribution. Once the IB window closes, the remaining days of the week tend to trade in relation to these established levels.
What makes this different
Most Initial Balance indicators focus on the first 30 or 60 minutes of a single session. This indicator applies the IB concept to the weekly timeframe — capturing the Mon-Tue range that statistically defines the week's extremes. The configurable window, range extension multipliers, and clean label handling (current week only) make it a practical tool rather than a theoretical overlay.
How it works
- A shaded box marks the IB range (high and low) as it forms during the configured window
- After the window closes, the IB high, low, and 50% midpoint extend as horizontal reference levels
- Configurable range extensions (default 0.5x and 1.0x of the IB range) project above and below as potential targets
- Price labels display the exact level at each line (current week only — historical weeks show clean lines without clutter)
How to use it
- **Which side holds?** After the IB window closes, one extreme tends to hold for the week while the other gets broken — watch for which side price tests and rejects first
- **Range extensions as targets:** When the IB high or low breaks, the 0.5x and 1.0x extensions provide measured-move targets
- **Inside weeks:** If price stays within the IB range through Friday, the 50% midpoint often acts as a magnet
- **Volatility read:** A wide Monday–Tuesday range suggests the week's extremes may already be set; a narrow range suggests expansion is still ahead
- **Alerts:** Built-in alerts fire when price breaks the IB high or low after the window closes
Settings
- Fully configurable start/end day, hour, and minute (New York time)
- Adjustable number of historical weeks to display
- Configurable extension multipliers (not limited to 0.5x and 1.0x)
- Toggle individual levels, labels, and extensions on/off
- Works on any instrument with sufficient intraweek data (futures, forex, crypto)
Recommended timeframes: 30min and 1H charts for best visual clarity. Intraday only — the indicator requires sufficient chart history to display the configured number of weeks.
Indicateur

QML FTB with Quality Score [Malibu]QML FTB with Quality Score
Overview
QML FTB with Quality Score is an open-source market structure indicator designed to detect Quasimodo (QML) reversal formations and highlight potential First Touch Back (FTB) reaction levels after a confirmed break of structure.
The script is built to be selective rather than frequent. Instead of displaying every possible QML pattern, it filters structure through multiple confluence factors and ranks each setup with a normalized Quality Score. The goal is to help traders focus on cleaner and more meaningful reaction zones rather than treating all reversal structures as equal.
What this indicator does
This indicator scans price action for bullish and bearish Quasimodo formations, confirms the related market structure break, and projects the corresponding left-shoulder area as a potential reaction level.
In practical terms, it is a structure-based reversal and reaction-zone tool that can assist with:
- market structure shifts
- support and resistance transitions
- break-of-structure confirmation
- liquidity-driven reversal analysis
- filtered first-touch retest opportunities
Why this indicator can be useful
Raw QML detection can become noisy because many structures may appear valid at first glance, but not all of them carry the same quality. This script attempts to solve that problem by combining pattern detection with context-based filtering.
Instead of only drawing a shape, it asks additional questions:
- Was the structure break strong enough?
- Is momentum aligned?
- Is there RSI divergence?
- Is there Fair Value Gap confluence?
- Was liquidity swept before the reversal?
- Is the level still fresh and untouched?
That layered process is what makes the script more selective and more practical for traders who prefer structured filtering over raw pattern frequency.
How it works
The script uses a ZigZag-style swing engine to track meaningful highs and lows in price structure. Based on those swings, it evaluates whether the sequence forms a valid Quasimodo transition.
Bullish structure:
- price forms a lower low
- price then breaks the prior key high
- the previous shoulder area becomes the projected bullish QML / FTB level
Bearish structure:
- price forms a higher high
- price then breaks the prior key low
- the previous shoulder area becomes the projected bearish QML / FTB level
Once the structure is identified, the setup can be refined through optional confluence filters. The script then calculates a Quality Score and prints the confirmed level only after bar close.
Filtering logic
1) Body Break Filter
This filter requires the break of structure to happen with candle body confirmation rather than wick-only penetration. Its purpose is to reduce weak or cosmetic breaks and focus on clearer structural shifts.
2) Momentum Filter (EMA)
This filter checks whether the setup is aligned with the broader directional bias using an EMA-based trend condition. Bullish setups are generally stronger when price is positioned in bullish momentum context, while bearish setups are generally stronger when price is positioned in bearish momentum context.
3) RSI Divergence Filter
This filter looks for momentum exhaustion. For bullish setups, it checks whether price pushes lower while RSI fails to confirm that weakness. For bearish setups, it checks the opposite. This is the strictest filter and is meant to isolate higher-selectivity reversal conditions.
4) FVG Confluence
This filter checks whether the projected QML level aligns with a Fair Value Gap area. The aim is to add imbalance context and identify zones where inefficient price delivery may support a reaction.
5) Liquidity Sweep Filter
This filter checks whether the head of the QML structure swept prior liquidity before the reversal. It is meant to capture structural traps and stop-hunt style behavior before a turn.
6) Freshness (FTB) Filter
This filter removes levels that have already been touched or used. Its goal is to keep the focus on first-touch reaction opportunities rather than repeatedly tested zones.
Quality Score logic
The script ranks each setup using a normalized Quality Score.
Current score components:
- RSI Divergence: +30
- FVG Confluence: +25
- Liquidity Sweep: +25
- EMA Momentum Alignment: +20
The total score is normalized according to the filters that are currently active, then displayed as a percentage. This allows the indicator to remain usable even when traders prefer a lighter or stricter filter stack.
What it plots on the chart
The indicator can display:
- a thick horizontal QML entry level
- optional dashed ZigZag structure lines
- bullish and bearish QML labels
- a Quality Score percentage
- an additional symbol when RSI divergence is present
The visual design is intentionally simple so the underlying structure remains readable on chart.
Inputs
ZigZag Sensitivity (default: 13)
Controls how sensitive the swing detection is.
- Lower values produce more swing points and more signals, but also more noise.
- Higher values reduce signal frequency and generally improve selectivity, but can introduce more lag.
Body Break Filter (default: true)
Requires structure breaks to happen with body confirmation.
- Usually lowers signal count
- Usually improves reliability
- Best kept enabled in noisier conditions
Momentum Filter / EMA Filter (default: true)
Restricts setups to those aligned with EMA direction.
- Reduces counter-trend signals
- Makes the script more selective
- Generally improves quality in directional markets
EMA Period (default: 50)
Defines the trend filter length.
- Lower values make the filter more responsive
- Higher values make it smoother and slower
RSI Divergence Filter (default: false)
Allows only setups that also show RSI divergence.
- This is the strictest filter
- Strongly reduces signal frequency
- Best used when only higher-selectivity reversal setups are desired
FVG Confluence (default: true)
Requires the level to align with Fair Value Gap context.
- Filters out some otherwise valid patterns
- Can improve contextual quality in imbalanced markets
Liquidity Sweep Filter (default: true)
Requires evidence of liquidity interaction at the head of the structure.
- Helps isolate trap-like reversal conditions
- Adds selectivity around structural extremes
Freshness (FTB) Filter (default: true)
Rejects previously tested levels.
- Keeps the focus on first-touch setups
- Useful for traders who prefer untouched zones
Line Length (bars) (default: 25)
Controls how far the projected QML level is extended to the right.
- This is a visual setting
- It does not change the signal logic
Which settings matter most
The three most important inputs are:
- ZigZag Sensitivity
- Body Break Filter
- Freshness (FTB) Filter
These settings have the biggest impact on how noisy, selective, and practical the final output becomes.
Suggested usage styles
Balanced / default use
For most users, the default settings are the best place to start. They are designed to provide a practical balance between signal frequency and selectivity.
More aggressive use
For traders who want more setups:
- reduce ZigZag Sensitivity toward 8–10
- consider disabling EMA Filter
- consider disabling FVG Confluence
This can increase opportunity count, but it also increases noise and false positives.
More conservative use
For traders who want fewer but stronger setups:
- keep Body Break Filter enabled
- keep Freshness Filter enabled
- enable RSI Divergence Filter
- focus more on higher-score setups, especially 80%+
This creates a much stricter selection process.
Timeframe behavior
This indicator is generally better suited to M15, H1, H4, and Daily charts.
Suggested sensitivity behavior:
- M15 to H1: 13 to 21 is usually more stable
- H4 to Daily: 8 to 13 is often more responsive without becoming overly delayed
Timeframe notes:
- On M1 and M5, low sensitivity settings can produce excessive noise and weak structure breaks.
- In lower timeframes, Body Break confirmation becomes much more important.
- On higher timeframes, very high sensitivity values can reduce opportunities too much and may introduce unnecessary delay.
Market conditions
The script tends to behave more cleanly in liquid markets where structure is clearer, such as:
- crypto majors
- forex majors
- index products
- other actively traded instruments
In very thin or highly irregular markets, the structural quality of setups may degrade.
Why this indicator may be preferred over simpler alternatives
This script is not intended to be just a basic ZigZag visualizer or a simple Quasimodo marker.
Its main differentiator is the way it combines multiple layers of structure validation into one ranked workflow:
- structure recognition
- body-based break confirmation
- momentum alignment
- divergence context
- FVG context
- liquidity sweep context
- freshness filtering
- normalized quality scoring
Instead of showing every possible shape, it tries to separate weaker structural patterns from more meaningful ones.
What makes this script different
The individual concepts used here are known market-structure concepts, but the practical value of the script comes from how they are combined.
Its distinguishing contribution is the orchestration layer:
- the Quality Score model
- the multi-filter ranking process
- the first-touch freshness workflow
- the compact integration of structure, momentum, liquidity, and imbalance into one decision-support tool
In other words, the script is built on generic market-structure concepts, but its filtering and ranking workflow is specific to this implementation.
How to use it in practice
A common workflow is:
- wait for a level to be confirmed
- monitor the first return into that level
- use the score and filter context to judge whether the setup deserves attention
- avoid treating every printed level as a guaranteed reversal
Many users will find it most useful as a structured decision-support tool rather than as a standalone entry engine.
Technical behavior
- Signals are confirmed on bar close.
- Confirmed levels remain fixed after printing.
- The script does not rely on request.security() in the described signal logic.
- No lookahead-based behavior is used in the signal confirmation process.
- The latest developing pivot may evolve while structure is still forming, but confirmed outputs are only printed after confirmation.
Alerts
The script includes on-close alerts when a new bullish or bearish QML level is confirmed.
Alert messages can include contextual details such as:
- direction
- Quality Score
- divergence state
Limitations
This script is a technical analysis tool, not a prediction engine.
Please keep in mind:
- sideways conditions can generate weaker structural setups
- very low timeframes can create more noise and false breaks
- news-driven volatility can invalidate technical levels quickly
- very low ZigZag Sensitivity settings can make ordinary pullbacks look more important than they really are
- no indicator can guarantee that price will react from every marked level
For that reason, the script is best used as a structured analysis tool rather than as a certainty model. Indicateur

Support & Resistance Pro Toolkit [LuxAlgo]The Support & Resistance Pro Toolkit indicator is the ultimate professional structural analysis engine for TradingView, meticulously engineered to provide the definitive solution for modern structural analysis by integrating four sophisticated detection algorithms—Pivots, Donchian Alternating, CSID, and ZigZag—marked by directional triangle signals to identify high-conviction swing points.
This powerhouse tool allows traders to seamlessly toggle between precise level plotting and dynamic ATR-based zones, both featuring a revolutionary security breakout buffer and 25-bar future projections, alongside advanced filtering based on traded volume, liquidity sweeps (marked by prominent dot signals), re-test frequency, and survival duration.
🔶 USAGE
The toolkit identifies significant price structures using one of four sophisticated detection methods. Once a level is identified, it can be displayed as a precise line or a dynamic zone with depth determined by the Average True Range (ATR).
Traders can use this toolkit to filter out market noise by setting minimum requirements for volume, re-tests, or liquidity sweeps. This ensures that only the most significant institutional structures are displayed on the chart.
🔹 Advanced Detection Engines
The foundation of any structural analysis is detection. This toolkit offers four unique methodologies to suit any trading style:
Pivots : The industry-standard approach using left/right strength lookbacks to find peak highs and valley lows.
Donchian (Alternating) : A high-performance state-machine detector. It identifies alternating swings without fixed lag, confirming a previous extreme precisely when price shifts to a new directional state (e.g., a new Higher High confirms the previous Lower Low).
CSID : A momentum-based detector that identifies structural extremes based on a consecutive sequence of N bullish or bearish candles, highlighting areas of strong trend initiation.
ZigZag : A volatility-adjusted method that identifies swings based on a percentage deviation from price, filtering out minor fluctuations and focusing on significant market moves.
🔹 Zone Sizing & The Security Buffer
Structural areas are rarely single prices. This toolkit treats S&R as dynamic regions of interest:
Zone Depth (ATR Mult) : Zones are calculated using the Average True Range (ATR) to ensure they adapt to current market volatility. This sets the thickness from the swing point inwards towards price.
Breakout Buffer (ATR Mult) : A revolutionary "Security Buffer" that extends the zone outwards on the breakout side. This requires price to clear an additional layer of volatility before a breakout is confirmed, significantly reducing "fakeouts" and noise-triggered mitigations.
🔹 Overlap & Structural Hygiene
Keep your charts actionable and clean with institutional-grade overlap management:
Merge Overlapping : When two zones interact, the older zone expands its boundaries to encompass the newer one, creating a "Super Zone" that respects the combined historical context.
Hide Oldest First : Prioritizes the most recent market context by hiding older levels that are overlapped by newer ones.
Hide Youngest First : Respects established, historical structures by ignoring newer, smaller levels that form within the range of existing unmitigated zones.
🔹 Institutional Filtering
Eliminate minor "noise" levels by showing only structures that meet high-conviction criteria:
Price Entries (E) : Shows zones only after they have been re-tested a specific number of times.
Strength (S) : Tracks the number of additional swing points that occur within the zone range during its lifetime.
Sweeps (SW) : Filters for zones that have successfully trapped liquidity through wick-only violations.
Traded Volume (V) : Sums every tick of volume that occurs while price is within the zone, identifying areas of massive institutional participation.
Duration (D) : Requires a level to survive for a minimum number of bars before it is considered a valid structure.
🔶 DETAILS
🔹 Symbols & Analytic Feedback
▲/▼ Triangles : Pinpoint markers at the exact bar of every detected swing high and low.
● Large Dots : Marked at the exact location of "Sweeps"—where price wicks past a boundary but closes back inside, signaling a potential reversal or liquidity grab.
Future Projections : Active, unmitigated levels extend 25 bars beyond the current price action for immediate visual guidance.
Dynamic Shorthand Labels : Positioned at the end of the extension and centered on the zone average, providing a real-time data readout:
E:Entries | S:Strength | SW:Sweeps | V:Volume | D:Duration
🔹 The Performance Dashboard
A 4-column command center providing a side-by-side comparison of structural performance across Support, Resistance, and Totals:
Active / Total : Real-time count of currently valid versus historically detected structures.
Mitigation % : The structural "break rate" of your current settings.
Avg Duration : The average number of bars a level survives before being violated—critical for timing trades.
Avg Volume : The typical "weight" of institutional activity accumulated within zones before they break.
Total Sweeps : A macro-view of liquidity hunting activity on both sides of the market.
🔶 SETTINGS
🔹 Detection Settings
Detection Method : Choose between Pivots, Donchian, CSID, or ZigZag logic.
Swing Sensitivity : Adjusts the lookback or deviation required to confirm a new swing point.
🔹 Zone & Level Sizing
Display Style : Toggles between horizontal levels and ATR-based zones.
ATR Period : Period used for the volatility calculations.
Zone Depth (ATR Mult) : Sets the vertical thickness of the S&R zones.
Breakout Buffer (ATR Mult) : Adds a buffer to the breakout side to filter out false breaks.
🔹 Filtering & Visibility
Overlap Handling : Manages how overlapping zones are displayed (Merge, Hide Oldest, or Hide Youngest).
Max Active (Unmitigated) : Limits the number of unmitigated levels shown on the chart.
Show Broken S&R : Toggles the visibility of levels that have already been mitigated.
Extend Active S&R : Extends active levels into the future for better visibility.
🔹 Minimum Requirements
Min Price Entries : Minimum re-tests required for a level to be visible.
Min Overall Strength : Minimum strength score required based on internal swing points.
Min Sweeps : Minimum liquidity sweeps required.
Min Traded Volume : Minimum accumulated volume required within the zone.
Min Duration (Bars) : Minimum age of the level in bars before display.
Indicateur

Smart Money: Auto Order Blocks [identityKa]Overview
The Smart Money: Auto Order Blocks is a professional-grade volume and structural mapping tool designed for SMC (Smart Money Concepts) traders. Order Blocks represent areas where large financial institutions have accumulated significant buy or sell positions. Unlike basic pivot indicators that leave cluttered lines on the chart indefinitely, this script introduces a Smart Mitigation Engine that automatically tracks the validity of these institutional zones in real-time.
Core Mechanics & Detection
The algorithm uses pivot sensitivity to locate origin points of major market imbalances:
Bearish Order Blocks (Supply): Detected at the absolute high of a structural swing before a major downward move. The box is drawn from the wick's high to the highest candle body in that cluster, encapsulating the entire institutional sell zone.
Bullish Order Blocks (Demand): Detected at the absolute low of a structural swing before a major upward move. The box encapsulates the wick's low up to the lowest candle body.
The Smart Mitigation Engine
A fundamental rule of SMC is that once an Order Block is fully pierced and the price closes beyond it, the institutional orders within that zone are considered filled or "Mitigated."
This script constantly monitors the closing price. If a candle strictly closes above a Bearish OB, or strictly below a Bullish OB, the algorithm mathematically invalidates the zone.
Upon mitigation, the box is instantly deleted from the chart, ensuring that only "Fresh" and highly reactive unmitigated zones are visible to the trader. This keeps the workspace incredibly clean.
HUD Dashboard & AI Logic
The on-chart intelligence panel evaluates the proximity of the live price to the active Order Blocks:
Dangerous: Displayed actively whenever the current live price is trading inside the coordinates of an unmitigated Order Block. This serves as a warning that the price is in an institutional high-friction area where sharp rejections and high volatility are imminent.
LONG / SHORT: The engine tracks the macro bias based on the last mitigation event. If a Bearish OB was broken upwards (invalidated resistance), the macro bias shifts to LONG. If a Bullish OB was broken downwards, the bias shifts to SHORT.
How to Use It
This tool provides exceptional context for trade entries. When the AI Suggestion reads "LONG," traders should patiently wait for the price to pull back into a green Bullish OB zone. Once the price enters the zone (triggering the "Dangerous" state), traders can drop to a lower timeframe (e.g., 5-minute) to spot a micro-reversal pattern before executing a trade aligned with the macro trend. Indicateur

Dynamic Trendlines & Breakouts [identityKa]Overview
The Dynamic Trendlines & Breakouts is an automated structural analysis tool designed to remove human subjectivity from drawing trendlines. By utilizing mathematical pivot extremes, the script identifies the dominant market geometry in real-time. More importantly, it incorporates a Smart Volume Filter to distinguish between genuine structural breakouts and low-volume retail traps (fakeouts).
Core Engine Mechanics
The indicator operates on two primary algorithmic pillars:
Dynamic Coordinate Mapping: The script calculates the most recent pivot highs and pivot lows based on a user-defined lookback sensitivity. It then draws precision-extended dashed lines connecting these coordinates, forming dynamic Resistance (Upper Line) and Support (Lower Line) boundaries.
Volume-Confirmed Breakouts: The script continuously monitors the closing price relative to these extended lines. However, a crossover is not enough. If the "Volume Confirmation" feature is active, the engine checks a 20-period Simple Moving Average of the volume. A Bullish "B" (Buy) or Bearish "S" (Sell) label is only printed if the breakout candle is accompanied by above-average institutional volume, significantly increasing the probability of trend continuation.
HUD Dashboard & AI Proximity Logic
The integrated on-chart panel tracks the last confirmed breakout state and utilizes an ATR-based proximity sensor to generate the AI Suggestion:
Dangerous: Displayed actively whenever the current price is within a 0.5 Average True Range (ATR) distance of either the upper or lower trendline. This alerts the trader that the price is actively testing a major structural boundary, making new entries highly risky until a clear bounce or volume-confirmed breakout occurs.
LONG / SHORT: Triggered when the last structural breakout was Bullish (LONG) or Bearish (SHORT), provided the price is safely trending away from the immediate resistance/support lines.
How to Use It
This tool is ideal for momentum and breakout traders. When the price approaches a trendline (AI Suggestion reads "Dangerous"), prepare for a setup. Do not front-run the breakout. Wait for the engine to print the "B" or "S" label, confirming that both the structural level has been breached and the volume supports the move. Once confirmed, trade in the direction of the new momentum. Indicateur

Liquidity Magnet Zones [identityKa]Overview
The Liquidity Magnet Zones is an advanced Smart Money Concepts (SMC) indicator that identifies and manages unmitigated pools of liquidity. Institutional algorithms gravitate toward liquidity to fill large orders. This script mathematically plots these high-probability areas—Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL)—and actively manages them, deleting zones the moment they are "swept" to keep the chart clean and relevant.
Core Mechanics: BSL & SSL Detection
The engine uses pivot point analysis to map market extremes:
Buy Side Liquidity (BSL): Formed at major structural highs. Retail traders typically place stop-losses (buy-to-cover orders) above these highs. The script identifies these unmitigated peaks and draws a dashed line projecting into the future.
Sell Side Liquidity (SSL): Formed at major structural lows. Retail traders place sell-stop orders below these lows. The script tracks these valleys as magnetic targets for price action.
Smart Mitigation (The Sweep Engine)
Unlike static drawing tools, this indicator constantly evaluates the live price against the drawn liquidity zones.
If a candlestick wick or body pierces a BSL or SSL line, the liquidity is considered "Swept" (mitigated).
The script instantly removes the line from the chart, triggering a real-time alert that institutional orders have likely been absorbed, opening the door for a structural reversal.
HUD Dashboard & Post-Sweep AI Logic
The integrated on-chart panel evaluates the structural bias based on the most recent liquidity event:
Dangerous: Displayed actively while the price is piercing and sweeping a liquidity line. This warns traders that extreme volatility is present as stop-losses trigger, making it highly risky to enter breakout trades.
SHORT: Triggered after BSL has been swept. SMC logic dictates that Smart Money forces price upward to trigger buy-stops, providing the necessary liquidity to execute large sell orders. Therefore, the post-sweep bias becomes Bearish (SHORT).
LONG: Triggered after SSL has been swept. Smart Money forces price downward to trigger sell-stops, allowing them to accumulate buy orders. The post-sweep bias becomes Bullish (LONG).
How to Use It
This tool is designed for reversal and mitigation trading, not breakout trading. Do not blindly place limit orders at BSL or SSL lines. Instead, wait for the price to hit the line (AI Suggestion reads "Dangerous"). Drop to a lower timeframe (e.g., 1m or 5m) and look for a Change of Character (CHoCH) confirming that Smart Money is indeed reversing the trend after engineering liquidity. Indicateur

Auto Fibonacci Retracement [identityKa]Overview
The Auto Fibonacci Retracement is a dynamic structural mapping tool designed to automate the process of drawing Fibonacci levels. By continually scanning historical price action over a user-defined lookback period, the script identifies the dominant macroeconomic Swing High and Swing Low. It then mathematically constructs the retracement zones in real-time, completely removing human subjectivity from technical analysis.
Core Mathematical Engine
The script utilizes the ta.highest and ta.lowest functions coupled with a structural array system to ensure flawless historical anchoring:
Trend Directionality: The script determines the current macro trend by calculating the chronological offset between the absolute High and absolute Low. If the Low occurred chronologically before the High, it establishes a Bullish bias and draws the Fibonacci ratios from bottom to top. Conversely, it draws from top to bottom for a Bearish bias.
Level Generation: Utilizing standard percentage retracements, the engine strictly plots the 0.382, 0.500 (Equilibrium), 0.618 (Golden Pocket), and 0.786 (Deep Retracement) levels. The lines are drawn using a smart array management system that clears old lines and strictly plots the active data on the live bar to prevent chart lag and clutter.
HUD Dashboard & AI Logic
To assist in reading the Fibonacci zones, an integrated on-chart panel evaluates the relationship between the live closing price and the drawn retracement levels:
Dangerous: Displayed whenever the current price enters the zone between the 0.382 and the 0.618 (Golden Pocket) levels. This area represents deep institutional retracement and is mathematically the highest-risk zone for trend-continuation entries, as the market is actively deciding whether to bounce or reverse.
LONG / SHORT: The engine defaults to the macro trend direction ("LONG" in an uptrend, "SHORT" in a downtrend) as long as the price remains confidently outside the deep retracement zone (e.g., above the 0.382 in a bullish trend), signifying that the primary momentum remains intact. If the deep 0.786 level is broken against the trend, the script will mathematically flip the bias, assuming a structural reversal.
How to Use It
Traders should use this script to automate their top-down analysis. Rather than manually redrawing Fibonacci levels as new highs or lows are made, this indicator updates dynamically. During an established trend, traders should look for the AI Suggestion to switch to "Dangerous" (indicating price has entered the Golden Pocket) and await a definitive candlestick rejection pattern off the 0.500 or 0.618 level before re-entering the market in the direction of the macro trend. Indicateur

Auto Dynamic S/R Zones Pro [identityKa]Overview
The Auto Dynamic S/R Zones Pro is a structural Price Action utility that automatically identifies, draws, and manages Supply (Resistance) and Demand (Support) liquidity zones. Unlike traditional pivot indicators that draw single horizontal lines, this script constructs volumetric "boxes" to represent areas of historical institutional interest. Furthermore, it incorporates a Smart Mitigation Engine that automatically cleans the chart by deleting zones once they have been functionally broken or fully mitigated by price action.
Core Zone Calculation Methodology
The script utilizes historical pivot detection (ta.pivothigh and ta.pivotlow) based on a user-defined lookback/lookforward sensitivity. Once a structural extreme is found, the engine calculates the boundaries of the zone to capture the entire rejection area rather than just the wick tip:
Resistance Zones (Supply): The top of the box is anchored to the absolute high of the pivot candle. The bottom of the box is calculated using the maximum value between the open and close of that same candle (capturing the wick-to-body spread).
Support Zones (Demand): The bottom of the box is anchored to the absolute low of the pivot candle. The top of the box is calculated using the minimum value between the open and close (capturing the lower wick-to-body spread).
The Smart Mitigation Engine (Chart Cleanup)
To prevent chart clutter and outdated data, the script utilizes dynamic arrays to manage the drawn boxes.
The script continuously monitors the closing price relative to all active zones.
If a candlestick closes strictly above the upper boundary of a Resistance box, or strictly below the lower boundary of a Support box, the zone is mathematically considered "Mitigated" (broken).
Upon mitigation, the script instantly deletes the box and its associated label from the chart history, firing a breakout alert and leaving only fresh, untested zones visible.
HUD Dashboard & AI Logic
The integrated on-chart panel evaluates the immediate relationship between the current price and the active S/R arrays:
Dangerous: Triggered whenever the current closing price is actively printing inside the coordinates of any active Support or Resistance box. This indicates price is in a high-friction decision zone where rejections are highly probable.
LONG / SHORT: The engine tracks the most recent structural breakout. If the last mitigated zone was a Resistance, it adopts a "LONG" bias indicating bullish structure. If the last mitigated zone was a Support, it adopts a "SHORT" bias indicating bearish structure, provided the price is not currently stuck inside another zone.
How to Use It
This indicator simplifies top-down analysis. Traders can use a higher timeframe (e.g., 1H or 4H) to let the script automatically map out major untested supply and demand zones. When the price enters an active zone (triggering the "Dangerous" AI state), traders can drop to a lower timeframe to look for reversal patterns. Alternatively, traders can trade the momentum of the breakouts by setting alerts for when a zone is officially broken/mitigated. Indicateur

Smart Pivot Reversals [identityKa]Overview
The Smart Pivot Reversals is a structural Price Action indicator designed to automatically detect and highlight market swing highs (Tops) and swing lows (Bottoms). Instead of relying on lagging moving averages to find reversals, this script uses raw bar-by-bar analysis to identify local structural extremes. To increase signal reliability, it includes optional, mathematically strict filters for macro-trend alignment and momentum exhaustion.
Underlying Concepts & Calculations
At its core, the indicator utilizes the standard ta.pivothigh and ta.pivotlow functions. The detection mechanism is entirely governed by two user-defined parameters:
Left Bars (Sensitivity): The number of preceding bars that must have a lower high (for a Top) or a higher low (for a Bottom). A smaller number detects micro-swings, while a larger number identifies major structural points.
Right Bars (Confirmation): The number of subsequent bars required to validate the pivot. Note on Visualization: The script uses a negative offset equal to the "Right Bars" value. This means the "TOP" or "BOTTOM" label is plotted exactly on the pivot candle historically, only after the confirmation bars have closed.
Smart Validation Filters (Optional Logic)
To filter out noise in ranging markets, traders can enable two concurrent mathematical filters:
Macro Trend Filter (EMA): When activated, the script calculates a standard Exponential Moving Average (default length 200). A pivot low (Bottom) is only validated if the closing price is strictly above the EMA (identifying pullbacks in an uptrend). A pivot high (Top) is only validated if the closing price is strictly below the EMA.
Momentum Strict Mode (RSI): When activated, the script checks the Relative Strength Index (default length 14) at the exact moment the pivot is confirmed. A Top is only valid if the RSI is in the Overbought zone (≥70). A Bottom is only valid if the RSI is in the Oversold zone (≤30).
HUD Dashboard & State Tracker
The script features a built-in, customizable on-chart panel that aggregates the last confirmed structural pivot and outputs an AI-style state suggestion:
LONG: Triggered and sustained when the last confirmed structure was a valid BOTTOM.
SHORT: Triggered and sustained when the last confirmed structure was a valid TOP.
Dangerous: Displayed during periods of transition or neutral states before a definitive structure is confirmed.
How to Use It
This tool is highly effective for traders utilizing Price Action methodologies, particularly on intraday charts (such as 15-minute or 1-hour timeframes). The printed Top/Bottom labels serve as excellent objective points for drawing support/resistance zones or trendlines. Traders can use the optional EMA and RSI filters to mechanically ignore counter-trend setups and only focus on high-probability reversal structures that align with the broader market context. Indicateur

Indicateur

Indicateur

BTC Round Levels For 500/1000BTC Round Levels 500 / 1000 – Psychological Price Structure Tool
BTC Round Levels automatically plots key psychological price levels based on 500 and 1000 increments. These levels represent areas where liquidity, order flow, and trader attention naturally concentrate.
Financial markets are driven by human behavior and algorithmic systems built around that behavior. Round numbers such as 60,000, 60,500, or 61,000 are not random — they act as psychological anchors. Because traders consistently place stop losses, take profits, breakout entries, and limit orders around these clean numbers, they become areas of repeated reaction.
This indicator systematically displays those levels around the current price, helping traders maintain structural awareness without manually drawing lines.
Why Round Levels Matter
Psychological Anchoring
Market participants naturally gravitate toward clean numbers instead of irregular prices. This creates clustering of orders.
Liquidity Concentration
Large players often target areas where retail orders accumulate. Round levels frequently act as liquidity pools.
Volatility Expansion
Breaks of major 1000 levels often trigger stop cascades and momentum moves.
Repeated Market Reactions
These levels often act as support, resistance, rejection zones, or breakout points.
What This Indicator Provides
Automatic plotting of 500 increment levels
Clear distinction of major 1000 increment levels
Adjustable number of levels above and below current price
Optional price labels
Clean and minimal structure
Use Cases
Intraday trading
Futures trading
Breakout strategies
Liquidity-based trading
Structure-based execution
Risk-to-reward planning
This tool helps maintain market structure clarity in volatile conditions, particularly in BTC where psychological levels frequently influence price behavior. Indicateur
