Elliott Wave Scanner [MarkitTick]💡 An automated structural analysis tool engineered to detect, classify, and visualize complex market cycles based on classic wave progression principles. By scanning localized price extrema and passing them through a rigorous matrix of geometric and proportion-based filters, this indicator distills highly subjective chart analysis into objective, rule-based pattern recognition. Designed for traders who rely on structured market phases, the scanner not only maps five-wave impulses and three-wave corrections but also integrates dynamic risk-to-reward calculations, volume confirmation, and higher-timeframe alignment to evaluate the probabilistic quality of every structural sequence it identifies.
✨ Originality and Utility
Wave theory is traditionally plagued by subjectivity and observer bias, where two analysts might map entirely different structures on the same chart. The utility of this script lies in its strict, algorithmic standardization. It removes emotional interpretation by requiring market swings to conform to precise mathematical tolerances before a sequence is validated.
This tool distinguishes itself by moving beyond mere drawing utilities. It is a complete analytical environment that actively assesses the viability of a market structure. It calculates a predefined Risk-to-Reward (R:R) ratio, establishes a clear target, and sets a protective invalidation level for every valid formation. Furthermore, it incorporates confluence filters—such as market structure midlines and higher-timeframe directional bias—ensuring that localized patterns are only presented when they align with the broader macroeconomic flow. This multifaceted approach provides a systematic, highly actionable framework rather than a simple visual overlay.
🔬 Methodology and Concepts
The core engine of this scanner is built upon the identification of sequential market pivots and the subsequent validation of their relationships through Fibonacci retracement and extension parameters.
• Algorithmic Pivot Detection
The script continuously monitors price action to identify localized peaks and troughs, referred to as Pivot Highs and Pivot Lows. A pivot is mathematically confirmed only when a central price point is surrounded by a user-defined number of lower highs (or higher lows) on both its left and right sides. This ensures that only significant market turning points are evaluated, filtering out intraday noise.
• Impulse Validation (1-2-3-4-5)
To confirm a five-wave impulse, the script isolates an alternating sequence of six confirmed pivots and applies strict proportional rules:
Wave 2 must retrace between 38.2% and 78.6% of Wave 1.
Wave 3 must extend beyond the terminus of Wave 1 and mathematically cannot be the shortest wave in the 1-3-5 sequence.
Wave 4 must retrace between 23.6% and 50.0% of Wave 3.
The script enforces an optional but standard rule where the extreme of Wave 4 must not overlap the extreme of Wave 1.
• Correction Validation (A-B-C)
For three-wave corrective structures, the engine isolates a sequence of four alternating pivots:
Wave B is required to retrace between 38.2% and 78.6% of the initial Wave A sequence.
Wave C must form a proportional extension of Wave A, operating strictly between the 61.8% and 161.8% boundaries.
• Structural Confirmation and PRZ
Once geometric rules are satisfied, the script calculates a Potential Reversal Zone (PRZ). For an impulse, the PRZ represents the logical termination area for Wave 5, derived by projecting 100% to 161.8% of Wave 1's magnitude outward from the origin of Wave 5. The entire sequence is then subjected to a Risk:Reward calculation, validating the pattern only if the theoretical trade setup meets the required profitability threshold.
🎨 Visual Guide
The indicator is designed to provide maximum data density without cluttering the charting environment.
• Structural Pathing
Valid Impulse waves are rendered using robust, continuous lines connecting the validated pivots, clearly demarcating the 1-2-3-4-5 progression. Corrective A-B-C structures are rendered in a distinctly contrasting color, providing immediate visual differentiation between trending and counter-trend market phases.
• Fibonacci Anchor Lines
Dotted horizontal projection lines extend outward from the Wave 4 terminus, visually indicating the 1.0x, 1.618x, and 2.618x Fibonacci extensions of Wave 1. These serve as dynamic targets for Wave 5 completion.
• Potential Reversal Zone (PRZ)
A shaded, transparent box is drawn at the culmination of the pattern. This box highlights the specific price region where harmonic and Fibonacci projections converge, signifying the highest probability area for the pattern's completion and subsequent market reversal.
• Trade Parameters
Upon pattern completion, three distinct dashed lines are projected forward on the chart:
An Entry line, anchored at the final wave's closing extreme.
A Stop line, calculated dynamically using an Average True Range (ATR) buffer applied to the penultimate structural pivot.
A Target line, mathematically derived from a 61.8% proportional measurement of the dominant impulsive wave.
• The Analytical Dashboard
A comprehensive data table anchors to the top right of the screen. This dashboard tracks real-time system metrics, including the prevailing market bias, the active pattern type, exact price levels for the generated trade parameters, and a dynamic Risk:Reward quality score visualized via an integrated block-bar system. It also tracks historical pattern frequency and individual wave magnitudes.
📖 How to Use
This script is engineered to act as an objective entry generation tool based on wave completion.
• Trading the Impulse W5
When the scanner identifies a validated 1-2-3-4 progression and projects the final Wave 5 into the PRZ box, traders should monitor price action within this shaded region. A rejection or stabilization within the PRZ, accompanied by the printing of the Entry, Stop, and Target dashed lines, signals a valid execution window. The structural stop-loss ensures that if the wave count is invalidated by overlapping previous structure, risk is immediately contained.
• Trading the A-B-C Correction
Corrective sequences are utilized to position into the resumption of the primary trend. When an A-B-C sequence completes, indicating that the counter-trend exhaustion has been reached, the system will output actionable levels targeting the previous macro swing high or low. Traders can utilize the volume confirmation toggle to ensure that the reversal away from the Wave C terminus is supported by institutional participation.
• Managing Pivot Delay
Because the indicator relies on confirmed pivots (requiring a set number of bars to close on the right side of the extreme), signals are generated only after the structural turning point is mathematically locked. Traders should view the generated Entry line as the execution threshold, waiting for price to retest or confidently cross this parameter rather than attempting to guess the absolute bottom or top of the raw price action.
⚙️ Inputs and Settings
The indicator offers deep modularity, allowing adaptation across different asset classes and timeframes.
• Pivot Configurations
Adjusting the Pivot Left and Pivot Right parameters alters the sensitivity of the extrema detection. Lower values yield aggressive, micro-wave tracking suitable for scalping, while higher values isolate macro-economic market cycles.
• Elliott Rules and Tolerances
The Fib Tolerance (%) input allows the user to expand or contract the leniency of the retracement measurements. The system also includes logical toggles to enforce strict structural laws, such as ensuring Wave 4 never overlaps Wave 1, or that Wave 3 must explicitly extend beyond Wave 1.
• Filter Systems
Traders can enforce a Higher Timeframe (HTF) Bias , ensuring the script only plots bullish waves when the macro trend is positive. A Volume Confirmation toggle is also available, suppressing signals if the momentum behind Wave 3 fails to breach the baseline volume moving average.
• Visual and Dashboard Toggles
Every graphical element, from the PRZ shading to the individual wave labels, can be toggled on or off to maintain chart hygiene. The dashboard can also be customized with specific text and background colors to fit any chart template.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundational framework of this indicator is deeply rooted in fractal geometry and the statistical behavior of financial time series. Markets, much like natural phenomena, exhibit self-similarity across different scales—a concept heavily explored in the mathematics of fractional Brownian motion. This indicator applies this academic premise by assuming that macroeconomic trending phases (impulses) and mean-reverting phases (corrections) manifest in predictable, repeating geometric sequences, regardless of the timeframe observed.
At the core of the algorithm is the algorithmic isolation of local extrema. By utilizing a rolling array of historical price highs and lows, the engine establishes a localized topology of the market. This topology is then subjected to proportional analysis governed by the Fibonacci sequence, a mathematical series intimately connected to the golden ratio (1.618). In financial econometrics, these specific ratios function as a psychological boundary mechanism; because market participants aggregate their risk and take-profit parameters around these proportional extensions, they generate measurable zones of supply and demand clustering.
The script synthesizes these disciplines by requiring that the distance between consecutive topological extrema strictly conforms to these irrational proportions. By enforcing a rule set where localized wave measurements must divide into one another to produce specific golden ratio derivatives, the indicator successfully models the non-linear, oscillatory nature of crowd psychology and market liquidity into a rigid, computable output.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Smart Trap StructureSmart Trap Structure (STS)
The Smart Trap Structure (STS) is an advanced institutional and structural trading indicator designed to filter out market noise, identify deep liquidity hunts (traps), and track the true directional intent of the market.
Unlike standard market structure scripts that clutter the chart with endless BOS (Break of Structure) and CHoCH (Change of Character) labels, STS utilizes an exclusive "Active Setup Cycle" logic. This ensures that you only see the most relevant price ranges and confirmation points for the current market phase.
Key Features:
The Decision Line (Orange Retest Line):
Whenever a valid CHoCH occurs, an active orange "Decision Line" is projected forward. This line acts as the ultimate truth for the setup. If price violently pierces this line, it is often hunting for stop-losses (Smart Money Trap) before continuing in the intended direction.
Reaction Zones (HH & LL Boxes):
Instead of just drawing wicks, STS dynamically maps the extreme Highest Highs (HH) and Lowest Lows (LL) of a confirmed structural phase using shaded Reaction Zone boxes (from the absolute wick to the body). These zones act as highly reactive supply and demand areas for future retests.
Dynamic Fibonacci Engine:
STS features a built-in Fibonacci drawing tool that automatically anchors to the confirmed extremes (HH to LL or LL to HH) of the active setup phase. It perfectly projects structural retracement and extension levels (0, 0.236, 0.382, 0.618, 0.764, 1.0, 1.382, 1.618). When Fibo mode is active, it automatically hides unnecessary historical dotted lines for maximum chart clarity.
Clean Chart Mechanics:
You will never suffer from "indicator fatigue". When the structure shifts, the indicator forcefully deletes old, irrelevant lines, reaction boxes, and labels from past cycles. Only the active CHoCH label remains standard-sized, while internal BOS events are scaled down to keep your chart visually clean.
Integrated MA & VWAP:
Toggle the built-in VWAP and select from a variety of Moving Averages (SMA, EMA, WMA, HMA, VWMA) straight from the settings without needing an extra indicator slot on your chart.
Disclaimer:
This script is provided for educational and analytical purposes only. Past performance does not guarantee future results. The script does not constitute financial advice. Always use proper risk management and execute trades based on your own comprehensive market analysis. Indicator

Time and Price by erdensedatTime & Price Institutional Toolkit
Overview
The Time & Price Institutional Toolkit is an advanced framework designed to bridge the concepts of time cycles and price action liquidity. By blending multi-timeframe structural analysis, mathematical models (Fibonacci, Gann, Quarterly), and fair value gaps (FVG), it provides a complete top-down perspective on institutional order flow.
The "Blue Skeleton" & Liquidity Sweeps
At the core of the script is the dynamic "Blue Skeleton" matrix. It draws the calculation period's highest, lowest, and equilibrium points.
Liquidity Sweep Filter: The skeleton essentially maps the "playing field" for the current session.
Time Element: As time passes the 0.5 (midpoint) of the skeleton box—often aligning with the overlap of the London and New York sessions—the indicator is highly sensitive to manipulation sweeps. If the price spikes out of the skeleton boundaries after this midpoint, it frequently marks a "Turtle Soup" manipulation reversal right before a heavy volume trend kicks in.
Key Features:
1. Time & Price Matrix (Skeleton Framework)
Dynamically maps premium/discount zones and equilibrium based on your chosen higher timeframe (e.g., Daily, Weekly).
Multiple mathematical schemas available: Mixed, Fibonacci, Quarterly, and Gann/Harmonic ratios.
Clearly plots Overbought/Oversold extremes.
2. Turtle Soup (TS) Entry Model
Identifies liquidity sweeps below previous period lows (Bullish Sweep) or above previous period highs (Bearish Sweep) that occur in the critical second half of the time window.
Visualized with custom dashed lines and circular markers indicating high-probability reversal zones.
3. Fair Value Gap (FVG) & Breaker Engine
Automatic detection of Fair Value Gaps and Breaker Blocks with overlapping gap filters.
Raid Displays: Shows when an FVG has been raided (swept and closed through), creating dynamic support/resistance lines marked with an 'x'.
Adjustable mitigation thresholds (Close, Wick, or Average).
4. Rejection Blocks
Highlights extreme wicks (where the wick is greater than 50% of the candle range) that signify rejection.
These act as institutional pivot points. Once mitigated, they visually transform into Mitigated Blocks (MB).
5. VWAP (Volume Weighted Average Price)
Built-in, optional VWAP line for intraday mean-reversion and dynamic trend confirmation (Disabled by default, can be toggled in settings).
6. Candle Structure & Reversal Formations
(Optional feature in settings) Highlights 2-bar immediate reversals, 3-bar standard reversals, and continuation structures specifically when they form inside the Premium/Discount extremes.
Alert System
The script includes a ready-to-use alert system focused on the highest probability setups:
Turtle Soup Buy: Triggers when a bullish liquidity sweep is detected, dropping below the HTF low and rejecting back inside during the optimal time window.
Turtle Soup Sell: Triggers when a bearish liquidity sweep is detected, pushing above the HTF high and rejecting.
Note: To set these up, create an alert on PulseWire, select this indicator, and choose "Any alert() function call".
How to Use:
Let the skeleton form during the early parts of the session (Asia/London).
Wait for the time to cross the 0.5 midline of the box.
Look for the price to sweep the outer boundaries of the skeleton (Turtle Soup trigger).
Enter on the rejection, targeting the 0 (Balance) line or the opposing Premium/Discount extreme, using FVGs and VWAP as dynamic targets. Indicator

Liquidity Sweep Retracements [MarkitTick]💡An advanced analytical framework designed to decode market micro-structure by evaluating the depth, speed, and statistical probability of price pullbacks. Rather than relying solely on static Fibonacci levels, this tool dynamically tracks the historical characteristics of an asset's swing behavior, alerting the user to structural anomalies and shifts in momentum. By intersecting retracement analysis with liquidity sweep detection and a built-in heatmap, this framework offers a comprehensive lens into market behavior, isolating environments where trend continuation is highly probable versus areas prone to exhaustion.
✨ Originality and Utility
Standard market analysis often relies on rigid tools that do not adapt to changing volatility conditions. This script introduces a highly original dynamic evaluation method by actively saving the characteristics of recent price swings into an internal array and establishing a moving statistical baseline.
The primary utility of this script lies in its multidimensional analysis. It does not just measure how far price has pulled back; it calculates how fast the pullback occurred and compares this velocity to the asset's recent historical baseline. This enables the framework to categorize price action not merely as a "pullback," but as a statistically significant "Anomaly" or an "Aggressive" move. Furthermore, by weaving Higher Timeframe (HTF) trend alignments and localized liquidity sweep detections into a single, cohesive dashboard and visual charting environment, it reduces chart clutter while exponentially increasing the depth of available data.
🔬 Methodology and Concepts
● Swing Structuring and Pivot Detection
The foundational logic relies on identifying structural pivot highs and lows through a localized lookback and look-forward window. The algorithm requires a definitive peak or trough isolated by user-defined left and right bars, establishing the anchor points for all subsequent mathematical measurements.
● Dynamic Retracement Scoring
Once a swing structure is confirmed, the script calculates the exact percentage of the retracement relative to the preceding impulse. These percentages are continuously categorized into defined behavioral zones:
Impulse (Less than 23%)
Shallow (Less than 38%)
Healthy (Up to 61.8%)
Deep (Up to 78.6%)
Reversal (Beyond 78.6%)
● Retracement Momentum Velocity (RMV)
Time and price are merged to extract velocity. By dividing the total percentage of the retracement by the number of bars it took to form, the script generates a velocity reading. This reading is dynamically compared against an array of historical velocities to determine if the current counter-trend move is unusually aggressive.
● Statistical Anomaly Detection
The script manages historical arrays of past retracement data, calculating a rolling mean (average) and standard deviation. An anomaly is triggered when a live retracement deviates significantly from this moving baseline, determined by a user-defined standard deviation multiplier. This mathematically highlights structural shifts before they mature into full trend reversals.
● Liquidity Sweep Verification
The indicator actively monitors price interactions with localized structural extremes. A bullish sweep occurs when price pierces a recent significant low but closes decisively above it, creating a structural trap. Bearish sweeps apply the inverse logic to structural highs.
🎨 Visual Guide
● Heatmap Candles
The script overrides standard candle colors with a dynamic heatmap that visually translates the health and speed of the current retracement:
Green indicates a healthy, standard retracement zone.
Orange highlights a weak zone, suggesting the trend is losing foundational strength.
Red warns of a deep structural violation bordering on a reversal.
Purple explicitly signifies an aggressive Retracement Momentum Velocity (RMV), warning of high counter-trend momentum.
● Price Action Overlays and Labels
Pivot Highs and Lows are marked precisely with small red and green crosses. (Note: These appear retroactively once the defined right-side bars confirm the pivot).
Data Labels are plotted at swing extremes. These carry a dark blue-gray background with dynamic text colors. They display the exact retracement percentage alongside quality badges, anomaly alerts (orange for opportunity, red for danger), and RMV warnings.
● Liquidity Markers
When a sweep is detected, small distinct shapes appear. "LS" text markers are plotted in bright green below bullish sweeps and bright red above bearish sweeps, visually anchoring liquidity traps directly onto the price action.
● The Analytical Dashboard
Located in the top right corner, this panel serves as the central intelligence hub. It utilizes shaded backgrounds to organize critical data natively on the chart.
Retracement and Health bars utilize block characters (█/░) to visualize strength out of 100%.
HTF Alignment displays the macro bias via clear text and color codes (Green for Bullish, Red for Bearish).
The dashboard aggregates averages, velocities, and quality metrics into a readable, high-contrast matrix.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
Traders should monitor the dynamic relationship between the visual candle heatmap and the dashboard metrics.
Trend Continuation: Look for retracements that remain within the "Healthy" or "Shallow" zones (highlighted by green candles and positive dashboard health scores) that align with a bullish HTF signal.
Anomaly Exploitation: If an anomaly label appears marking a shallow retracement (orange text warning), this historically suggests an unusually strong impulse where standard deep pullbacks may not materialize.
Exhaustion Warnings: If the candles shift to purple, indicating an RMV Aggressive state, the counter-trend velocity is statistically high. Traders may use this to delay entries until momentum normalizes, or to identify structural traps if this aggression ends in a marked Liquidity Sweep (LS marker).
⚙️ Inputs and Settings
• Swing Settings
Controls the sensitivity of pivot detection. Higher values filter out market noise for major swing structures, while lower values react quickly to micro-trends.
• Retracement and Anomaly Parameters
Dictates the maximum number of historical retracements held in the memory array. The Standard Deviation Threshold allows users to expand or contract the mathematical boundary for what qualifies as an anomaly.
• RMV (Velocity) Limits
Controls the aggression threshold. Adjusting the multiplier determines how much faster a retracement must be compared to the historical average to trigger the purple heatmap and aggressive warnings.
• Liquidity Sweeps
Defines the lookback length for identifying local highs and lows that act as liquidity pools.
• Alerts and Dashboard Configuration
Enables fully customizable JSON-formatted alerts based on statistical deviations, and allows users to toggle or completely restyle the visual dashboard and heatmap components.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is heavily anchored in statistical mechanics and kinematics principles applied to financial time-series data.
• Gaussian Distribution and Variance
Instead of utilizing fixed geometric sequences (such as the Golden Ratio), the framework treats market swings as a dataset exhibiting normal distribution characteristics. By calculating the variance and extracting the standard deviation of historical swing depths, the script establishes mathematically sound confidence intervals. When price action breaches these standard deviation bands, it represents a statistically significant outlier, formally alerting the user to a fat-tail market event.
• Financial Kinematics
The integration of Retracement Momentum Velocity (RMV) introduces physics-based kinematic principles to price action. In traditional mechanics, velocity is the rate of change of position with respect to a frame of reference. The algorithm defines the frame of reference as the structural swing, calculating velocity as the percentage of displacement per unit of time (bars). By tracking the rolling average of this velocity, the script can algorithmically determine when kinetic energy in a counter-trend direction is statistically abnormal, independent of the actual price level reached.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Fibonacci A-B-C Volles Strategie-Board(ENGLISH)
---
The Fibonacci Betting-Playbook 062026: How to read the Strategy Board
If you want to succeed in the markets, you need more than just a gut feeling, you need a system that delivers crystal-clear odds. This script is your personal bookmaker dashboard directly on the chart. It scans price movements for a highly profitable pattern and shows you exactly when the risk-reward ratio is as good as a massively overpriced underdog quote in La Liga.
Here is the official manual for you and your users, so that everyone knows exactly how to read the signals and when it's better to keep your feet still.
The Game Plan: The A-B-C Formation
In the background, the script constantly scans for a specific market movement, the so-called A-B-C ZigZag. Think of it like the perfect set piece:
Point A (The Kickoff): The lowest point where the movement begins.
Point B (The First Goal): The first high point. The momentum is here.
Point C (The Tactical Pause): The price drops back slightly. Exactly here, in this pullback, we calculate our entry before the second half – the next big price breakout – begins.
As soon as the script recognizes this formation, it paints your playing field (the boxes) onto the chart.
Your Betting Odds: The Zones on the Board
When the setup is "hot", you will see two distinct boxes on your screen. They take the guesswork out of the equation and tell you exactly where you need to place your chips.
🟢 The Green Zone: The Entry (The Value Bets)
Here is where you build your position. If the price falls into this box, we have a statistical advantage (edge).
Line 0.500 (Initial Entry): The market has corrected half of its rally. Here you place your first, smaller bet.
Line 0.618 (Ideal Reload): This is the "Golden Ratio". The absolute sweet spot in the Fibonacci system. If the price drops here, you double down. The chance of a bounce is highest here.
Line 0.667 (The Last Bastion / STOP): The red dashed line. If the price falls below this, the setup is busted. The trade is canceled, you pull the ripcord, and accept the small loss. No hoping, no praying – strict bankroll management.
🟠 The Orange Zone: The Cashout (Taking Profits)
If the trade plays out and the price shoots up, this box shows you where the bookie opens the register.
Line 1.618 (Potential Turning Point): Your first target (Take Profit 1). Here you take a portion of your winnings off the table. Ring the register!
Line 1.809 (Trailing Stop-Loss): The price keeps running? Perfect. Trail your stop-loss to your entry price now. You are now riding a risk-free bet.
Line 2.000 (Massive Resistance): The absolute maximum. The air gets extremely thin up here. Take your remaining profit and close the position.
🔴 The VAR Signal: The Red Warning Box
Markets are often chaotic. If the script fails to recognize a clear A-B-C pattern, the stop-loss has been hit, or the target has already been reached, the system immediately deletes all lines from the chart.
Instead, a red box appears in the center: "CURRENTLY NO RECOMMENDATION POSSIBLE - WAIT FOR FURTHER CHART SIGNALS".
This is like a suspended betting market during a VAR check. Your only task at this moment: Do not trade. Keep your hands off the buy button. Wait patiently until the system builds the next profitable setup.
What you as a user must absolutely pay attention to (The Golden Rules)
Patience is your best croupier: Do not trade blindly just because the price is moving. Always wait until the boxes appear on the chart and the price dips into the green zone.
Respect the Stop-Loss (0.667): Even in the best Spanish casinos, you don't win every hand. If the red line is breached, close the trade on Trade Republic immediately. Whoever hesitates here gambles away their bankroll.
Split your stakes: Do not wager your entire capital at the 0.500 line. Make a partial entry and keep your powder dry in case the price drops to the golden 0.618 line. This massively improves your average entry price.
Secure your profits: When the price reaches the orange 1.618 line, do not get greedy. Take a partial profit. Nothing is more frustrating than turning a fat paper profit back into a loss.
Indicator

Indicator

Smart Money ScalpSmart Money Scalp (CHoCH + Dynamic Fibonacci)
Technical Summary:
Smart Money Scalp is a high-fidelity market structure engine engineered for traders who demand precision in both high-frequency scalping and structural swing trading. The indicator utilizes advanced fractal pivot logic to identify Character Change (CHoCH) events—the earliest signal of a trend reversal—and automatically projects institutional Fibonacci retracement zones.
Timeframe Versatility:
While specifically optimized for ultra-fast execution on Lower Timeframes (1m, 5m, 15m), the script's core structural algorithms are equally robust for Higher Timeframes (1H, 4H). This makes it a versatile powerhouse for both aggressive intra-day scalpers and disciplined structural swing traders who seek to capitalize on institutional order flow.
Key Features:
Automated Structural Analysis: Real-time identification of Market Structure Shifts (MSS/CHoCH) based on customizable fractal lengths.
Institutional Golden Zones: Automatically highlights the 0.382 - 0.618 (Optimal Entry Zone) and the 1.382 - 1.618 (Expansion/TP Zone) using dynamic, bar-synced projections.
Dynamic Visual Scaling: Fibonacci levels and boxes expand in real-time with price action, providing a live roadmap of market dynamics.
Smart Noise Reduction: Historical text labels are automatically purged upon new setup generation to maintain a professional, clutter-free charting environment.
Confluence Filters: Optional Volume Weighted Confirmation and a Multi-algorithm Trend Filter (SMA, EMA, VWMA, etc.) are integrated to filter out low-probability liquidity traps.
Pro Alert Integration: Dedicated alerts for "CHoCH Formation" and "Entry Zone Infiltration," allowing for hands-off monitoring.
Trading Protocol:
Detection: Monitor for a CHoCH break confirming a shift in market character.
Confluence: (Optional) Ensure the break is supported by the Hacim (Volume) and Trend filters.
Execution: Identify entry triggers within the blue "ENTRY ZONE".
Distribution: Target the green "TP ZONE" for profit taking during price expansion.
Disclaimer:
Trading financial instruments involves high risk. This tool is intended for analytical and educational purposes. Always prioritize capital preservation and utilize strict risk management protocols. LuxAlgo does not guarantee financial results. Indicator

MIDAS Fibonacci Cloud [JOAT]MIDAS Fibonacci Cloud
Introduction
MIDAS Fibonacci Cloud is an open-source VWAP-based analytical tool that combines a MIDAS-anchored volume-weighted average price with six Fibonacci-scaled standard deviation bands, a Z-score probability engine, and a synthetic order flow score to produce an integrated picture of institutional value, statistical deviation, and directional pressure on a single overlay.
The problem this solves is band relevance. Standard VWAP deviations use fixed multipliers (1×, 2×, 3× standard deviation) that carry no structural meaning in market terms. Replacing those multipliers with Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 1.0, 1.618) means the band levels correspond to proportional retracement relationships that institutional participants commonly reference. The 1.618 band in particular acts as an extreme extension zone where reversion probability, quantified by the built-in Z-score engine, typically exceeds 99.7%.
Core Concepts
1. MIDAS VWAP with Configurable Anchoring
The VWAP calculation uses the MIDAS method — cumulative volume-weighted price that resets at a user-selected anchor point rather than running as a continuous session VWAP. The anchor can be set automatically (based on the current timeframe), manually to a specific higher timeframe, or to a precise date. This allows the VWAP to be anchored to any significant market event.
The variance term used for standard deviation is computed directly from the volume-weighted sum of squared prices, producing a statistically correct VWAP standard deviation:
float midasVwap = sumVolPrice / sumVol
float variance = (sumVolSq / sumVol) - math.pow(midasVwap, 2)
float stdDev = math.sqrt(math.max(0, variance))
2. Fibonacci Deviation Bands
Six band pairs are computed above and below the VWAP anchor using the standard deviation scaled by a global sensitivity multiplier and each Fibonacci ratio. Upper bands are colored in the bull theme color with decreasing opacity from band 1 to band 6; lower bands in the bear theme color with the same gradient. A gradient fill connects the outer zone (fib4–fib6) to visually highlight the extreme deviation region.
3. Z-Score and Bell Curve Probability
Each bar's Z-score is computed as the signed distance from the VWAP in units of standard deviation. The dashboard converts this to a mean-reversion probability using standard normal distribution thresholds: within 1σ = 68.2%, within 2σ = 95.4%, within 3σ = 99.7%, beyond 3σ = 99.9%.
4. Synthetic Order Flow Score
A bar-level order flow score is computed from three components: candle body-to-range ratio (directional conviction), volume relative to the 20-bar average (institutional participation), and wick rejection percentage (price acceptance or rejection). These are weighted 40/35/25 and scored 0 to 100. VWAP crossover signals are gated by this score — crossovers with low order flow scores are filtered as noise.
5. Gradient Fill Zones
The two outer Fibonacci bands (fib4 and fib6) are connected with a gradient fill that creates a visual glow effect identifying the extreme deviation zones — the regions where price is statistically most likely to be overextended.
Features
MIDAS VWAP with three anchor modes: Auto (timeframe-adaptive), Timeframe (manual higher TF), Date (specific date anchor)
Six Fibonacci deviation band pairs: Levels at 0.236, 0.382, 0.500, 0.618, 1.000, 1.618 × standard deviation × global sensitivity
Gradient fill on extreme zones: Color-to-transparent gradient between fib4 and fib6 identifies overextension zones
Z-score and reversion probability: Computed every bar with bell curve probability output (68.2% / 95.4% / 99.7% / 99.9%)
Synthetic order flow gate: Body ratio, volume participation, and wick rejection combined into a 0-100 score that gates VWAP cross signals
Candle coloring by Z-score: Bar colors intensity-coded by distance from VWAP — neutral near center, saturated at extremes
Band labels at right edge: Each band level labeled with its Fibonacci ratio and price value, updated each bar
Anchor reset marker: Vertical marker in elite theme color at each VWAP reset point
Four color themes: Phantom, Neon, Classic, Solar
Non-repainting: VWAP and bands computed cumulatively from anchor; no future data referenced
Institutional dashboard: 8-row table showing VWAP price, distance %, Z-score, reversion probability, order flow score, and market state
Input Parameters
Anchor Settings:
Anchor Method: Auto / Timeframe / Date
Manual Timeframe: Timeframe to anchor to when method is Timeframe
Manual Date: Specific timestamp when method is Date
Fibonacci Multipliers:
Global Sensitivity: Scales all band widths proportionally (default: 1.2)
Fib Level 1 through 6: Individual Fibonacci ratios (defaults: 0.236, 0.382, 0.500, 0.618, 1.000, 1.618)
Visual Styles:
Color Theme: Phantom / Neon / Classic / Solar
Highlight Candles: Toggle candle coloring by Z-score
Show Band Labels: Toggle right-edge price labels on each band
Table Position and Size
How to Use This Indicator
Step 1: Choose Your Anchor
For intraday scalping, use Auto or Daily anchor. For swing trading, use Weekly or Monthly. For event-driven analysis, use Date and anchor to a specific earnings release, FOMC announcement, or major swing point.
Step 2: Read Band Levels as Statistical Reference
The 0.5 band is one half standard deviation from VWAP — a mild deviation typical of normal trending behavior. The 1.618 band is the extreme extension zone. Price at the 1.618 band has a statistical reversion probability above 99.7%, but this does not mean reversion is imminent or guaranteed.
Step 3: Check the Reversion Probability
Read the Reversion Prob row in the dashboard. As Z-score rises above 2, reversion probability exceeds 95.4%. This quantifies how unusual the current deviation is relative to the full history from the anchor point.
Step 4: Confirm with Order Flow Score
The Order Flow score reflects whether the current bar has institutional characteristics. A high score (above 60) during a VWAP cross suggests genuine participation. A low score (below 30) during a cross suggests a potentially false signal.
Indicator Limitations
The VWAP standard deviation widens significantly with the anchor period. Bands anchored to a six-month period will be very wide; bands anchored to one day will be tight. The global sensitivity parameter must be adjusted accordingly
The Z-score probabilities assume normally distributed returns, which markets do not produce. Fat tails mean extreme Z-scores occur more frequently than the percentages suggest
The synthetic order flow score uses tick volume as a proxy for actual order flow. On assets with low tick frequency, this approximation is less reliable
VWAP-based analysis is most relevant for liquid instruments
This indicator does not generate entry or exit signals. It provides statistical deviation context
Originality Statement
Replacing standard deviation band multipliers with Fibonacci ratios (0.236 through 1.618), scaled by a volume-weighted standard deviation from a MIDAS anchor, is not replicated in existing open-source Pine Script v6 VWAP publications
The combination of Z-score computation, bell curve probability quantification, and a synthetic order flow score as a gate for VWAP cross signals within a single indicator is an original integration
The candle coloring gradient driven by Z-score intensity provides real-time deviation awareness directly on price bars without requiring a separate oscillator panel
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Statistical deviation probabilities are based on a normal distribution assumption that financial markets do not satisfy. Past VWAP behavior does not predict future price action. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Indicator

SXA: Super Xtation Amplitude | MTF FrameworkSXA (Super Xtation Amplitude) is a multi-timeframe market positioning framework designed to provide a complete visual overview of price location within the broader market structure.
Rather than focusing on entry signals, SXA combines trend context, volatility, session activity, anchored VWAPs, prior-day reference levels, Fibonacci projections, and higher-timeframe moving averages into a single environment. The objective is to help traders understand where price is currently trading relative to statistically and structurally significant areas.
The indicator was built around a simple principle:
"Price behaves differently depending on where it is located within the market."
By integrating multiple forms of context into one view, SXA allows traders to quickly identify premium and discount zones, trend alignment, session-driven liquidity areas, and potential reaction levels without switching between multiple indicators.
FEATURES
• Smart Trend Engine
Multi-timeframe moving average framework designed to visualize short, intermediate, and macro directional bias.
• Dynamic Trend Clouds
Visual cloud structures help identify trend alignment and potential transition zones between bullish and bearish conditions.
• Higher Timeframe Context
Daily 50 SMA and 200 SMA provide broader market structure and long-term directional references.
• Prior Day Reference Levels
Automatic plotting of previous day's Open, High, Low, and Close.
• Fibonacci Expansion Grid
Extended Fibonacci projections derived from the previous day's range to identify potential reaction zones and liquidity targets.
• Anchored Session VWAPs
Includes:
* Daily VWAP
* European Session VWAP
* Pre-New York VWAP
* New York Session VWAP
* Post-European Session VWAP
These levels provide institutional-style references for price acceptance and value.
• Weekly Structure Levels
Dynamic weekly Open, High, and Low levels update in real time throughout the trading week.
• Session Mapping
Visual session boxes highlight important market periods, including the Asian session and Pre-New York range.
INTENDED USE
SXA is designed as a contextual decision-support tool rather than a standalone trading system.
The indicator can be used to:
* Assess overall market positioning.
* Identify trend alignment across multiple timeframes.
* Locate potential support and resistance zones.
* Track session-driven liquidity.
* Monitor volatility expansion and contraction.
* Build discretionary trade narratives.
* Enhance existing trading systems.
SXA does not generate buy or sell recommendations. Instead, it seeks to answer a more fundamental question:
"Where is price currently located within the broader market landscape?"
By providing that context at a glance, traders can make more informed decisions while reducing chart clutter and indicator overload.
Created by @Peter_n_n
Indicator

Confirmed Fibonacci with Market StructureConfirmed Fibonacci with Market Structure
-Description
A Fibonacci retracement tool for trend-continuation setups. It draws only after price has confirmed a directional move through market structure, then locks the levels in place so the pullback zone stays where it was set.
-What it does
The script applies three conditions before it draws a retracement, and once it draws, the anchors are fixed until the setup is invalidated:
- it requires a break of structure, not just any swing;
- it requires the impulse to be large enough relative to recent volatility;
- it can require agreement from the higher timeframe.
The result is a small number of retracements, drawn on moves that have shifted structure, that stay in place once set.
-How the detection works
1. Swing pivots. The script identifies swing highs and lows using pivot detection — a bar is a pivot high when it is the highest over a set number of bars to its left and right (the Pivot length input), and the reverse for a pivot low. These pivots define the prior swing and the structural reference levels.
2. Break of structure. For a bullish leg, the script takes the most recent prior swing low as the origin, then looks for an impulse high that trades above the last swing high formed before that low. Trading above that prior high is the break of structure — confirmation that buyers have shifted structure upward. The bearish case is the mirror image (a swing high origin, and an impulse low that breaks the prior swing low).
3. Displacement filter. The impulse is only accepted if its size (impulse high minus origin low) is at least a chosen multiple of ATR(14) — the Min displacement (ATR) input. Normalising to ATR judges a move on a quiet instrument and a volatile one on the same scale, and filters out small, insignificant structural breaks.
4. Draw timing. In Fast Draw mode the leg confirms on an asymmetric impulse pivot (fewer bars required to the right of the extreme), so the fib appears sooner after the high or low. With Fast Draw off, it instead waits for a completed pullback pivot before drawing — slower, but it only commits once a retracement is already underway.
-The Fibonacci leg and golden zone
When a bullish leg confirms, 0.0 is placed at the impulse high and 1.0 at the origin low, so the retracement levels measure how far price pulls back into the move (bearish legs are inverted). The shaded 0.618–0.786 band is the golden zone — the area where trend-continuation pullbacks commonly find support or resistance. A dashed line marks the broken structure level (BOS), and the impulse leg is labelled at its anchors (HH/HL for a bull leg, LH/LL for a bear leg).
-Higher-timeframe bias
The optional bias filter reads swing structure from the next standard timeframe up (for example, a 1-hour chart reads the 4-hour). That timeframe is rated bullish when its recent structure prints higher highs and higher lows, and bearish on lower highs and lower lows. With the filter on, the script only draws bullish legs in a bullish higher-timeframe context and bearish legs in a bearish one, and it clears the active leg if the higher timeframe flips against it. The request uses confirmed values with no lookahead.
-Invalidation and refresh
A bullish leg is invalidated when price closes below its origin low, with a small ATR buffer to absorb wicks; bearish legs mirror this. A leg is also cleared if it goes stale — when no new structure forms within a configurable number of bars. Until one of those happens, the anchors stay locked, so the levels on your chart are the same ones set when the leg confirmed.
-How to use it
This tool is built for trending markets and continuation trading, not ranges. The premise is simple: after a structure break and a displaced impulse, a trend often pauses and retraces before continuing in the same direction, and the golden zone is where that retracement commonly runs out of steam.
- Trade with the leg, into the pullback. On a confirmed bullish leg, treat the 0.618–0.786 golden zone as a pullback entry zone for longs — you are looking to join the move as price retraces into it, not to fade it. On a bearish leg, the same zone is where you look for shorts as price pulls back up into it.
- Use the higher-timeframe filter for alignment. Leaving HTF Bias on keeps you taking pullbacks in the direction of the larger trend, which is the context where continuation setups tend to hold up best. Turning it off shows every confirmed leg regardless of the bigger picture.
- Anchor risk to the structure the tool already marks. The origin (the 1.0 level, where the leg began) is the natural invalidation — a close back through it means the continuation idea has failed, which is also when the script clears the leg. Targets are typically toward the impulse extreme or beyond it. The BOS line shows the level whose break confirmed the move.
- Read the zone, don't blindly buy or sell it. The golden zone is an area of interest, not a trigger. Wait for your own confirmation inside it — a reaction candle, a lower-timeframe shift in structure, or whatever you normally use — before committing.
- The golden zone isn't the only level worth watching. Shallower retracements such as the 0.382 or the 0.500 often hold in strong trends that don't pull back far, while the deeper 0.618–0.786 zone tends to come into play on bigger retracements. Different instruments and timeframes react at different levels, so test which ones your pairs respect and toggle the levels you don't use off to keep the chart clean.
- Filter the chop. In ranging or low-momentum conditions a structure break is more likely to fail. Raise Min displacement (ATR) so the tool only draws on decisive moves, and set Pivot length to suit the timeframe (suggested starting points are in each input's tooltip).
-Inputs
-Structure
- Fast Draw (default on). On, the retracement is drawn as soon as the impulse, break of structure and displacement all confirm — the earliest possible draw. Off, it waits for a completed pullback pivot before drawing, which is slower but only commits once a retracement is already under way. Turning it off gives later but more conservative entries.
- Pivot length (default 8). Bars to the left and right used to confirm the structural swing highs and lows that define the prior swing and the break-of-structure reference. Higher values track larger, slower swings and draw fewer legs; lower values react to smaller swings and draw more. Rough starting points: 18 on 15m, 8 on 1h, 4 on 4h, 3 on daily.
- Impulse pivot R (default 3, Fast Draw only). The number of bars required to the right of the impulse extreme before it is accepted. Lower confirms the leg sooner after the high or low; higher waits for more confirmation, so the leg draws later but the extreme is more settled.
- Pullback pivot length (default 2, used only when Fast Draw is off). Bars left and right for the pullback pivot the script waits on before drawing. Lower draws faster on shallower pullbacks; higher requires a deeper, more developed pullback first.
- Min displacement (ATR) (default 1.5). The minimum impulse size, measured in ATR(14) units, before a structure break counts. Raising it ignores small moves and only draws on decisive ones; lowering it draws on smaller breaks too. As a guide: 0 accepts any impulse, 1.0 is modest, 1.5 is meaningful, 2.5 and up captures only major moves.
- Invalidation buffer (ATR) (default 0.25). A tolerance, in ATR(14) units, added beyond the origin before the leg is invalidated, so a single wick through the level doesn't cancel the setup. Higher gives the trade more room before it's cleared; lower invalidates more strictly.
- Max leg age (bars) (default 150). If no new structure forms within this many bars, the leg is treated as stale and cleared. Lower keeps only fresh setups on the chart; higher lets a quiet leg persist longer.
- Pivots retained (default 15). How many recent pivots the script keeps in memory to look back through when building a sequence. Higher allows it to reference older swings; lower keeps it focused on the most recent structure. Mostly affects edge cases — the default suits most charts.
HTF Bias
- Use HTF bias filter (default on). When on, the script only draws legs that agree with the higher-timeframe trend and clears a leg if that timeframe flips against it. Turning it off shows every confirmed leg regardless of the larger trend.
- HTF pivot length (default 3). Bars left and right used to read swing structure on the higher timeframe. Higher reads a broader, slower higher-timeframe trend; lower makes the bias more responsive.
Fib Levels
- 0.000 to 1.000 toggles. Switch each standard retracement level on or off independently, so you can show only the ones you trade.
- Custom level (default off, 0.75). Enables one extra level at a ratio you choose, with its own colour — useful for a level such as 0.705 or 0.79 that sits outside the standard set. Drawn alongside the standard levels.
Visual
- Colour Theme (default "Default"). Sets the dashboard colours and the fib line colour. Ten themes are included; purely cosmetic.
- 0.500 line color, Golden zone fill, Golden zone edge, Impulse line color, BOS line/label color. Individual colour controls for those specific elements, so you can tune contrast against your chart.
- Show BOS line + label (default on). Draws the dashed line at the broken structure level with a "BOS" tag. Off hides it for a cleaner chart.
- Show impulse line (default on). Draws the dashed line connecting the two anchors of the leg.
- Extend right (default on). Extends the level lines to the right of the current bar so they project forward; off ends them at the current bar.
- Price labels (default on). Shows the price value beside each level.
- Anchor markers (default on). Labels the two anchor points (HH/HL or LH/LL) of the leg.
- Info panel (default on). Shows the dashboard with structure state, higher-timeframe bias, anchor prices and how long ago the impulse confirmed.
Alerts
- Alert on new fib drawn (default on). Fires when a new bullish or bearish leg is drawn.
- Alert on Golden Zone touch (default on). Fires the first time price touches the golden zone of the active leg.
**Notes**
Swing pivots confirm a fixed number of bars after the actual high or low, so a leg appears after that confirmation delay rather than at the exact extreme — this is inherent to pivot-based detection. Once drawn, anchors are locked and do not move. The higher-timeframe bias uses confirmed values without lookahead, so it does not repaint on historical bars, though like any higher-timeframe data it can update within a forming higher-timeframe bar in real time. These levels are decision support, not buy or sell signals.
**Disclaimer**
This indicator is for educational and informational purposes only and is not financial or investment advice. Past performance does not guarantee future results. Always do your own analysis and manage your own risk.
Indicator

SmartBreak Fibo [TraderHook]SmartBreak Fibo
Stop drawing your setups by hand. SmartBreak watches market structure in real time, and the moment price breaks a structural swing — a BOS (Break of Structure) or CHoCH (Change of Character) — it instantly maps a full Fibonacci trade plan on your chart: entry, stop, and three targets. No manual fib dragging, no guesswork on where to place levels.
How it works
The engine tracks swing highs/lows and detects every structural break (BOS / CHoCH).
On each break, a Fibonacci is anchored from the broken swing (level 1) to the opposing swing (level 0).
Entry is plotted at the 0.618 retracement, Stop-Loss at level 0 (the swing extreme).
Three take-profits sit at fib extensions 2.0 / 2.618 / 3.618 .
A green box shows the profit zone (entry → TP3), a red box shows the risk zone (entry → SL).
Why traders like it
Setups appear the instant structure breaks — you decide whether to take them, the levels are already there.
Long breaks are marked green, short breaks red — direction is readable at a glance.
Fully adjustable: entry level, all three TPs, pivot sensitivity, colors, and how many recent setups stay on screen.
"ChoCh only" mode if you prefer to trade reversals over trend continuations.
Settings
Pivot Period — structure sensitivity (higher = bigger swings only).
Entry / TP1 / TP2 / TP3 — every fib level is yours to tune.
Number of recent setups — keep the chart clean with just the latest, or show history.
Long / Short setups — toggle either side on or off.
Credits
The market-structure engine (ZigZag, swing classification, BOS/CHoCH) is based on the open-source work of TFlab , used under the Mozilla Public License 2.0. The Fibonacci trade-box system is by TraderHook. Published open-source — feel free to study and build on it.
Disclaimer
This is a visualization tool, not financial advice or a signal service. The take-profit levels are mechanical Fibonacci extensions — they do not predict that price will reach any target. Always backtest and manage your own risk before trading. Indicator

Dynamic Pivot Fibo Analytics [MarkitTick]💡 A highly advanced, automated technical analysis tool designed to objectively identify structural market swings and project key Fibonacci retracement and extension levels. By isolating mathematically confirmed pivot highs and lows, the algorithm eliminates the subjective bias traditionally associated with drawing retracement tools manually. The script dynamically maps out critical zones of interest—such as the widely observed Golden Pocket—while continuously evaluating the current price action against these historical vectors. Coupled with a real-time analytical dashboard, it provides traders with a comprehensive breakdown of swing volatility, level proximity, and directional bias, serving as a complete ecosystem for retracement-based methodologies.
✨ Originality and Utility
The primary utility of this script lies in its capacity to transform a traditionally manual and subjective charting process into an automated, mathematically rigorous system. While standard charting platforms require users to manually select anchor points for Fibonacci tools—often leading to inconsistent application—this script programmatically identifies the most statistically relevant extremums based on user-defined lookback periods.
Its originality is further highlighted by its multi-layered filtering architecture. Rather than treating every minor price fluctuation as a valid swing, the script incorporates an objective volatility filter utilizing either the Average True Range (ATR) or a strict percentage threshold. This ensures that only structurally significant market movements are measured, effectively filtering out stochastic market noise. Furthermore, the integration of an on-chart analytical dashboard and a dynamic level-touch highlighting system brings a level of interactive feedback rarely seen in standard visualization tools, allowing traders to instantly gauge the health and maturity of an active swing.
🔬 Methodology and Concepts
● Pivot Extrema Detection
The foundational logic relies on the identification of local minimums and maximums within a continuous time-series dataset. The algorithm evaluates a central candidate bar against a defined window of preceding and succeeding bars. A Pivot High is only confirmed if the candidate's high remains unbreached across the entire evaluation window, ensuring it represents a true structural peak. This mechanism inherently requires a confirmation delay to validate the peak, preventing the erratic shifting of anchors during live price formation.
● Swing Filtering and Validation
Once opposing pivot points are confirmed, the script calculates the absolute price range of the resulting swing. To prevent false positives in low-volatility environments, the script applies a normalization filter. It evaluates the raw swing range against either a fractional multiplier of the current ATR or a static percentage of the asset's price. Swings failing to meet this geometric threshold are automatically discarded, preserving chart clarity.
● Fibonacci Mathematics and Zonal Mapping
Upon validating a swing, the algorithm applies standard Fibonacci sequence ratios to the defined price vector. It calculates core retracements (0.236, 0.382, 0.500, 0.618, 0.786) and projects mathematical extensions (1.272, 1.618, 2.000) for target mapping. The script specifically isolates the 0.618 to 0.650 region, commonly referred to as the Golden Pocket, rendering it as a distinct filled zone to highlight its historical significance as an area of mean reversion.
🎨 Visual Guide
● Main Chart Elements
Swing Line: A distinct, solid line directly connecting the anchored Pivot Low and Pivot High, visually defining the active vector being measured.
0.000 and 1.000 Anchors: The baseline extremums of the swing, marked by precise labels and dashed/dotted lines to indicate the absolute boundaries of the measured range.
Key Retracement Levels (0.382 & 0.618): Rendered with emphasized, dashed lines to denote their elevated importance in traditional retracement theory. The 0.618 level utilizes a distinct gold color to draw the user's attention.
Minor Retracement Levels (0.236, 0.500, 0.786): Displayed using subtle, dotted lines to provide contextual support without overwhelming the primary visual hierarchy.
Golden Pocket Fill: A translucent shaded region spanning the area between the 0.618 and 0.650 price coordinates, serving as a primary zone of interest for exhaustion.
Touch Highlights: When the current price intersects any active Fibonacci line, the line's color dynamically shifts (defaulting to white), providing immediate visual feedback of level interaction.
Historical Swings: If enabled, the script retains ghosted, dotted representations of previously confirmed swings, allowing users to analyze past interactions without cluttering the active setup.
● Dashboard Elements
Direction: A color-coded textual readout confirming whether the active, validated swing is Bullish or Bearish.
Swing Range: A visual block-bar representation (scaling from 0 to 10) evaluating the magnitude of the current swing relative to the prevailing ATR.
Key Levels: Direct, high-precision price readouts for the critical 0.382 and 0.618 levels.
Levels Touched: A scoring metric visualizing how many individual Fibonacci levels the current price action has interacted with since the setup was confirmed.
0.618 Proximity: A dynamic strength bar indicating how close the current price is to the Golden Ratio, aiding in the anticipation of level tests.
Setup Age: A raw bar-count indicating the duration since the swing anchor was established.
📖 How to Use
Setup Identification: Apply the script to your chart and observe the automated generation of the Swing Line. The script will wait for the defined lookback period to confirm a pivot before drawing the corresponding Fibonacci grid.
Trend Context: Use the Dashboard to immediately confirm the direction and strength of the swing. A high Swing Range score indicates a robust structural move, lending higher confidence to the subsequent retracement levels.
Zone Monitoring: Focus attention on the highlighted Golden Pocket zone. As price retraces into this filled area, monitor for deceleration or reversal patterns. The built-in proximity score on the dashboard will alert you as price nears this critical threshold.
Interaction Feedback: Watch for the dynamic Touch Highlights. When a level changes color, it confirms that price has officially probed that mathematical coordinate.
Alert Automation: Instead of manually monitoring the chart, configure the script's alert parameters to notify you strictly when price touches a key level (such as the 0.382 or 0.618), streamlining your analytical workflow.
⚙️ Inputs and Settings
Swing Settings: Controls the structural strictness of the algorithm. Adjusting the "Left Bars" alters the required validation period for a pivot, while "Extend Lines" controls the horizontal projection length of the drawn levels.
Swing Filter: Toggles the volatility validation on or off. Users can select between an "ATR" multiplier or a pure "Percent" requirement, establishing the minimum acceptable size for a swing to be plotted.
Direction Filter: Allows the user to isolate the script's output to strictly Long setups, strictly Short setups, or Both simultaneously.
Fib Extensions & Golden Pocket: Provides granular control over the visibility and aesthetic rendering of the >1.000 extension levels and the specialized 0.618-0.650 fill zone.
Level Touch Alerts: Configuration options for automating notifications. Users can toggle alerts for specific key levels, all levels collectively, and customize the visual highlight color triggered by these interactions.
Historical Swings: Defines the quantity of past setups to retain on the chart for retrospective analysis.
Dashboard Settings: Customization parameters for the analytical table's background and text colors to ensure readability across different chart themes.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this script intersects two distinct disciplines of market analysis: algorithmic extremum detection and geometric proportion analysis.
The extremum detection relies on a localized peak-trough evaluation algorithm. By isolating a data point and verifying that its scalar value is strictly greater than (or less than) all corresponding values within a symmetric `n`-period domain, the script establishes a mathematically unassailable structural node. This method effectively filters out continuous monotonic sequences and isolates true inflection points in the time-series data.
To prevent the algorithm from validating micro-fluctuations inherent in random walk market environments, it employs a normalization technique using Average True Range (ATR). ATR provides a dynamic measure of standard deviation over time. By forcing the absolute scalar difference between two validated extremums to exceed a fractional coefficient of the ATR, the script ensures that the analyzed vector falls outside the bounds of standard market noise, thereby validating its statistical significance.
Once the vector is established, the script applies the principles of the Fibonacci sequence—a recursive mathematical progression where the ratio of successive terms converges on Phi (approximately 1.618). In the context of market dynamics, these ratios (particularly their inverses and square roots, such as 0.618 and 0.382) have been empirically observed to act as psychological focal points for mass market behavior. The script translates these geometric proportions into static coordinate thresholds, creating a structured, grid-based framework for evaluating the amplitude and potential exhaustion points of counter-trend market phases.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Polar Auto Fibonacci Pro - [Rehan Khanani]Polar AutoFib Pro
Polar AutoFib Pro is a professional all-in-one trading indicator that combines two powerful systems into a single clean overlay—a trend-following buy/sell signal engine and an automatic Fibonacci retracement tool. No need to juggle multiple indicators; everything you need is right here on the chart.
─────────────────────────────
HOW IT WORKS
─────────────────────────────
This indicator runs two engines simultaneously:
Engine 1 — PolarEdge Signal System
Generates high-probability Buy and Sell signals by combining three confirmations:
1. EMA 200 — The primary trend filter. When the price is above the EMA, the system looks for Buy setups. When the price is below, it looks for Sell setups. This keeps you trading with the dominant trend at all times.
2. Supertrend — A dynamic volatility-based band that confirms trend direction. The green band confirms bullish momentum; the red band confirms bearish momentum.
3. RSI (Relative Strength Index) — Used as a momentum trigger. A BUY signal fires when RSI crosses up from the oversold zone (default 30). A SELL signal fires when RSI crosses down from the overbought zone (default 70).
All three conditions must align simultaneously—this triple-confirmation logic filters out weak and false signals.
Engine 2 — Auto Fibonacci Retracement
Automatically detects the most recent swing high and swing low using pivot point calculations, then draws the complete Fibonacci retracement grid in real time — no manual drawing required.
The indicator identifies whether the last major pivot was a high or a low, determines the swing direction, and plots all key levels accordingly. When a new swing forms, the levels update automatically.
─────────────────────────────
FIBONACCI LEVELS INCLUDED
─────────────────────────────
0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1
1.618 / 2.618 / 3.618 / 4.236
Each level is independently toggleable with its own color control. You can show values as decimals or as percentages. Labels can be positioned on the left or right side of the chart. Line extension can be set to Left, Right, or Both directions.
─────────────────────────────
KEY FEATURES
─────────────────────────────
- Triple-confirmation Buy/Sell signals (EMA + Supertrend + RSI)
- Automatic Fibonacci retracement — no manual drawing needed
- Real-time swing detection using pivot high/low logic
- Dynamic trend background (subtle green/red shading behind candles)
- 11 fully customizable Fibonacci levels with individual color pickers
- Toggle each Fib level on/off independently
- Show prices and/or level values on labels
- Labels position: Left or Right
- Line extension: Left, Right, or Both
- Reverse Fib direction toggle
- Works on all assets: Forex, Crypto, Commodities, Indices, Stocks
- Works on all timeframes
- 6 built-in alert conditions (see Alerts section below)
─────────────────────────────
SETTINGS GUIDE
─────────────────────────────
Group 1 — PolarEdge Signal Settings
- Trend Baseline EMA: Period for the main trend filter (default 200)
- RSI Length: RSI calculation period (default 14)
- RSI Overbought Level: Sell trigger threshold (default 70)
- RSI Oversold Level: Buy trigger threshold (default 30)
- Show EMA 200: Toggle the EMA line on/off
- Show Supertrend Bands: Toggle the Supertrend lines on/off
Group 2 — Auto Fibonacci Settings
- Pivot Depth: Number of bars to look back for swing detection (default 10). Lower = more sensitive, Higher = fewer but stronger pivots
- Reverse Fib Direction: Flips the Fib measurement direction
- Extend Left / Right: Controls how far Fib lines extend on the chart
- Show Prices: Displays exact price on each level label
- Show Level Values: Displays the Fib ratio on each level label
- Level Format: Choose between decimal values or percentage display
- Labels Position: Place labels on the Left or Right side
Group 3 — Fibonacci Levels
- Toggle each of the 11 levels individually
- Customize the value and color of every level
─────────────────────────────
ALERT CONDITIONS (6 Total)
─────────────────────────────
1. BUY Alert — fires on every confirmed Buy signal
2. SELL Alert — fires on every confirmed Sell signal
3. Any Signal — fires on either Buy or Sell
4. Fib 0.618 Cross — price crosses the Golden Ratio level
5. Fib 0.5 Cross — price crosses the midpoint level
6. Fib 0.382 Cross — price crosses the key retracement level
To activate: click the alarm clock icon on the indicator, select your desired condition, and set your notification method.
─────────────────────────────
HOW TO USE
─────────────────────────────
Step 1 — Identify trend direction using the EMA 200 and the background color. Green background means bullish bias; red background means bearish bias.
Step 2 — Watch for a BUY or SELL label to appear. This confirms all three conditions (EMA, Supertrend, RSI) have aligned.
Step 3 — Use the automatically drawn Fibonacci levels to plan your entry, stop loss, and take profit targets. Common setups: enter near the 0.382 or 0.5 retracement, target the 0 or -0.236 extension, stop below the 0.618 or 0.786 level.
Step 4 — Set alerts on your preferred Fibonacci levels to be notified when price reaches key zones.
─────────────────────────────
RECOMMENDED TIMEFRAMES
─────────────────────────────
- Scalping: 1m, 5m, 15m
- Intraday: 30m, 1H
- Swing Trading: 4H, Daily
- Position Trading: Weekly
The indicator adapts to any timeframe automatically.
─────────────────────────────
DISCLAIMER
─────────────────────────────
This indicator is a technical analysis tool designed to assist in identifying potential trading opportunities. It does not guarantee future results. Always apply proper risk management and conduct your own analysis before entering any trade. Past signal performance is not indicative of future results. Indicator

Hot zones Profile [Cartel Console]Overview
The Hot Zones Profile is a comprehensive market analysis tool designed to identify institutional interest areas through three primary lenses: Time-based Session Ranges, Volume Distribution (LVNs), and Delta-based Volume Profiles.
By combining session-specific volatility with historical volume gaps, this indicator highlights "Hot Zones" where price has historically moved quickly or is expected to find significant reaction levels.
Key Features
1. NY Session & Volatility Zones
The script tracks a specific user-defined time window (defaulting to the New York session transition). Once the session range is established, it projects a series of "Heatmap" levels based on standard deviations and range multipliers.
Bullish/Bearish Zones: Areas projected above and below the session range to identify potential overextension or reversal points.
Customization: Users can define the session time, timezone, and the extension length of these zones.
2. Heatmap Low Volume Nodes (LVN)
Market Profile theory suggests that Low Volume Nodes represent areas where price moved rapidly, often indicating a lack of auctioning or "unfair" prices.
Dynamic Detection: The script analyzes daily volume distribution to pinpoint these gaps.
Mitigation Logic: Zones can be set to "Fade" once price has re-tested and traded through them, helping traders identify which levels are still "fresh" and which have been mitigated.
Aesthetic Heatmaps: Uses glowing box visuals to represent the strength and location of these nodes.
3. Right-Side Delta Volume Profile
To provide a clear view of the current auction, the script plots a high-resolution Volume Profile on the right side of the chart.
Buy/Sell Delta: Unlike standard profiles, this highlights the "Stacked Delta," showing the ratio of buying vs. selling volume at every price level within the lookback period.
Volume Labels: Displays precise volume metrics (in Thousands) for high-activity nodes to assist in identifying Point of Control (POC) areas.
How to Use
Supply & Demand: Use the LVN zones as potential "magnets" or "rejection" zones where liquidity may be resting.
Session Bias: Use the NY Session boxes to define the intraday range and look for "Hot Zone" extensions for potential trend exhaustion.
Volume Confirmation: Observe the Right-Side Profile to see if price is currently trading in high-volume areas (balance) or low-volume areas (imbalance).
Settings
Session Time: Set your preferred anchor time (defaults to NY).
LVN Strength: Adjust how "quiet" a price level must be to qualify as a Low Volume Node.
VP Offset: Move the profile further right to clear space for price action.
Disclaimer:
This indicator is a tool for technical analysis and does not constitute financial advice. Always use proper risk management. Indicator

SMC Liquidity Sweep & Fibonacci Extension [MarkitTick]💡 A highly advanced, multi-faceted chart overlay engineered to synchronize market structure analysis, dynamic liquidity tracking, and harmonic Fibonacci projections. By continuously parsing raw price action through a confluence-based scoring system, this indicator provides technical analysts with a unified framework for identifying localized structural shifts, mapping premium and discount pricing zones, and projecting precise forward targets using automated ABC ZigZag structures. It functions as a complete technical environment designed to remove the need for multiple disparate chart overlays.
✨ Originality and Utility
Standard indicators often focus on a single mathematical concept, leaving the analyst to manually stitch together multiple tools to form a cohesive thesis.
This script completely breaks that mold by merging a rigorous market structure shift (MSS) engine with an adaptive, volatility-adjusted Fibonacci structure mapper.
It introduces a highly original dynamic confluence scoring system that grades current setups in real-time based on higher timeframe (HTF) alignment, session timing, and liquidity events.
The inclusion of ATR-adaptive stop losses, order block mitigation tracking, and full webhook alert integration makes it an exceptionally utilitarian system for both discretionary chart analysis and automated alert routing.
Rather than cluttering the screen with infinite historical data, the indicator utilizes a smart-pruning engine that actively hides or greys out mitigated order blocks, filled gaps, and invalidated Fibonacci setups.
🔬 Methodology and Concepts
● Market Structure & Liquidity Engine
The script utilizes a localized loop lookback to identify significant pivot highs and lows, forming the absolute mathematical foundation of its trend analysis.
A liquidity sweep is mathematically confirmed when price pierces a previous structural pivot's extreme but fails to maintain momentum, thus confirming a reversal of localized volume.
Changes of Character (CHoCH) and Breaks of Structure (BOS) are dynamically generated and labeled when price confidently closes beyond confirmed pivot boundaries, establishing a directional bias.
● Fair Value Gaps (FVG) & Order Blocks
Fair Value Gaps are detected by comparing the extreme of the first candle to the extreme of the third candle in a three-bar sequence. If they do not overlap, a pure price imbalance zone is mathematically plotted.
Order Blocks are automatically mapped around the exact origin of a structural break, utilizing an Average True Range (ATR) offset to define the true boundary of the support or resistance zone.
The engine continuously tracks forward price interaction with these zones, automatically removing them from the visual field once mitigated by future price action to maintain chart clarity.
● Automated Fibonacci & ABC Structures
An internal ZigZag algorithm utilizes ATR to filter out baseline market noise, mapping only statistically significant price swings.
Once a valid three-point ABC structure is confirmed (where point C retraces but does not invalidate point A), the script automatically calculates forward projections.
Target extensions are generated using either linear geometric scaling or logarithmic interpolation, providing dynamic profit objectives that adapt to the underlying asset's volatility.
🎨 Visual Guide
● On-Chart Elements
Dashed Lines: Represent significant market structure breaks. Cyan dashed lines indicate a bullish structural shift, while magenta dashed lines indicate a bearish shift.
Text Labels: "CHoCH" or "BOS" text marks structural confirmations directly on the break line. Small yellow "IDM" labels highlight captured inducement levels within the trend.
Shaded Boxes: Cyan and magenta background boxes denote active Bullish and Bearish Fair Value Gaps. Mitigated order blocks turn deep grey if the user chooses not to hide them entirely.
Session Kill Zones: Golden transparent boxes highlight the London session volatility, bright green identifies the New York open, and deep orange maps the Asian range consolidation.
Fibonacci Projections: Dotted and solid lines extend dynamically to the right from valid ABC structures, detailing exact price targets and their associated harmonic or Elliott Wave ratios.
● Comprehensive Confluence Dashboard
Located firmly at the top right of the chart window, this panel continuously updates with the current state of the market environment.
It displays the active trend direction, an aggregate Confluence Score out of 5 (color-coded from a neutral grey to a highly confident vibrant green), and the Higher Timeframe Bias.
Additionally, it provides immediate readouts on the current Premium/Discount pricing equilibrium, the active global trading session, liquidity sweep states, and real-time ATR values.
📖 How to Use
● Trade Qualification and Scoring
Monitor the Confluence Dashboard diligently. A score of 4 or 5 strongly indicates a high-probability alignment across multiple, independent market factors.
Wait for a confirmed liquidity sweep on the chart, followed immediately by a structural break (CHoCH or BOS) that aligns in the direction of the Higher Timeframe (HTF) trend bias.
● Entry Execution and Targeting
Utilize the automatically plotted Order Blocks and Premium/Discount zone quartiles to refine entry locations. Ideal long entries statistically occur within the discount quartile of the defined range.
Set realistic profit targets using the automated Fibonacci extensions. The 1.618 level (often labeled as Wave 3) serves as a primary extended objective for momentum-based moves.
Risk management should be tied directly to the ATR-adaptive stop-loss values calculated internally by the script, ensuring your stops are placed outside the immediate noise floor of the asset.
⚙️ Inputs and Settings
● Market Structure Configuration
Swing Length: Adjusts the raw sensitivity of pivot detection. Higher numeric values create a macro structural view; lower values capture micro intraday structures.
Risk/Reward Ratio: Modifies the theoretical profit targets generated specifically for the internal webhook alert payload system.
● Filters and Environmental Zones
HTF Timeframe: Allows the selection of the specific resolution for the background trend bias filter (e.g., 240 for a 4-hour bias on a 15-minute chart).
Premium / Discount Zone: Toggles the background display of mathematical range quartiles (Premium, Equilibrium, Discount).
Session Kill Zones: Activates time-based highlighting for major global trading hours, strictly aligned to UTC.
● Fibonacci Parameters
Use Logarithmic Scale: Switches all forward projection math to logarithmic scaling, an essential setting for high-volatility assets or deep historical charts.
Structure Invalidation: Deletes or greys out active ABC structures the moment current price completely breaks below the origin point (Point A).
● Webhook Action Routing
Open Long / Short Actions: Allows the user to define exact, customized JSON payload strings to route automated signals seamlessly to third-party execution platforms.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Pivot Extrema and Range Equilibrium Theory
The identification of market structure inherently relies on local extrema calculation. A given point is mathematically considered a pivot high if its peak value is strictly greater than all adjacent values within a defined window.
By mapping these rolling extrema over continuous time series data, the script establishes an active topological trading range.
This range is subsequently divided into exact quartiles to define Premium and Discount pricing equilibriums, rooted in mean-reversion statistical theories.
● Volatility-Adjusted Noise Filtration
The internal ZigZag algorithm utilizes the Average True Range (ATR) to establish a dynamic, mathematically sound noise floor.
ATR evaluates the moving average of absolute price differentials over time, capturing true gap volatility.
A structural swing is only validated by the algorithm if the absolute price differential exceeds a defined, user-adjustable multiple of the ATR, ensuring mathematical robustness against ranging, low-volatility environments that cause false signals in standard pivot models.
● Harmonic Projection Mechanics
Forward Fibonacci extensions are calculated using either a standard linear geometric model or a complex logarithmic scale.
In linear application, a forward target for a given expansion ratio is derived directly from an ABC configuration by extrapolating the absolute distance of the primary impulse leg.
When logarithmic scaling is applied, the mathematical relationship transforms to exponentiate the natural log of the price coordinates.
This aligns the future projections with percentage-based compounding growth models, effectively addressing price scale distortions inherently found in exponential secular trends.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

ATR Fibonacci Trend Envelopes [BigBeluga]ATR Fibonacci Trend Envelopes is a professional-grade trend-following and mean-reversion framework. It combines the volatility-filtering power of Average True Range (ATR) with the mathematical precision of the Fibonacci Golden Ratio to define high-probability "buy/sell pockets" within an established trend.
Equipped with a live Multi-Timeframe (MTF) dashboard, this indicator allows traders to monitor trend alignment across four different time horizons simultaneously, ensuring that local entries are always supported by the broader market structure.
🔵 THE DUAL-ENGINE FRAMEWORK
Volatility-Adjusted Trend Engine: The indicator uses a customizable Moving Average (SMA, EMA, HMA, etc.) combined with an ATR multiplier to create dynamic envelopes. This filters out market noise and only signals a trend change when price decisively breaks the volatility boundary.
Dynamic Golden Pocket (0.618 - 0.786): Unlike static retracements, these Fibonacci levels are calculated relative to the current ATR envelope. The "Pocket" acts as a high-interest zone where price is expected to find support (in uptrends) or resistance (in downtrends).
Predictive Slope Projections: Using the current rate of change, the script projects the trend and Fibonacci levels into the future. This allows traders to visualize where "Value" will be in the coming bars, facilitating better trade planning and order placement.
🔵 CORE ARCHITECTURE
MTF Alignment Dashboard: A real-time table tracks the trend status and "Pocket" proximity across four timeframes. A "BULL" status combined with an "INSIDE" pocket signal across multiple timeframes indicates a high-confluence institutional setup.
Dynamic Transparency Feedback: The visual intensity of the Golden Pocket adapts based on price proximity. As price approaches the mid-point of the pocket, the colors become more saturated, providing an intuitive visual cue that the market is entering a high-probability reversal zone.
Momentum-Driven Basis: The trend baseline (1.0 level) acts as the ultimate anchor. As long as price remains above this volatility-adjusted line in a bullish regime, the trend is considered structurally sound.
🔵 FEATURES
Multi-MA Versatility: Choose from 5 different moving average types to calculate your trend basis, allowing the indicator to be tuned for slow-moving macro trends or fast-moving scalping setups.
Real-Time Level Labels: Clear, real-time labels (0.5, 0.618, 0.786, 1.0) on the right axis provide exact price targets and stop-loss anchors at a glance.
Customizable Projection Length: Adjust how far the indicator looks into the "future," allowing you to anticipate structural shifts before they occur on the chart.
Adaptive UI Positioning: The dashboard can be moved to any corner of the chart and scaled to match your screen resolution, ensuring it never interferes with your technical analysis.
🔵 STRATEGIC APPLICATION
The "Golden" Pullback: In a confirmed Bull trend (Cyan baseline), wait for price to enter the Dynamic Golden Pocket. Use the saturation of the baseFill color to identify the core of the value zone for a long entry.
MTF Confluence Trading: Only take trades when at least three timeframes on the dashboard show the same trend direction. If the 1H and 4H are "BULL" while the 15m enters the "INSIDE" pocket, you have a high-probability trend-continuation setup.
Volatility Breakouts: Monitor the distance between the baseline and the 0.5 Fib. When the ATR-based envelopes contract, a volatility breakout is imminent. A "⦿" label signal combined with a price cross of the 1.0 level marks the start of a new momentum cycle.
Dynamic Exit Planning: Use the projected 0.5 or 0.618 levels as trailing profit targets. Because these levels adjust for both price and volatility, they represent a mathematically "fair" area to take chips off the table.
ATR Fibonacci Trend Envelopes bridges the gap between classic technical analysis and modern volatility modeling. By combining MTF awareness with the natural pull of the Fibonacci ratios, it provides a clear, actionable map for navigating any market condition. Indicator

Indicator

Indicator

Indicator

eXeTRADE Main Dual Score Signal Indicator# eXeTRADE-Main — Dual-Score Signal Indicator
**Trend • Support/Resistance • Higher-Timeframe • Backtest — all in one score**
---
## What it does
eXeTRADE-Main is a multi-factor signal indicator built for medium-to-experienced traders on **1H, 4H, and Daily** timeframes. It calculates **Long and Short scores independently** from five weighted layers — Trend, Support/Resistance, Momentum, Higher Timeframe, and Risk/Reward — and produces three signal grades:
- **Strong Buy / Sell** — score ≥ 90
- **Normal Buy / Sell** — score ≥ 75
- **Range Buy / Sell** — when R:R ≥ 3.0
The indicator is designed for **plan-driven, low-risk trading**. It auto-detects trend lines and parallel channels, ranks the top three S/R levels by strength, runs a weekly Best-MA backtest, and applies a **Proximity Gate** that penalises signals fired too close to a strong opposing level — the most common cause of immediate reversals.
## Key features
- Dual scoring — Long and Short calculated independently (0–100 scale)
- 14-MA + Best-MA weekly backtest (Trade / Long / Short / S/R averages auto-tuned)
- 3-layer trend line + parallel channel auto-detection with break tracking
- Pivot-based S/R with touch counting and violation tracking; top 3 selected by strength
- HTF context — EMA50/200, RSI, pivot, Ichimoku cloud, and volume folded into the score
- **Proximity Gate** — soft-block or hard-block when entry sits within 0.5×ATR of opposing S/R
- Built-in backtest engine with S/R trailing stop
- Position-management panel for manual entry / TP / SL tracking
- Single consolidated master alert (one alert covers every signal and trail event)
## How to read the chart
Numbered markers on the cover image:
1. **Score Panel** — current Long/Short scores with delta arrows, ATR, and trail status
2. **Top S/R Levels** — three strongest levels, ranked by point score
3. **Backtest Results** — trade count, win/loss, win rate, total P/L, max drawdown
4. **Buy Signal** — green triangle marks Strong / Normal / Range Buy entries
5. **Trail Exit** — yellow × marks where the trailing stop was hit
6. **Auto Trend Lines** — multi-layer trend with parallel channels
## Important settings
- **Backtest Period** — 1 Mo / 3 Mo / 6 Mo / 1 Yr / All
- **Entry Mode** — Single (one position) or Multi (pyramiding)
- **Signal Levels** — Strong (default 90) and Buy/Sell (default 75) thresholds
- **Proximity Gate Mode** — Off / Warning / Soft Block / Hard Block
- **HTF Auto-Bump** — automatically lifts the HTF reference one level if the chart TF matches HTF
## Alerts
A single **master alert** is recommended — it fires for every signal and trail event in one channel. Individual alerts (Strong Buy, Strong Sell, Trail Hit, Channel Break, etc.) are also available if granular control is preferred.
## Best on
4H and Daily timeframes for **Forex pairs, XAUUSD, XAGUSD, and major equities**. Not recommended below 1H — short-timeframe noise reduces score reliability.
## Disclaimer
This indicator is a decision-support tool, not financial advice. **Always define stop-loss and exit plan before entry.** Past performance does not guarantee future results. Trade at your own risk.
---
*Comments and feedback are welcome.*
Indicator

Indicator

Adaptive Fibonacci Trailing System [WillyAlgoTrader]🚀 Adaptive Fibonacci Trailing System (AFT) is a premium overlay toolkit that combines a regime-aware adaptive trailing stop, a dynamic Fibonacci premium/discount cloud, a 6-factor confidence grading engine, full SL/TP risk management with break-even logic, and a built-in backtest tracker — all in one indicator. Every signal arrives with a clear direction, a confidence grade (A+ / A / B / C), a recommended position size, and pre-placed stop-loss and three take-profit levels.
This is not a static trailing stop. This is not another Fibonacci retracement tool you have to draw by hand. This is a complete trade-management system that automatically detects market structure, classifies the current regime (Trending / Ranging / Volatile), adapts its stop placement to the conditions, scores every setup from 0 to 100%, and tracks every closed trade so you can see whether your settings actually work on your market.
🎯 WHO THIS IS FOR
— Trend traders who want a structural trailing stop that adapts to volatility instead of trailing a fixed percentage
— Swing traders who need clean Buy/Sell signals with pre-calculated SL, TP1, TP2, TP3
— Day traders and scalpers who need fast regime detection so they don't trade trend signals in a ranging market
— Discretionary traders who want a confidence score to filter low-quality setups
— Systematic traders who want JSON webhook alerts for automation
— Anyone tired of generic Fibonacci tools that ignore market context
— Traders who want a built-in backtest tracker to validate the system on their own market and timeframe
💎 WHY TRADERS CHOOSE THIS INDICATOR
✅ Adaptive trailing stop — not a fixed ATR multiple.
The trailing stop is anchored to Fibonacci levels of the most recent swing range and adjusts itself based on the detected regime. In trending markets it widens to let winners run. In ranging markets it tightens to exit fast. In volatile markets it sits at the midpoint. You don't choose a static distance — the indicator chooses the right distance for current conditions.
✅ Built-in market regime detection.
Every bar is classified as Trending , Ranging , or Volatile using ADX and a volatility ratio (current ATR vs. 50-bar average). Hysteresis is applied so the regime doesn't flicker on borderline values. You always know what kind of market you're in before you take the trade.
✅ Dynamic Fibonacci cloud.
A premium/discount zone is drawn live between the 0.382 and 0.618 levels of the current swing structure. The cloud re-anchors automatically every time the structure changes — no manual drawing, no stale levels from last week. Three visual styles available: Gradient, Solid, or Pulsing (brightens when price approaches the 0.5 inflection point).
✅ Two signal modes for two trader styles.
Trail Flip mode fires signals only when the adaptive trail flips direction — fewer signals, strong trend conviction. 0.5 Cross mode fires when price crosses the Fibonacci 0.5 (premium/discount inflection) with full triple-confirmation — earlier entries, more signals. The 0.5 Cross mode also has three strictness levels (Strict / Relaxed / None) so you can dial signal frequency to match your style.
✅ 6-factor confidence score on every signal.
Every Buy/Sell signal comes with a percentage score and a letter grade. Grades range from D (poor) to A+ (premium setup). The score combines structure strength, regime alignment, ADX strength, volume, volatility favorability, and Fibonacci/SMA50 confluence — weighted into a single number you can filter on. Set a minimum confidence threshold and weak signals are blocked automatically.
✅ Adaptive position sizing.
Set your base risk per trade once. The indicator scales it by signal grade: C grade gets 0.5× base, B grade 0.75×, A grade 1.0×, A+ grade 1.5×. You take small positions on average setups and larger positions on premium setups — automatically. Recommended risk % is shown live in the dashboard.
✅ Full risk management with one-click presets.
Choose Conservative, Balanced, Aggressive, Scalping, or Custom. Every Buy/Sell signal automatically draws Entry, SL, TP1, TP2, TP3 lines on the chart with price and percent-from-entry labels. Lines extend forward and update live until the trade closes.
✅ Break-even trail after TP1.
When TP1 is hit, the stop-loss automatically moves to entry. Your remaining position becomes risk-free. The original SL line dims to show it's no longer active, and the entry label updates to "→ SL (BE)" so you always know where the real stop is.
✅ Built-in backtest tracker — per-grade.
Every closed trade is tracked: total trades, wins, losses, win rate, average R, profit factor, total R. Then it's broken down by confidence grade so you can see whether A+ signals actually outperform B signals on your market. If they don't, you know to retune. The tracker auto-resets when you change critical inputs so old stats never pollute new tests.
✅ Triple-confirmation breakout filter.
Direction changes require body ratio + ATR-based penetration + regime gate. No more wick-based fakeouts triggering position flips. You can dial the strictness for both modes independently.
✅ Universal — works on every market and timeframe.
Forex, crypto, stocks, futures, indices. Scalping (1m, 5m), intraday (15m, 1h), swing (4h, 1D), position (1W). The structure engine adapts to whatever pivot length you set. Volume is auto-detected and gracefully ignored on FX where it's unreliable.
✅ Professional dashboard with full live state.
At a glance: Regime, ADX, Volatility ratio, Signal mode, Confidence + grade, Suggested risk %, Direction, Trail Stop price, Timeframe, full SL/TP/RR/Risk block, and a complete Backtest section with per-grade breakdown.
✅ Alerts in plain text or JSON for webhooks.
Buy / Sell / SL hit / TP1, TP2, TP3 hit / Break-even activated. JSON payload includes ticker, timeframe, price, SL, all three TPs, R:R, regime, mode, confidence, grade, and recommended risk % — ready to feed any automation pipeline.
🚀 HOW IT CHANGES YOUR WORKFLOW
Before: You draw Fibonacci retracements by hand on every swing. You guess where to place the stop — fixed ATR multiple, recent low, gut feel. You take signals in any market without checking if it's trending or ranging. You have no idea whether your "best" setups actually win more often. You miss break-even opportunities and watch winners turn into losers. You manage three TPs in your head and forget which one was already hit.
After: You add the indicator. The Fibonacci cloud is already drawn — re-anchored to the current swing automatically. The dashboard tells you the regime, the signal grade, and the recommended risk % before you click Buy. SL, TP1, TP2, TP3 are pre-placed and labeled with prices and percentages. When TP1 hits, your stop is moved to entry without you touching anything. Every closed trade is logged and broken down by grade. After 50 trades, you know exactly which signal mode and confidence threshold work on your market.
What used to take 5 minutes of manual setup per trade now takes 5 seconds — read the dashboard, decide.
📖 HOW TO USE
🎯 Quick start (for beginners):
1. Add the indicator to your chart (any market, any timeframe).
2. Look at the dashboard in the top-right corner. It tells you the regime (Trending / Ranging / Volatile), the current confidence score, and the suggested risk %.
3. Wait for a "▲ Long " or "▼ Short " label to appear under or above a candle. The grade letter (C, B, A, A+) tells you the quality of the signal.
4. The indicator automatically draws Entry, SL, TP1, TP2, TP3 lines on the right side of the chart with prices and percentages.
5. Place your trade with the suggested risk % from the dashboard. Use the SL and TP levels exactly as drawn.
6. When TP1 hits (line turns cyan with a ✓), your SL automatically moves to entry — your trade is now risk-free. Let it run to TP2 and TP3.
7. The Backtest panel at the bottom of the dashboard tracks every closed trade. Watch your stats grow.
👁️ Reading the chart:
— 🟢 Green "▲ Long " label = Buy signal with grade letter
— 🔴 Red "▼ Short " label = Sell signal with grade letter
— 🟡 The colored cloud between two Fib lines = the current premium/discount zone
— The middle dotted line (Fib 0.5) = the inflection between premium and discount
— Solid colored line that follows price = the adaptive trailing stop (green when long, red when short)
— Blue dotted line = your entry price
— Red solid line = your stop-loss
— Green dashed lines (3 of them) = TP1, TP2, TP3
— When a TP is hit, its line turns cyan and the label gets a ✓ check mark
— When break-even activates, the SL line dims and the entry label becomes amber with "→ SL (BE)"
📊 Dashboard fields:
— Regime : current market state (Trending, Ranging, Volatile)
— ADX : trend strength number
— Vol Ratio : how volatile the market is right now (1.0 = average)
— Signal : which signal mode is active and its strictness
— Confidence : the score and grade of the most recent / pending signal
— Sugg. Risk : the recommended position size as % of account
— Direction : current trail direction (Bullish / Bearish / Flat)
— Trail Stop : the live trailing stop price
— TF : your current timeframe
— SL / TP1 / TP2 / TP3 : active trade levels (BE @ price when break-even is on)
— R:R : risk-to-reward ratio at TP1
— Risk : distance from entry to SL as % of price
— Backtest section : Trades, Win Rate, Avg R, Profit Factor, Total R
— By Grade : same stats broken down by A+ / A / B / C / D
💡 Trading ideas:
— Trend-follower setup : Use Trail Flip mode + Conservative risk preset on 1H or 4H. Take only A and A+ signals. Let trades run to TP3.
— Premium/discount swing setup : Use 0.5 Cross + Strict + Balanced risk on 15m or 1H. The 0.5 cross catches reversals at the Fibonacci inflection point.
— Scalping setup : Use 0.5 Cross + Relaxed + Scalping preset on 1m or 5m. Lower the minimum confidence to 50%. Exit at TP1 or TP2.
— Confirmation overlay : Run AFT alongside your existing system. Only take your trades when AFT confidence shows B or higher in the same direction.
— Beginner-safe mode : Set minimum confidence to 75 (A grade or above). Use Conservative risk preset. Let break-even handle most management.
— Backtest-then-trade workflow : Toggle Reset Backtest, scroll the chart back, let the indicator collect 30+ trades, check the per-grade stats, then start trading the grades that perform best.
🔧 Tuning guide:
— Too many signals? Increase Min Confidence (try 60 or 75), or switch from "None" to "Strict" cross strictness, or use Trail Flip mode.
— Too few signals? Lower Min Confidence (try 40 or 50), or set strictness to "Relaxed" or "None".
— Stop too tight? Switch trailing mode from Aggressive to Balanced or Conservative, or pick the Conservative risk preset.
— Stop too wide? Switch to Aggressive trailing mode or Aggressive / Scalping risk preset.
— Whipsaw on ranging markets? Increase Breakout Confirmation to 0.3 or 0.5, raise Min Body Ratio to 0.6.
— Want only premium setups? Set Min Confidence to 90 (A+ only). Expect 1-3 signals per week on most markets.
⚙️ KEY FEATURES
🏛️ Structure Engine:
— Score-filtered swing detection (every swing is rated by ATR-normalized impulse and volume)
— Adjustable pivot length (3 to 50 bars)
— Memory of the last 5 swings for stable Fibonacci anchoring
— Optional swing labels showing the score number
📡 Market Regime Engine:
— ADX-based trend detection with adjustable threshold
— Volatility ratio (current ATR vs. 50-bar average) for volatile-state detection
— Hysteresis on both thresholds — no regime flicker
— Optional background highlight for 10 bars after each regime change
🎯 Trailing Stop Engine:
— 4 modes: Aggressive (tight), Balanced, Conservative (wide), Adaptive (auto-adjusts to regime)
— Volatility-inverse adjustment: tighter in low vol, wider in high vol
— Direction-locked update: longs only lift the stop, shorts only lower it
— Triple-confirmation breakout filter (body ratio + ATR penetration + regime gate)
🌀 Fibonacci Cloud:
— Auto-anchored to the latest valid swing high/low
— 3 visual styles: Gradient, Solid, Pulsing
— Optional confluence markers when a Fib level aligns with SMA50
— Toggleable Fib level lines (0.382 / 0.5 / 0.618)
🛡️ Risk Management:
— 5 presets: Conservative, Balanced, Aggressive, Scalping, Custom
— ATR-based stop sizing with adjustable multiplier
— Three take-profit levels with adjustable risk-multiples
— Break-even trail toggle (moves SL to entry on TP1 hit)
— Live SL/TP lines with price + percent-from-entry labels
— Position lock: new signals are blocked while a trade is active
🎓 Confidence & Sizing Engine:
— 6-factor scoring (structure / regime / ADX / volume / volatility / confluence)
— 5 grades: D / C / B / A / A+
— Minimum confidence filter (0–100%) blocks weak signals
— Adaptive position sizing toggle scales risk by grade
— Adjustable base risk % per trade
📈 Backtest Tracker:
— Tracks every closed trade (closed by SL or TP3)
— Win/loss outcome model with TP1/TP2/TP3 partial-success recognition
— Win rate, average R, profit factor, total R
— Per-grade breakdown (validate the confidence engine on your market)
— Auto-reset on critical input changes
🎨 Visual System:
— Auto / Dark / Light theme detection
— Configurable label and dashboard font sizes
— Compact Pro-style design — no chart clutter
— Optional WillyAlgoTrader watermark
🔔 Alert System:
— Buy / Sell signals with full payload
— SL Hit, TP1/TP2/TP3 Hit, Break-even Activated
— Plain text or JSON webhook format
— Bar-close confirmed (no repainting)
📊 Dashboard:
— 5 position options (corners + middle right)
— 3 font sizes
— Adapts to your visible feature set (collapses sections that aren't enabled)
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals fire only on confirmed bar close. Pivots use equal left/right lookback (the swing point is in the past by N bars — this is delayed confirmation, not repainting). Alerts use alert.freq_once_per_bar_close.
— 📐 The trailing stop and Fibonacci anchors require at least two opposing swings in memory. Fresh charts and new symbols need a brief warm-up period (typically 50 bars).
— 📐 On markets with no reliable volume data (most FX pairs), the volume-confirmation factor is replaced by a neutral default. The indicator works fully on FX.
— ⚖️ The backtest tracker counts only confirmed closures (SL hit or TP3 hit). Partial profits at TP1/TP2 are recognized in the win/loss outcome but realize at the level reached when the trade ultimately closes. Real-trading slippage, spread, and fees are not modeled.
— ⚖️ The confidence score is a quantitative filter, not a prediction of profit. It reflects setup quality based on the inputs available — not future performance.
— 🛠️ This is an analysis and trade-management tool, not an automated trading bot. It detects structure, classifies regime, scores setups, places SL/TP levels, and tracks outcomes — trade decisions remain yours .
— 🌐 Universal compatibility — works on all markets (Forex, crypto, stocks, futures, indices) and all timeframes from 1m to 1M. Indicator

Adaptive Fibonacci Compass [JOAT]Adaptive Fibonacci Compass
Overview
Adaptive Fibonacci Compass is a dynamic, pivot-anchored Fibonacci retracement and extension system built in Pine Script v6. It continuously detects the most recent confirmed swing pivot pair, grades the pivot's ATR-normalised strength, checks for Break of Structure or Change of Character on the swing axis, then draws a live Fibonacci grid of seven standard levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0) with fill-highlighted Optimal Trade Entry zones (OTE: 0.382–0.618 and 0.618–0.786) — all rendered at barstate.islast using the delete-before-create pattern for zero ghost-drawing artifacts.
Why Adaptive Fibonacci?
Static Fibonacci tools require manual anchor selection, which introduces subjectivity and results in different traders drawing the same move differently. Adaptive Fibonacci Compass removes this ambiguity by algorithmically detecting the pivot pair that defines the most recent significant swing and anchoring the grid there automatically. The grid updates whenever a new, stronger pivot forms — keeping the Fibonacci reference aligned with the current market structure without any manual intervention.
Pivot Detection and ATR Strength Grading
Swing pivots are detected using ta.pivothigh() and ta.pivotlow() with configurable left and right bar confirmation windows (default 10/10). When a new pivot forms, its ATR-normalised strength is computed:
Strength = (pivotHigh - pivotLow) / ATR(14)
This ratio grades the swing on a universal scale independent of price level or instrument. Pivots grading above a configurable minimum strength (default 1.5 ATR) are accepted as valid Fibonacci anchors. Smaller price structures that do not meet the threshold are ignored, preventing the grid from anchoring to noise.
BOS / CHoCH Detection on Pivot Axis
Each time a new pivot pair is accepted, the engine checks whether the new swing extreme exceeds the prior swing extreme of the same type:
- BOS Up: New swing high exceeds the previous swing high — structural expansion to the upside
- BOS Down: New swing low is below the previous swing low — structural expansion to the downside
- CHoCH: A swing extreme that forms against the prevailing structure — e.g., a new swing high forming when prior context was bearish
BOS and CHoCH labels are stamped at the pivot level to provide structural context for interpreting the Fibonacci grid.
Dynamic Fibonacci Grid (7 Levels)
The grid spans from the last confirmed swing low to the last confirmed swing high (for bullish pivots) or the reverse (for bearish pivots). Seven retracement levels are drawn as horizontal lines:
- 0.0 (swing origin) — white/neutral
- 0.236 — subtle grey
- 0.382 — teal (start of OTE zone)
- 0.5 — gold (midpoint)
- 0.618 — teal (end of deep OTE zone)
- 0.786 — purple
- 1.0 (swing extreme) — white/neutral
Each level label shows both the ratio and the exact price value.
Optimal Trade Entry (OTE) Fill Zones
Two fill zones are highlighted as semi-transparent boxes between specific Fibonacci levels, representing the confluence areas where institutional entries are statistically most concentrated:
- OTE 0.382–0.618: The standard OTE zone — the area of highest probability for pullback continuation trades
- OTE 0.618–0.786: The deep OTE zone — commonly used for higher-conviction reversal entries where the move has retraced deeply into the prior swing
Both zones are rendered with directional colour (teal for bullish swings, red for bearish swings) at 80–85% transparency.
Live Pivot Tracking and Grid Refresh
On every bar, the indicator tracks whether price is forming a new potential extreme beyond the current grid's anchor. When a new confirmed pivot qualifies (passes the ATR strength threshold), the previous grid is fully deleted (all lines, labels, and boxes) and rebuilt from the new anchor points. The delete-before-create pattern at barstate.islast ensures no duplicate or orphaned drawing objects accumulate over the session.
Inputs Reference
- Pivot Left Bars (10) — left confirmation bars for swing detection
- Pivot Right Bars (10) — right confirmation bars for swing detection
- Min ATR Strength (1.5) — minimum swing size in ATR units to accept as a valid anchor
- Show Fib Grid — toggles the full Fibonacci grid
- Show OTE Zones — toggles the 0.382–0.618 and 0.618–0.786 fill zones
- Show BOS / CHoCH Labels — toggles structural labels on pivot extremes
- Show Level Labels — toggles price and ratio annotations on each Fibonacci line
- Extend Lines (bars, default 30) — how far right the grid lines extend from the current bar
- Theme: Dark, Light, Auto
How to Use
1. Apply to any liquid market on any timeframe. The indicator needs at least (PivotLeft + PivotRight) * 3 bars to warm up.
2. The gold 0.5 level and teal 0.382/0.618 lines define the primary trade management area. In a confirmed uptrend, look for price to pull back into the OTE 0.382–0.618 zone with a bullish reaction for long entries.
3. The deep OTE 0.618–0.786 zone is valid for entries only in strong, high-momentum swings where the pullback is orderly and accompanied by decreasing volume.
4. Treat the 0.0 and 1.0 levels as structural extremes. A confirmed close beyond the 1.0 level triggers a new BOS and should cause the grid to reload on the next qualifying pivot.
5. Use BOS labels to confirm that the current Fibonacci swing direction aligns with the broader structural bias from a higher timeframe.
Non-Repainting Design
Pivots are only detected once the full right-bar confirmation period has elapsed. The grid is always anchored to confirmed historical pivots. No drawing is created based on the current in-progress bar. All grid refreshes occur at barstate.islast using confirmed pivot data.
Limitations
- The indicator anchors to the most recent qualifying pivot pair. In multi-week trends with no significant retracement, the grid may anchor to a very old pivot that is no longer contextually relevant.
- The minimum ATR strength filter helps but does not eliminate all noise pivots on highly volatile instruments. Increasing the threshold on crypto assets is recommended.
- Fibonacci levels are probabilistic reference zones, not guaranteed reversal or support/resistance levels. Confluence with other structure (OBs, PDH/PDL, volume profile POC) significantly increases their reliability.
- The grid does not account for higher-timeframe Fibonacci structures. Always check alignment with HTF pivots manually.
Disclaimer
This indicator is for educational and informational purposes only. Fibonacci retracements are historical price relationships and do not predict future market behaviour with certainty. Always use proper risk management and conduct your own analysis.
Made with passion by officialjackofalltrades
Indicator
