DKJ H/L Levels 2.0Previous High & Low Levels — 4H | Daily | Weekly | Monthly
Price action trading, Support & resistance, Mean reversal.
Updated version of DKJ H/L Levels
A clean, minimal indicator that plots the previous high and low for four key timeframes — 4H, Daily, Weekly, and Monthly — directly on your chart.
Levels are displayed as horizontal lines extending left from the current bar, with price labels neatly aligned at the right edge. Designed to give you an immediate read on the most relevant institutional reference points without cluttering the chart.
Features:
Previous 4H, Daily, Weekly and Monthly highs and lows
Fully adjustable line width, style, and length
Customisable colours per timeframe
Label size and vertical position (above/below) controls
Built-in alerts for price crossing any level
Best used on: 4H charts and below — 30m and 1H being the sweet spot.
Setting alerts:
Right-click the indicator name on your chart and select Add alert, or open the Alerts panel and create a new alert
In the Condition dropdown, select DKJ H/L Levels
Choose Any alert() function call — this covers all timeframes and directions in one alert
Set your notification method and click Create
Each alert will fire once per bar and tell you exactly which level was crossed and in which direction.
Indicator

MTF Fair Value GapsMulti-Timeframe Fair Value Gaps (MTF-FVG) with Smart Mitigation
Overview
The Multi-Timeframe Fair Value Gaps (MTF-FVG) indicator is a high-performance price action tool designed for ICT and SMC (Smart Money Concepts) traders. Unlike standard FVG indicators that limit you to your current view, this script allows you to overlay gaps from up to five additional timeframes simultaneously, providing a "birds-eye view" of institutional liquidity without ever switching charts.
Key Features
True MTF Integration: Visualize 5m, 15m, 1h, 4h, and Daily FVGs (or your own custom selection) directly on a 1-minute chart.
Institutional Alignment: Each FVG is drawn with precision, starting exactly at the wick of the first candle in the 3-bar sequence for professional-grade alignment.
Smart Mitigation Engine: To prevent "chart clutter," the indicator automatically detects when price has traded through a zone. Once a gap is mitigated, the script cleans up the box in real-time.
Visual Midpoints: Every gap includes an optional dotted midpoint line (Consequent Encroachment), a key level for entries and institutional reactions.
Fully Customizable Aesthetic: Includes a refined color palette by default (Grey, Orange, Yellow, Blue, Purple) with 10% shading to ensure your price action remains the focal point.
How to Use
Confluence Trading: Look for "Stacked FVGs"—areas where a Higher Timeframe (HTF) gap overlaps with a Current Timeframe (CTF) gap. These are high-probability zones for reversals or continuations.
Liquidity Re-entry: Use the dotted midpoint line to identify the 50% level (CE) of the gap, where institutions often seek to fill orders.
Trend Confirmation: Use HTF gaps to determine the higher-level bias. If a Daily FVG is sitting above price, look for bullish setups on lower timeframes to fill that draw on liquidity.
Settings
Threshold %: Filter out tiny gaps by setting a minimum percentage size relative to price.
Box Extension: Control how far to the right the FVG zones project.
Timeframe Toggles: Individually enable or disable the 5 HTF slots.
Mitigation Toggle: Choose between keeping historical gaps for reference or auto-deleting them for a cleaner look.
Developer Note
Built on Pine Script® v6 with dynamic_requests enabled, this indicator is optimized for speed and accuracy. It respects the core logic of the original LuxAlgo FVG detection while expanding it into a powerful multi-timeframe suite.
Disclaimer: Trading involves significant risk. This indicator is a tool to assist in technical analysis and does not constitute financial advice. Indicator

ICT/SMC Sessions + SMT DivergencePro ICT/SMC Structural Suite: Sessions, SMT Divergence & RTH Gaps
Overview
The ICT/SMC Structural Suite is a highly optimized, "pure structure" indicator designed for traders utilizing Inner Circle Trader (ICT) and Smart Money Concepts (SMC). Unlike traditional indicators that rely on lagging oscillators or moving averages, this script focuses entirely on Time and Price Geometry.
It provides an all-in-one visual overlay for institutional trading sessions, Opening Prices, Fair Value Gaps (FVGs), real-time SMT Divergences, and a highly advanced Regular Trading Hours (RTH) Gap engine. It is engineered to be lightweight, incredibly fast, and meticulously anchored to "America/New_York" time to natively handle Daylight Saving Time (DST) shifts without user intervention.
Core Features & Technical Breakdown
1. Asset-Aware RTH Gap Engine
One of the most complex challenges in charting is accurately mapping the daily RTH gap on continuous Extended Trading Hours (ETH) charts, especially over the weekend.
The Logic: This script uses a custom state-management system to bypass the Sunday overnight session on Futures. It isolates the true Regular Trading Hours (session.regular), explicitly locking the Friday close and drawing a dynamic gap box to the Monday 09:30 AM open.
Asset-Aware: The engine dynamically reads syminfo.type. If you are trading Futures (e.g., ES/NQ), it tracks the close until 16:15 EST. If you switch to Equities (e.g., AAPL/NVDA), it automatically snaps back to 16:00 EST, preventing after-hours earnings volatility from breaking your gap levels.
Quartiles: Automatically calculates and plots the 25%, 50% (Consequent Encroachment), and 75% levels inside the gap.
2. Real-Time Multi-SMT Divergence
Traditional divergence indicators wait for a candle to close before signaling. This script utilizes a custom real-time evaluation engine.
The Logic: The script establishes historical swing points using a 5-bar pivot lookback (ta.pivothigh / ta.pivotlow). It then compares your active, live tick against those historical pivots. If the current ticker sweeps a previous high/low, but your correlated assets fail to do so, a real-time label flashes on the chart.
Customization: Supports up to 5 concurrent assets. Includes a built-in VIX tracker (auto-inversed) and 4 customizable tickers (e.g., NQ, YM, DXY) with toggleable inversion logic.
3. Institutional Time Sessions
Visualizes key accumulation and distribution zones via clean, customizable background boxes.
Tracks Equity Pre-Market (EPM), London, Asia, and CBDR (Central Bank Dealers Range).
DST Proof: All sessions are mathematically forced to America/New_York time in the background, meaning your 09:30 AM open and macro times will never drift when Daylight Saving Time begins or ends.
4. 1st AM FVG Detector
Automatically detects and highlights the very first Fair Value Gap (FVG) that forms exclusively during the opening volatility window (09:31 AM – 10:30 AM EST). This box is extended forward in time as a high-probability draw on liquidity or retracement POI for the remainder of the session.
5. ICT Macros & Opening Prices
Macros: Highlights the 14 standard ICT Macro windows (e.g., 09:50-10:10, 10:50-11:10) with non-intrusive, bottom-anchored X-axis labels to keep your price action completely uncluttered. Includes an optional End-of-Day (15:15) macro toggle.
True Daily Opens: Plots the Midnight (00:00) Open, NY (08:30) Open, and Equity (09:30) Open as extended horizontal rays.
6. Higher Timeframe (HTF) Liquidity Levels
Automatically pulls and plots the Previous Day High/Low (PDH/PDL) and Previous Week High/Low (PWH/PWL) without requiring you to change timeframes.
How to Use This Script
This indicator is not a "buy/sell" signal generator; it is a structural mapping tool designed to give you contextual awareness of institutional order flow.
Trading the RTH Gap: The RTH gap box acts as a powerful magnetic zone. Traders can look for price to rebalance into the gap, using the internal 50% line (Consequent Encroachment) as a target or a bounce level.
Validating Reversals with SMT: When price pushes into a Higher Timeframe Liquidity Level (like PDH or PWL), look for an SMT Divergence label to appear. If ES sweeps the high but NQ fails to make a higher high, the divergence adds high-probability confluence to a reversal setup.
Opening Price Lenses: Use the Midnight and 08:30 Opens as your daily bias gauge. If price is above the Midnight Open, the daily profile is expansive (bullish); look for manipulation moves below the open to accumulate longs (Judas Swing).
Under the Hood (For Pine Geeks)
This script was heavily refactored for enterprise-grade execution speed. Repetitive drawing logic has been extracted into single-pass functions, state arrays are trimmed using optimized while loops, and request.security calls are fully gated by boolean toggles to prevent API overhead when custom tickers are disabled. Indicator

SMC Crypto Swing Sniper (MTF Edition)The "SMC Crypto Swing Sniper" is an hybrid trading system. It´s evolved it from a pure price-action script into a data-driven order flow and momentum powerhouse.
1. The Macro Compass (Trend & Momentum)
Moving away from guessing candle patterns to using hard data:
The 4H Dashboard: Tracks Bitcoin, BTC Dominance, USDT Dominance, and your current ticker on a fixed 4H basis. It combines Trend (EMA crossover), RSI, MACD, and ADX/DMI. This instantly tells you if the market has real momentum (BULL/BEAR when ADX > 25) or is just chopping sideways (WEAK when ADX < 25).
Fixed Moving Averages: The 4H EMA 50, 4H WMA 200, and the Monthly VWAP dictate your overall macro bias. They are your ultimate directional filter (e.g., only look for long setups if the price is above these levels).
2. The Battlefield (SMC Zones & S/R)
This is the Price Action core that tells you exactly WHERE to look for trades:
Static 1H Price Filter: Three horizontal lines (Resistance / Mid / Support) that strictly lock onto the high, low, and average of the last 50 hours, regardless of what timeframe you are currently viewing. This is your local playing field.
Clean Order Blocks & FVGs: The script dynamically draws institutional zones with an elegant 80% transparency and no borders. They auto-delete to keep your chart clean only when truly invalidated (price breaking completely through an OB or fully filling a gold FVG).
Market Structure: Automated BOS (Break of Structure) and CHoCH (Change of Character) lines pinpoint local trend shifts.
3. The Order Flow Trigger (Sniper Execution)
Here, we measure real money exchanging hands to time the entry:
Whale Volume: Candles paint white when the volume spikes 200% above the 20-period moving average, highlighting Smart Money stepping in.
Rolling CVD (Cumulative Volume Delta): Your strongest weapon. Instead of endlessly adding volume history, it uses a rolling 21-bar period with a sharp sensitivity (Fractal = 2). When price makes a new low, but selling pressure is visibly dying out in the CVD, the script prints a Divergence Arrow. This is your early warning system!
Your Trading Workflow Summarized:
Check the Dashboard/MAs for direction -> Wait for price to tap an SMC Zone or 1H S/R line -> Pull the trigger when CVD Divergence or Whale Volume confirms the reversal. Indicator

Pressure Zone Analyzer [JOAT]Pressure Zone Analyzer
Introduction
The Pressure Zone Analyzer is an advanced open-source support/resistance indicator that combines dynamic pivot-based zone detection, Fibonacci level analysis, institutional level tracking, zone strength scoring, and multi-timeframe analysis into a comprehensive pressure zone intelligence system. This indicator helps traders identify where significant buying and selling pressure exists, where institutional levels act as magnets for price, and which zones have the highest probability of holding.
Unlike basic support/resistance indicators that draw static horizontal lines, this analyzer dynamically tracks pressure zones based on pivot points, calculates zone strength using volume, touches, and age, integrates Fibonacci golden zone analysis, monitors institutional weekly/daily levels, and provides real-time position assessment. The indicator is designed for traders who understand that not all support/resistance levels are equal and that zone quality determines trading success.
Why This Indicator Exists
This indicator addresses the challenge of identifying high-quality support and resistance zones in real-time. Markets respect some levels and ignore others. By systematically analyzing zone characteristics, this indicator reveals:
Dynamic Pressure Zones: Identifies support and resistance zones based on pivot points with automatic updates
Zone Strength Scoring: Calculates zone quality (0-100%) using volume, touch count, and age
Fibonacci Integration: Tracks key Fibonacci levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) and golden zone (50-61.8%)
Institutional Levels: Monitors weekly and daily highs/lows that act as institutional reference points
Premium/Discount Zones: Identifies institutional buying zones (discount 0-30%) and selling zones (premium 70-100%)
Multi-Timeframe Analysis: Tracks higher timeframe levels for additional confluence
Position Assessment: Provides real-time analysis of price position relative to all zones
Each component provides different zone intelligence. Pivot-based zones show where price reversed, strength scoring shows zone quality, Fibonacci shows mathematical levels, institutional levels show reference points, premium/discount shows institutional bias, and position assessment shows current market context. Together, they create a comprehensive pressure zone system.
Core Components Explained
1. Dynamic Pivot-Based Zone Detection
Pressure zones are identified using pivot highs and lows:
float pivotHigh = ta.pivothigh(high, pivotLength, pivotLength)
float pivotLow = ta.pivotlow(low, pivotLength, pivotLength)
When a pivot high is detected, a resistance zone is created:
if not na(pivotHigh) and barstate.isconfirmed
PressureZone newZone = PressureZone.new()
newZone.zoneLine := line.new(bar_index - pivotLength, pivotHigh, bar_index + 50, pivotHigh,
color=resistanceColor, width=2, extend=extend.right)
newZone.price := pivotHigh
newZone.startBar := bar_index - pivotLength
newZone.zoneType := "resistance"
newZone.volumeAtZone := volume
Similarly for support zones with pivot lows. Zones are stored in arrays and automatically managed (old zones are removed when maximum count is reached).
Zone thickness is calculated as a percentage of price:
calcZoneThickness(float price, float thicknessPercent) =>
float thickness = price * (thicknessPercent / 100)
Default thickness is 0.5% of price, creating a zone rather than a single line. This accounts for the fact that support/resistance is a zone, not a precise price level.
2. Zone Strength Scoring System
Zone strength is calculated using three weighted components:
calcZoneStrength(int touches, float volAtZone, int age, float volWeight, float touchWeight, float ageWeight) =>
// Volume score (0-1)
float avgVolume = ta.sma(volume, 50)
float volScore = avgVolume > 0 ? math.min(volAtZone / avgVolume, 3.0) / 3.0 : 0.5
// Touch score (0-1)
float touchScore = math.min(touches / 5.0, 1.0)
// Age score (0-1) - newer zones score higher
float ageScore = math.max(1.0 - (age / 500.0), 0.0)
// Weighted combination
float strength = (volScore * volWeight) + (touchScore * touchWeight) + (ageScore * ageWeight)
Default weights:
Volume Weight: 40% - Higher volume at zone formation indicates institutional interest
Touch Weight: 30% - More touches indicate stronger zone
Age Weight: 30% - Newer zones are more relevant than old zones
Strength interpretation:
> 70%: Strong zone - high probability of holding
50-70%: Moderate zone - decent probability of holding
< 50%: Weak zone - lower probability of holding
The indicator tracks touches in real-time:
for zone in resistanceZones
if inZone(high, zone.price, thickness)
zone.touches += 1
zone.volumeAtZone := math.max(zone.volumeAtZone, volume)
Each touch increases zone strength, and high-volume touches increase it further.
3. Fibonacci Level Analysis
Fibonacci levels are calculated based on recent swing range:
calcFibLevels(float high, float low) =>
float priceRange = high - low
float fib236 = low + (priceRange * 0.236)
float fib382 = low + (priceRange * 0.382)
float fib500 = low + (priceRange * 0.500)
float fib618 = low + (priceRange * 0.618)
float fib786 = low + (priceRange * 0.786)
The indicator focuses on key levels:
50% (0.5): Equilibrium level - often acts as support/resistance
61.8% (0.618): Golden ratio - strongest Fibonacci level
Golden Zone is calculated as the area between 50% and 61.8%:
calcGoldenZone(float high, float low) =>
float priceRange = high - low
float goldenTop = low + (priceRange * 0.618)
float goldenBottom = low + (priceRange * 0.5)
The golden zone represents optimal entry area with best risk:reward ratio. Entries in the golden zone allow tight stops below 50% with targets at swing high.
4. Institutional Level Tracking
The indicator monitors key institutional reference levels:
Weekly High/Low:
float lastWeekHigh = request.security(syminfo.tickerid, "W", high ,
barmerge.gaps_off, barmerge.lookahead_off)
float lastWeekLow = request.security(syminfo.tickerid, "W", low ,
barmerge.gaps_off, barmerge.lookahead_off)
Daily High/Low:
float yesterdayHigh = request.security(syminfo.tickerid, "D", high ,
barmerge.gaps_off, barmerge.lookahead_off)
float yesterdayLow = request.security(syminfo.tickerid, "D", low ,
barmerge.gaps_off, barmerge.lookahead_off)
These levels act as magnets for price because:
Institutional algorithms reference these levels for order placement
Retail traders watch these levels for breakouts/breakdowns
Options and futures contracts often reference these levels
Previous day/week ranges provide context for current price action
5. Premium/Discount Zone System
Based on weekly range, the indicator calculates institutional bias zones:
float weekRange = lastWeekHigh - lastWeekLow
// Premium Zone (70-100% of range) - Institutional selling zone
float premiumTop = lastWeekHigh
float premiumBot = lastWeekLow + (weekRange * 0.7)
// Discount Zone (0-30% of range) - Institutional buying zone
float discountTop = lastWeekLow + (weekRange * 0.3)
float discountBot = lastWeekLow
// Golden Zone (50-61.8% of range) - Optimal entry zone
float goldenTop = lastWeekLow + (weekRange * 0.618)
float goldenBot = lastWeekLow + (weekRange * 0.5)
Trading logic:
In Discount Zone: Look for long entries - institutions are likely buying
In Premium Zone: Look for short entries - institutions are likely selling
In Golden Zone: Optimal risk:reward for entries in direction of trend
Between Zones: Neutral area - wait for price to reach discount or premium
This concept is based on institutional order flow: institutions buy in discount zones (value area) and sell in premium zones (overvalued area).
6. Multi-Timeframe Level Analysis
The indicator tracks higher timeframe levels for additional confluence:
float htfHigh = request.security(syminfo.tickerid, htfTimeframe, high ,
barmerge.gaps_off, barmerge.lookahead_off)
float htfLow = request.security(syminfo.tickerid, htfTimeframe, low ,
barmerge.gaps_off, barmerge.lookahead_off)
HTF timeframe is customizable (default: Daily). When current timeframe zones align with HTF levels, confluence increases zone strength.
7. Real-Time Position Assessment
The indicator continuously assesses price position:
// Check if in golden zone
bool inGoldenZone = close >= goldenBottom and close <= goldenTop
// Check if near resistance
bool nearResistance = false
for zone in resistanceZones
if inZone(close, zone.price, thickness * 2)
nearResistance := true
// Check if near support
bool nearSupport = false
for zone in supportZones
if inZone(close, zone.price, thickness * 2)
nearSupport := true
Position status:
AT RESISTANCE: Price near strong resistance zone - consider shorts or exits
AT SUPPORT: Price near strong support zone - consider longs or exits
GOLDEN ZONE: Price in optimal entry area - look for entries in trend direction
NEUTRAL: Price not near any significant zones - wait for better positioning
Visual Elements
Pressure Zone Lines: Horizontal lines showing resistance (red) and support (green) zones
Zone Strength Boxes: Filled boxes showing only strongest zones (strength > 60%) with strength percentage
Fibonacci Lines: Key Fibonacci levels (50% and 61.8%) with distinct colors
Golden Zone Fill: Shaded area between 50% and 61.8% Fibonacci levels
Institutional Lines: Weekly high/low (purple, thick) and Daily high/low (yellow, medium)
HTF Lines: Higher timeframe high/low (cyan) for additional confluence
Premium/Discount Fills: Shaded zones showing premium (red), discount (green), and golden (orange) areas
Position Markers: Visual alerts when price enters golden zone or approaches strong zones
Comprehensive Table: Dashboard showing top 2 resistance zones, top 2 support zones, institutional levels, Fibonacci levels, and current position status
Input Parameters
Pressure Zone Settings:
Zone Detection Length: Period for swing range calculation (default: 50, range: 20-200)
Pivot Length: Period for pivot detection (default: 10, range: 5-50)
Max Zones: Maximum zones to display (default: 8, range: 4-20)
Zone Thickness Percent: Zone width as percentage of price (default: 0.5%, range: 0.1-2.0%)
Fibonacci Settings:
Show Fibonacci Levels: Toggle Fib lines (default: enabled)
Show Golden Zone: Toggle golden zone fill (default: enabled)
Institutional Levels:
Show Last Week High/Low: Toggle weekly levels (default: enabled)
Show Yesterday High/Low: Toggle daily levels (default: enabled)
Strength Scoring:
Show Zone Strength: Toggle strength boxes (default: enabled)
Volume Weight: Weight for volume component (default: 0.4, range: 0.0-1.0)
Touch Weight: Weight for touch component (default: 0.3, range: 0.0-1.0)
Age Weight: Weight for age component (default: 0.3, range: 0.0-1.0)
Multi-Timeframe:
HTF Timeframe: Higher timeframe for level tracking (default: Daily)
Show HTF Levels: Toggle HTF lines (default: enabled)
Colors:
All colors are fully customizable including resistance, support, Fibonacci, golden zone, HTF levels, and institutional levels.
How to Use This Indicator
Step 1: Identify Strongest Zones
Look at the table to see top 2 resistance and support zones with strength percentages. Focus on zones with strength > 70%.
Step 2: Check Institutional Levels
Monitor weekly and daily highs/lows. These act as magnets for price and often provide strong support/resistance.
Step 3: Assess Premium/Discount Position
Determine if price is in premium zone (look for shorts), discount zone (look for longs), or golden zone (optimal entries).
Step 4: Look for Fibonacci Confluence
When pressure zones align with Fibonacci levels (especially 50% and 61.8%), zone strength increases significantly.
Step 5: Monitor Position Status
Check the table's position row. "AT RESISTANCE" or "AT SUPPORT" signals potential reversal or bounce areas.
Step 6: Wait for Zone Tests
Don't chase price. Wait for price to return to strong zones before entering. The best entries occur when price tests a zone and shows rejection.
Step 7: Use HTF Confluence
When current timeframe zones align with HTF levels, probability of zone holding increases. Look for these high-confluence areas.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal zone clarity
Focus on zones with strength > 70% - these have highest probability of holding
Multiple touches increase zone strength - zones that held before are likely to hold again
Golden zone entries offer best risk:reward - tight stops with large targets
Premium/discount zones work best in trending markets
Weekly levels are stronger than daily levels - prioritize weekly when they conflict
Wait for price to reach zones - don't anticipate, react
Look for volume confirmation when zones are tested - high volume rejections are strongest
Combine with price action - zones show where, price action shows when
HTF confluence significantly increases zone strength - prioritize these areas
Indicator Limitations
Zones don't always hold - even strong zones can break during major news or trend changes
Zone strength is relative to recent history - not absolute
Pivot-based detection requires sufficient price history - may not work on newly listed instruments
Maximum zone limits (8 default) mean some valid zones may not be displayed
Zone thickness is a percentage - may be too wide or narrow for some instruments
Premium/discount zones are relative to weekly range - not absolute value areas
Fibonacci levels are based on recent swing - may not align with longer-term structure
The indicator shows zones, not direction - requires trader interpretation
Works best on liquid instruments with clear support/resistance behavior
Zone strength scoring is a guide, not a guarantee - strong zones can still fail
Technical Implementation
Built with Pine Script v6 using:
Custom type definition for PressureZone with strength tracking
Array-based storage for resistance and support zones
Pivot-based zone detection with confirmation
Multi-component zone strength scoring
Touch and volume tracking for each zone
Fibonacci level calculations
Golden zone identification
Multi-timeframe security requests for institutional levels
Premium/discount zone calculations based on weekly range
Real-time position assessment
Dynamic table with 13 rows showing all metrics
Overlap prevention for visual clarity
Automatic zone cleanup when maximum count is reached
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive pressure zone analysis. While individual components (pivot-based S/R, Fibonacci, institutional levels) are established concepts, this indicator is justified because:
It synthesizes five distinct zone analysis methodologies into a unified system
Zone strength scoring combines volume, touches, and age with customizable weights
Automatic zone management prevents clutter while highlighting strongest zones
Integration of Fibonacci golden zone with pivot-based zones
Premium/discount zone system based on institutional order flow concepts
Multi-timeframe level tracking for confluence analysis
Real-time position assessment provides actionable trading context
Comprehensive table shows all metrics simultaneously for holistic analysis
Overlap prevention ensures clean charts without sacrificing information
Each component contributes unique zone intelligence: pivot zones show where price reversed, strength scoring shows zone quality, Fibonacci shows mathematical levels, institutional levels show reference points, premium/discount shows institutional bias, HTF levels show confluence, and position assessment shows current context. The indicator's value lies in presenting these complementary perspectives simultaneously with quantitative strength scoring and intelligent display management.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Pressure zone analysis is a tool for identifying potential support and resistance areas, not a crystal ball for predicting future price movement. Strong zones, high strength scores, and institutional levels do not guarantee profitable trades. Past zone behavior does not guarantee future zone behavior. Market conditions change, and strategies that worked historically may not work in the future.
The zones and levels displayed are mathematical calculations based on current market data, not predictions of future price movement. High-strength zones can break, golden zone entries can fail, and institutional levels can be violated. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

SMT Divergence Strength Index [Metrify]This indicator detects SMT-style divergence between the chart symbol and a user-defined reference symbol, then filters those divergence events using a statistical strength condition. The goal is to separate ordinary pivot mismatches from divergence events that occur during unusually large relative movement between the two instruments.
It combines three components in one script: pivot-based divergence detection, Z-score normalization of momentum spread, and a correlation plot for context. The output is an oscillator panel (Z-score columns + correlation line) plus optional SMT labels/lines drawn on the main chart.
SMT divergence logic (structural layer)
The structural part of the script is based on confirmed pivots on the main symbol.
For bearish SMT detection, the script checks whether the main symbol forms a higher high while the reference symbol (evaluated at the same pivot event point) forms a lower high relative to the previous corresponding pivot event. For bullish SMT detection, it checks whether the main symbol forms a lower low while the reference symbol forms a higher low
Reference symbol and inversion
The Reference Symbol (Pairing) input defines the market used for comparison. The usefulness of the divergence output depends heavily on this pairing. The script assumes the comparison is meaningful enough that non-confirmation between the two symbols can be interpreted as a potential imbalance or relative weakness/strength event.
The 'Invert Correlation' option transforms the reference data by using reciprocal values before the divergence and correlation calculations. This can be used when analyzing pairs that are expected to move inversely (like alt to btc in specific event), so the comparison orientation better matches the intended relationship.
Invert Correlation mode (what it does and why it exists)
The Invert Correlation option changes how the reference symbol is transformed before all downstream calculations (pivot comparison, momentum spread, Z-score, and correlation plot). When enabled, the script does not compare the main symbol to the raw reference prices. Instead, it compares against the reciprocal form of the reference series:
reference high is transformed using 1 / low
reference low is transformed using 1 / high
reference close is transformed using 1 / close
This inversion is used so that an inversely related market can be analyzed in the same directional framework as a positively correlated one. In practical terms, it converts an opposite direction relationship into a comparable orientation for SMT logic. After inversion, moves that would normally appear opposite can be interpreted as if they were aligned, allowing the same higher-high / lower-high and lower-low / higher-low SMT structure rules to be applied consistently.
Conceptually, invert mode is useful when your reference asset is expected to move opposite to the main asset and you want the script to evaluate non-confirmation in a unified SMT framework. It does not automatically improve signal quality, but simply changes the orientation of the comparison so the divergence logic matches the relationship you are trying to study.
Use normal mode when the pair is usually expected to move in the same direction.
Use invert mode when the pair is usually expected to move in opposite directions (or when your analysis framework treats one as a risk-off mirror of the other).
Good inversion-pair examples (practical)
1) Risk asset vs Dollar Index (DXY)
This is one of the cleanest concepts for inversion.
BTCUSD vs DXY
ETHUSD vs DXY
OIL VS DXY
NASDAQ (NDX / US100) vs DXY
Gold vs DXY (often inverse, but can break regime)
When DXY rises, risk assets often weaken. Inverting DXY makes the reference move in the same orientation as the risk asset.
2) Equity index vs VIX
Very common inverse relationship idea.
SPX / ES / NQ vs VIX
BTC (sometimes) vs VIX as a broader risk proxy (less direct, more regime dependent)
Why inversion helps: VIX is typically "fear up when equities down". Inverted VIX can be used as a proxy for risk-on alignment.
3) USD-quoted asset vs USD strength proxy
If your main symbol is sensitive to USD strength:
XAUUSD vs DXY
EURUSD vs DXY
GBPUSD vs DXY
AUDUSD vs DXY
These are classic macro pairings where inversion often makes analytical sense.
4) Some commodity currencies vs commodity / dollar drivers (case-by-case)
Examples can work, but are more conditional:
USDCAD vs Oil (WTI) (often inverse-ish relationship via CAD/oil linkage)
AUDUSD vs Copper (sometimes)
NZDUSD vs risk proxy
These are not as stable as DXY/VIX examples, so you need to monitor correlation more carefully.
Trigger conditions in plain terms
A bearish SMT label appears only when all required conditions are satisfied:
a confirmed pivot high exists on the main symbol,
the current main pivot high is higher than the previous main pivot high,
the aligned reference high at the same pivot event is lower than its previous aligned reference high,
and the Z-score condition exceeds the configured threshold.
A bullish SMT label follows the mirrored condition/vice versa.
Display behavior and non-repaint option
The indicator uses confirmed pivots, so signals are known only after pivot confirmation. The Non repaint mode setting controls how labels are displayed:
Enabled: labels are shown on the trigger/confirmation bar (the bar where the pivot is confirmed and the signal becomes true).
Disabled: labels are shifted back to the pivot bar for visual alignment.
This setting affects visualization only. It does not change the underlying pivot confirmation process.
This indicator marks pivot-based intermarket non-confirmation events that occur during statistically elevated relative dislocation.
Pair selection remains a major source of variation in output quality. Weakly related pairs can produce divergence labels that satisfy the script’s rules but are not analytically useful. Indicator

Fibonacci Confluence Grids (Levels + Time Zones) [Metrify]This script is built around a simple but often-misused idea: Fibonacci levels are only useful when the reference swing is meaningful. In practice, most traders do not fail because they “used the wrong ratio,” but because they anchored the Fib to a weak or inconsistent swing. A 0.618 level drawn from noise is still noise.
The core design of this indicator is therefore not “draw more levels” but to formalize three simple steps that we usually do inconsistently by eye:
identify an A→B swing,
filter that swing for significance, and
project both price levels and timing windows from that swing.
Once a valid swing is accepted, the script projects a configurable set of price Fibonacci levels (retracements and/or extensions) and a separate configurable sequence of time gates (bar offsets projected forward from point B). The price levels define a vertical map of potential reaction zones. The time gates define a horizontal map of potential timing windows. Used together, they create a 2D framework: not only where price may become sensitive, but also when the probability of a market event tends to increase.
Time gates: temporal structure and why “events cluster” around them
The time gate projects vertical markers forward from point B using a bar sequence (commonly Fibonacci-like). The key idea is not random, but practical timing structure.
Markets often exhibit rhythm: impulsive legs, pullbacks, consolidations, and expansions frequently have characteristic durations.
Time gates should be interpreted as attention windows: periods where you should expect the probability of a notable market event to be higher than usual. “Event” here is intentionally broad, because direction is not guaranteed:
acceleration / continuation burst
pullback completion and resumption attempt
volatility expansion after compression
reversal attempt (successful or failed)
fakeout / stop run / liquidity sweep
structural break and regime shift
This is why it’s accurate to say that significant events often occur around time gates. Not because the gate forces a reversal, but because it’s a timing checkpoint where participation and auction dynamics frequently change. Your edge comes from combining the gate with context: price location near a major Fib level, session behavior, and confirmation from price action/structure.
How to use it as a manual framework
A strong discretionary workflow is to treat this as a 2D confluence map: price zone × time window.
Start by asking: “Is the active A→B swing meaningful?” If it looks like chop, tighten filters (increase Min Size / Min Bars, or increase ZigZag reversal / pivot length). Once the swing quality is good, treat the map as a set of planned observation points.
When price approaches a major retracement (0.5/0.618/0.786) or extension (1.272/1.618), check whether a time gate is also nearby. If yes, you should expect higher information density so you watch for confirmation rather than forcing prediction.
Confirmation can be whatever your style uses: structure break, reclaim, rejection candle quality, volatility expansion, etc.
If price is mid-range (far from major fibs) and far from gates, that’s often low-quality territory for forcing trades —> your standards should be higher, not lower. Indicator

Failed 2 Evaluator v2.2-Failed 2 Evaluator & Continuation EngineDescription:
The Failed 2 Evaluator & Continuation Engine is an objective price-action analysis tool designed to categorize, visualize, and statistically track how Failed 2 candles behave when interacting with key market levels.
This indicator evaluates whether a breach of a level results in price expansion, choppy price action, or a strict structural failure (a "Failed 2" in Strat terminology), providing traders with a quantitative view of historical follow-through.
How It Is Calculated
The script operates in three distinct phases:
1. Level Generation & Trigger
The indicator establishes boundaries using either auto-calculated Pivot Highs/Lows (with user-defined left/right lengths) or manually inputted price levels. The evaluation sequence is triggered the moment a candle's total range (wick) physically breaches one of these active levels.
2. Strict Outcome Evaluation (On Close)
Once the triggering candle closes, the script strictly categorizes the outcome into one of three buckets:
Breakout/Breakdown Expansion: The candle successfully closes outside the breached level, indicating a continuation of the break.
Strict Failed 2 (F2U / F2D): The candle breaches the level but immediately reverses, failing to hold the extreme. To qualify as a true Failed 2, the script enforces a strict structural rule: the candle must close back inside the level and must be a directional reversal candle (e.g., an F2U requires the close to be below the level and below its own open).
Neutral Reclaim (Chop): The candle breaches the level and falls back inside, but fails the strict color/directional logic of a true Failed 2.
3. The Continuation Engine
When a strict Failed 2 is confirmed, the script activates a forward-looking continuation tracker. It records the closing price of the Failed 2 candle and waits a user-defined number of bars (e.g., 3 bars). It then checks if the price at that future bar successfully continued in the direction of the reversal, logging the historical frequency of structural follow-through.
Dashboard Features & Chart Visuals
Real-Time Watcher: A dynamic table row alerts the user when a live, unconfirmed candle is actively testing a level, prompting observation for either a Continuation or a Failed 2.
Historical Distribution: The dashboard calculates the exact percentage breakdown of Expansions, True Failed 2s, and Chop over a user-defined lookback window.
Chart Markers: Clean, unobtrusive visual tags pinpoint exactly where Breaks (B↑/B↓) and True Reversals (F2U/F2D) occurred on the chart for easy visual backtesting.
Analytical Purpose
The primary benefit of this tool is the removal of emotional bias and subjectivity from "false breakout" analysis. By rigidly defining what constitutes a failed move and statistically tracking its historical continuation rate, this indicator allows analysts to quantify an asset's unique behavior at range extremes. It transforms abstract price action theories into measurable, observable data. Indicator

POC Sweep Reclaim [LuxAlgo]The POC Sweep Reclaim (PSR) model identifies a two-step "rejection then acceptance" price action pattern centered around the Point of Control (POC) of previous candles. By approximating volume-at-price data using lower timeframe (LTF) granularity, the tool highlights specific liquidity traps where price first fails to sustain a move beyond a high-volume level and subsequently reclaims it.
The PSR framework is built on the logic that a "Sweep" represents a failed probe of value, while the "Reclaim" represents a successful breach, signaling a potential shift in market dominance as price moves away from trapped participants.
🔶 USAGE
The indicator visualizes market microstructure dynamics through a sequence of two distinct events:
🔹 The Sweep (The Rejection)
A sweep occurs when a candle's wick trades through the previous bar's POC, but the candle body fails to close beyond it. This identifies a "Liquidity Grab" where price interacts with a high-volume node but fails to find acceptance, often trapping breakout traders.
Buyside Sweep: Price wicks above the previous POC but closes below it (Bearish Rejection). Sellside Sweep: Price wicks below the previous POC but closes above it (Bullish Rejection).
🔹 The Reclaim (The Acceptance)
A reclaim occurs when the candle immediately following a sweep successfully closes beyond the same POC level that was just rejected.
BSR (Buyside Reclaim): A bullish signal where price closes above a previously swept upper POC, suggesting the trap is resolved to the upside. SSR (Sellside Reclaim): A bearish signal where price closes below a previously swept lower POC, suggesting follow-through to the downside.
🔶 DETAILS
The script aims to bridge the gap between standard OHLCV analysis and order-flow dynamics. While a true footprint engine (available on higher PulseWire tiers) is more accurate, this script uses a proxy by aggregating volume from a lower timeframe (e.g., 1-minute) to estimate the POC of higher-timeframe bars.
🔹 Academic Intuition
Order-Flow Imbalance (OFI): Short-term price changes are strongly linked to the inability of one side to provide enough depth. A "reclaim" reflects a shift where the dominant side successfully absorbs the liquidity that caused the initial rejection. Salient Prices: High-volume nodes like the POC act as psychological and mechanical barriers. Research indicates that liquidity clusters around these prominent prices, making them significant areas for support/resistance. Stop-Loss Cascades: Sweeps often interact with clustered stop-loss orders. If price reclaims the level after clearing these stops, it can trigger a directional move as the market "clears" the liquidity hurdle.
🔹 Practical Limitations
Footprint Proxy: The POC is calculated by aggregating volume at the close of LTF bars. This is a noisy proxy compared to a true footprint, which tracks every tick. Data Snooping: Like all pattern-based indicators, the "Reclaim" logic should be verified with robust backtesting to ensure signals are not the result of random price noise. Repainting: Because the POC depends on LTF data, the values for the current developing bar may fluctuate until the candle closes.
🔶 SETTINGS
Lower Timeframe for POC: Sets the granularity for volume aggregation. A lower value (like 1m) provides a more precise POC proxy. Show POC: Toggles the visibility of the calculated Point of Control dots for every bar. Show Sweep Dots: Displays markers at the POC level when a wick interaction occurs without a body close. Show BSR (Buyside Reclaim): Highlights candles that successfully close above a swept buyside POC. Show SSR (Sellside Reclaim): Highlights candles that successfully close below a swept sellside POC. Indicator

Protected Swings [LuxAlgo]The Protected Swings indicator identifies and confirms high-probability structural levels based on the interaction between liquidity sweeps, Fair Value Gaps (FVG), and Change in State of Delivery (CISD) logic. This tool aims to highlight "protected" highs and lows that are expected to remain intact during trend continuations or market reversals.
🔶 USAGE
The Protected Swings tool is designed to provide clear invalidation levels for stop placement and to help traders avoid false reversals by waiting for candle-body confirmation through specific price series.
🔹 Trend Reversals
A reversal setup occurs when the market sweeps a major liquidity level (such as a previous swing high or low) or taps into a high-timeframe FVG.
A Protected Swing High (PSH) forms after a sweep of a high followed by a close below the opening price of the up-close candle series that created that high. This suggests a shift to a bearish regime.
A Protected Swing Low (PSL) forms after a sweep of a low followed by a close above the opening price of the down-close candle series that created that low. This suggests a shift to a bullish regime.
🔹 Trend Continuation
Once Protected Swings are established, subsequent "stepping stones" often form. In a bearish trend, new PSHs will form as price wicks into internal FVGs and then closes back below the candle series that created the retracement high. These levels serve as trailing stop-loss points or areas to look for refined lower-timeframe entries.
🔹 Entry Refinement
Traders can use Protected Swings to refine Risk:Reward. When a higher-timeframe protected level is confirmed, users can drop to a lower timeframe and wait for a secondary protected swing to form. The "Confirmation Level" shown by the indicator represents the exact price point that must be breached to validate the "protected" status of that swing.
🔶 DETAILS
The script follows a multi-step logic to confirm Protected Swings:
🔹 Liquidity Sweeps
The indicator tracks structural pivots (Fractals) based on the "Sweep Sensitivity" setting. A sweep is detected only when the price wick exceeds a previous pivot high or low, but the candle body remains within the previous extreme. This "wick-only" break suggests liquidity is being grabbed (Stop Run) rather than a displacement break of structure occurring.
🔹 FVG Mitigations
The script detects Fair Value Gaps (3-candle imbalances). If enabled, a swing point is considered a candidate for a Protected Swing if it trades into an active FVG, even if a liquidity sweep of a major pivot did not occur.
🔹 Change in State of Delivery (CISD)
The core confirmation logic (CISD) requires the price to close through the "series."
For a Bullish Protected Swing , the script identifies the series of consecutive down-close candles leading into the low. The opening price of the first candle in that down-series becomes the Confirmation Level.
For a Bearish Protected Swing , it identifies the consecutive up-close candles. The opening price of the first candle in that up-series becomes the level.
The labels (PSL/PSH) only appear once a candle body closes past this level, ensuring the "State of Delivery" has shifted.
🔶 SETTINGS
🔹 Logic Settings
Sweep Sensitivity: Defines the number of bars required on both sides to confirm a structural pivot level to be used for detecting sweeps.
Include FVG Mitigations: When enabled, swings that tap into imbalances can trigger protected swing labels.
FVG Search Lookback: Determines how many bars back the script searches for active imbalances to use as context.
🔹 Visualization
Show Labels: Toggles the PSL (Protected Swing Low) and PSH (Protected Swing High) labels.
Show Confirmation Levels: Displays the horizontal lines representing the candle series opening price that triggered the confirmation.
Show Fair Value Gaps: Visualizes active imbalances on the chart.
Highlight Liquidity Sweeps: Highlights the specific portion of the wick that exceeded the previous structural pivot.
Colors: Customization for bullish and bearish elements and transparency for zones.
Indicator

HTF PO3 [LuxAlgo]The HTF PO3 indicator is a professional visualization tool designed to project Higher Timeframe (HTF) Power of 3 (Accumulation, Manipulation, Distribution) price action directly onto your current chart by "grid-locking" HTF candle structures to the price scale.
🔶 USAGE
The indicator is primarily used by SMC (Smart Money Concepts) and Price Action traders to identify the state of a higher timeframe candle without switching charts. By projecting the HTF candle into the right margin, traders can observe the development of the Open, High, Low, and Close (OHLC) in real-time.
🔹 Mapping & Origin Lines
A standout feature of this tool is the direct mapping system. Dashed lines originate from the exact lower timeframe (LTF) bars that established the HTF Open, High, and Low. This allows you to see precisely where the "Manipulation" (wick) and "Accumulation" (body) phases occurred within the HTF cycle.
🔹 Running Volume Delta
Below each projected candle, the indicator displays the "Running Delta." This calculates the cumulative difference between buying and selling volume (based on bar polarity) throughout the HTF period, providing an extra layer of confluence for directional bias.
🔶 DETAILS
The indicator is engineered to be "grid-locked" to the chart's native coordinate system. Unlike standard overlays that might appear to "float," this tool uses absolute price and bar index anchoring.
Vertical Synchronization : The HTF candle wicks and bodies are tied to the Y-axis. If you stretch or compress the price scale, the projected candle scales perfectly in sync with your chart.
Horizontal Anchoring : Mapping lines are pinned to the specific bar_index where levels were created, ensuring they stay "glued" to the correct candles even when scrolling or zooming.
Projection Logic : The tool projects the current forming candle and a customizable number of previous candles into the future space (right offset), keeping your main workspace clean.
🔶 SETTINGS
🔹 Higher Timeframe Settings
HTF Timeframe : Sets the timeframe for the projected candles (e.g., 60m, 4H, Daily).
Candles to Show : Determines how many historical HTF candles are projected alongside the live one.
Right Offset (Bars) : Controls how far into the right margin the projection is drawn.
🔹 Visual Style
Bullish/Bearish Color : Customizes the colors for the HTF candle bodies and wicks.
Live Body Transparency : Adjusts the opacity of the current developing candle.
Show Price Labels : Toggles the visibility of the OHLC price tags next to the live projection.
Show Running Delta : Toggles the cumulative volume delta display below the candles.
Indicator

CBC Flip with Targets and Filters [LuxAlgo]The CBC Flip with Targets and Filters indicator provides an institutional framework for identifying high-probability trend reversals based on the Candle By Candle (CBC) method.
By combining structural price action with dynamic ATR targets, stop losses, and intraday value filtering, this tool offers a straightforward strategy for managing risk and executing trades based on shifts in market bias.
🔶 USAGE
The Usage section describes how the script can be used to navigate market trends using price action confirmation and volatility-based levels.
🔹 Signal Identification
Bullish and bearish triangles indicate confirmed trend flips. A bullish flip is detected when price closes above a previous high, while a bearish flip occurs when price closes below a previous low. These signals only appear after the bar closes to ensure non-repainting execution.
🔹 Strategic Filtering
Align signals with intraday value by using the VWAP filter settings:
Confirmation mode: Ensures you only take long signals above the VWAP and short signals below it.
Contrarian mode: Used to identify potential mean-reversion opportunities when price flips against the current value area.
🔹 Risk Management
Every flip generates dynamic target and stop loss lines based on a customizable Average True Range (ATR). The 'Require candle close to stop' feature allows users to choose between a hard touch of the stop level or waiting for a candle close to invalidate the bias.
The script also includes retroactive outcome markers (circles and crosses) that appear on the signal candle to show whether the target or stop was reached first. A lack of symbol by the bullish or bearish triangles means neither the target nor stop loss criteria have been met.
🔹 Performance Verification
Refer to the real-time dashboard to monitor current trade progress and historical hit rates. The Current Target Progress metric in the dashboard tracks how far price moved in the trade direction, helping you optimize your ATR multipliers and assess trend strength.
🔶 DETAILS
🔹 Institutional CBC Logic
The Candle By Candle (CBC) methodology, popularized by maplestax, is a price action-centric approach that ignores minor fluctuations. By requiring a full candle close beyond the previous candle range, the script filters out wick rejections that often lead to false signals in volatile markets.
🔹 Non-Repainting Design
The indicator is designed to be fully non-repainting. Signals and levels are calculated based on closed bars, ensuring that what you see on the chart is consistent with historical performance and real-time execution.
🔶 SETTINGS
🔹 Indicator Settings
Bulls/Bears Color: Customizes the theme for bullish and bearish trend components.
ATR Length: Sets the lookback period for volatility calculations.
Target ATR Multiplier: Defines the distance of the profit target from the entry.
Stop ATR Multiplier: Defines the distance of the stop loss from the entry.
Require candle close to stop: When enabled, the stop loss is only triggered if a candle closes beyond the stop level.
Show Daily Anchored VWAP: Toggles the visibility of the session-anchored VWAP.
Filter Bias by VWAP: Choose between No Filter, Confirmation (Trend-following), or Contrarian (Mean-reversion).
🔹 Visuals
Show Flip Labels: Toggles the entry triangle icons.
Show Outcome Markers: Toggles the retroactive "X" and "Circle" markers on signal candles.
Label Size: Adjusts the size of the on-chart icons.
🔹 Dashboard
Dashboard: Toggles the performance metric table.
Position/Size: Adjusts the UI location and scale.
Historical Trade Count: Sets the sample size for the historical success rate calculation. Indicator

Institutional Order Flow Strength Classifier [LuxAlgo]The Institutional Order Flow Strength Classifier tool identifies and ranks unmitigated order blocks by analyzing the institutional intensity behind market structure breaks.
It provides a percentage-based strength score for each zone, helping traders distinguish between minor price stalls and significant institutional supply/resistance areas.
🔶 USAGE
The indicator automatically detects Order Blocks (OBs) formed during Market Structure Breaks (BOS). Unlike traditional OB tools that highlight every pivot, this script focuses on the "Institutional Footprint"—the specific area where big players positioned themselves before a significant move.
🔹 Interpreting Strength (%)
The strength score (0-100%) indicates the level of institutional participation during the zone's creation.
High Strength (>70%): Indicates massive displacement and high relative volume. These zones are high-probability areas for limit order entries as they represent significant "unfilled" interest.
Medium Strength (40-70%): Indicates standard trend continuation zones, often useful for stop-loss placement or scaling into positions.
Low Strength (<40%): Indicates zones with weak follow-through. These are often treated as "internal liquidity" and may be swept or ignored by price rather than providing a bounce.
🔹 Zonal Overlap Filtering
To prevent chart clutter, the script features an advanced "Zonal Overlap" system. If multiple Order Blocks are created within the same price range, the indicator can hide the redundant zones, ensuring that only the most relevant level is visible. This helps traders focus on "confluence zones" where multiple institutional orders may be clustered.
🔹 Strongest OB Tracking
The script includes a dynamic "Strongest OB" plot. This is a continuous filled background area that tracks the zone with the highest strength percentage within the user-defined buffer. While individual OBs are shown as dashed boxes, this solid plot highlights the single most significant institutional level currently influencing the market.
🔶 DETAILS
The philosophy behind this script is that "not all Order Blocks are created equal." To classify them, the script uses a dual-metric weighted calculation:
Displacement (60% weight): This measures the "expansion" or the distance price moved away from the OB relative to its size. A large move indicates a high imbalance between buyers and sellers, suggesting institutional urgency.
Relative Volume (40% weight): This compares the volume of the candle that formed the OB to its 20-period average. High volume confirms that the move was backed by significant capital rather than low-liquidity volatility.
The script identifies the OB by searching for the last opposite-colored candle (the "Institutional Footprint") before a break of a Pivot High or Pivot Low. Once price crosses the extreme side of the box (the bottom for bullish OBs or top for bearish OBs), the zone is marked as "mitigated" and removed from the display.
🔶 SETTINGS
🔹 Order Block Settings
Pivot Lookback: The number of bars required to confirm a pivot high or low used for market structure detection.
Max Unmitigated OBs: The maximum number of active zones displayed on the chart at once.
🔹 Visualization
Bullish/Bearish OB Color: Sets the fill color for the detected Order Block boxes.
Hide Overlapped Zones: When enabled, prevents multiple boxes from stacking in the same price area, showing only the most relevant one.
Show Strength Labels: Toggles the percentage labels on the right side of the boxes.
Show Strongest OB Plot: Enables the continuous filled background plot for the zone with the highest strength score.
Strongest OB Buffer Size: Determines how many recent unmitigated zones the script should look through to find the strongest one.
Indicator

Bernoulli Process: Trend Probability & Entropy [MarkitTick]💡 This technical indicator introduces a rigorous probabilistic framework to the evaluation of market regimes by modeling price fluctuations as a Bernoulli Process. Unlike traditional oscillators that merely measure the magnitude of price movement, this script treats every bar as a discrete "trial" that either succeeds or fails based on specific conditions—such as directional price action, momentum thresholds, or trend alignment. By applying Information Theory and the principles of Maximum Likelihood Estimation (MLE), the script quantifies not just the direction of the market, but the statistical reliability and the "noise" content of the current sequence. This allows traders to distinguish between a structured trend and high-entropy market "chop," providing a level of objective clarity often missing in standard technical analysis.
● ✨ Originality and Utility
The primary innovation of this script lies in its transition from deterministic price tracking to stochastic regime modeling. Most indicators suffer from the "binary trap," where they simply tell a trader if price is above or below a level without assessing the statistical significance of that state.
• Quantifying Market Information
By integrating Shannon’s Binary Entropy, the script measures the uncertainty inherent in a price sequence. When entropy is near 1.0, the market is in a state of maximum uncertainty (effectively a fair coin toss), signaling that a trader should likely avoid the "noise." Conversely, low entropy values indicate a high-information state where one side of the Bernoulli trial is dominating, suggesting a persistent trend.
• Adaptive Definition of Success
The script is not limited to a single logic; it allows the user to define what constitutes a "Success" in the Bernoulli trial. Whether you prioritize raw price action (Close > Open), momentum (RSI > 50), or trend-following (Price > Moving Average), the underlying probabilistic engine remains consistent, making it a versatile tool for various trading styles.
• Z-Score Significance Testing
It applies a Central Limit Theorem (CLT) approximation to calculate a Z-Score. This tells the trader how many standard deviations the current trend is away from a random walk (p=0.5). This provides a mathematical filter to avoid entering "trends" that are actually within the bounds of statistical randomness.
● 🔬 Methodology and Concepts
The script operates through a four-stage mathematical pipeline that converts raw market data into probabilistic metrics.
• Stage 1: The Bernoulli Trial (I)
The foundation is the indicator variable (I). On every bar, the script evaluates a boolean condition. If the condition is met, the trial is a "Success" (1.0); otherwise, it is a "Failure" (0.0). This transforms complex candles into a simple binary sequence: {1, 0, 1, 1, 0...}.
• Stage 2: Probability Estimation (p-hat)
Using a rolling window of length N, the script calculates the Maximum Likelihood Estimate (MLE) of the probability parameter 'p'. This is essentially the sample mean of the successes within the window. A value of 0.7 suggests that in the last N trials, 70% were successful.
• Stage 3: Binary Entropy Calculation
The script calculates Entropy H(p) using the formula:
H(p) = -p * log2(p) - (1-p) * log2(1-p)
This provides a metric for "Trend Quality." If p is 0.5 (random), H(p) is 1.0 (maximum noise). If p is 1.0 or 0.0 (perfect trend), H(p) is 0.0 (maximum order).
• Stage 4: Volatility-Adjusted Z-Score
To determine if a sequence is truly anomalous, the script calculates the standard deviation of a fair process and compares the observed deviations to this baseline. This identifies "Significant Trends" that are mathematically distinct from a 50/50 random distribution.
● 🎨 Visual Guide
The visual interface is designed to communicate complex statistical data through intuitive color-coded cues.
• The Bernoulli Probability Line
The main plot is a continuous line representing the estimated probability (p).
A value above 0.5 indicates a bullish bias (p-hat > 0.5).
A value below 0.5 indicates a bearish bias (p-hat < 0.5).
• Dynamic Entropy Coloring
The line does not just change color based on direction; it changes based on certainty.
Vibrant Green: Strong bullish trend with low entropy (High Certainty).
Vibrant Red: Strong bearish trend with low entropy (High Certainty).
Gray/Faded Color: High entropy regime (Entropy > 0.9). This signals that the market is "choppy" and the probability of success is too close to random to be reliable.
• Background Entropy Zones
The chart background highlights areas of "Max Entropy" in a subtle gray color. When you see these zones, it suggests the current Bernoulli definition is failing to find a directional edge, signaling a period of market consolidation.
• Real-Time Metrics Dashboard
A table in the top-right corner displays:
Probability (p): The exact decimal value of the current trend probability.
Entropy (Bits): The current level of uncertainty in the sequence.
Regime: A text-based label identifying the market state (Bull Trend, Bear Trend, or Noise/Chop).
• Execution Signals
Small triangles appear on the chart to mark high-probability transition points. A Triangle Up (Green) marks a bullish breakout from a low-entropy state, while a Triangle Down (Red) marks a bearish breakdown.
● 📖 How to Use
• Identifying Low-Noise Entries
Traders should look for instances where the Probability Line crosses the 0.5 threshold while Entropy is low (vibrant colors). If the line is gray, the "trend" lacks statistical significance, and the risk of a whip-saw is high.
• Regime Filtering
Use the indicator as a "Mode Filter." If the Dashboard displays "NOISE / CHOP," it is a signal to stay flat or use mean-reversion strategies. If it displays a "TREND" regime, trend-following strategies can be deployed with higher confidence.
• Interpreting the Z-Score
While not directly plotted, the Z-Score logic powers the signal generation. A signal is only produced when the deviation from the "Fair Coin" (0.5) is substantial enough to suggest a non-random event.
● ⚙️ Inputs and Settings
• Bernoulli Trial Definition
Choose between three calculation modes:
Price Action: Uses the relationship between Close and Open (Directional bars).
Momentum: Uses RSI relative to the 50-level (Standard momentum).
Trend: Uses Price relative to a Simple Moving Average (Long-term regime).
• Sample Window (N)
Determines the "lookback" for the probability calculation. Smaller values (e.g., 10-15) are more responsive but noisier; larger values (e.g., 30-50) provide a smoother, more institutional view of the regime.
• Risk Management (Alerts)
Target R:R Ratio: Used to calculate the Take Profit level in the JSON alerts.
Stop ATR Multiplier: Uses Average True Range to calculate a volatility-adjusted stop loss for signals.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The "Bernoulli Process: Trend Probability & Entropy" script is built upon the pillars of Discrete Stochastic Processes and Information Theory.
• The Law of Large Numbers (LLN)
The script relies on the LLN, which states that as a sample size grows, its mean gets closer to the average of the whole population. By using a "Sample Window," we are performing a rolling MLE of the true underlying probability parameter of the market at that moment.
• Shannon Entropy and Information Theory
Claude Shannon’s 1948 work on information entropy is the bedrock of the "Noise" detection in this script. In the context of trading, entropy represents the "surprise" or "uncertainty" in the price sequence. A low-entropy market is one where the next bar's success/failure is highly predictable based on the recent past, which is the mathematical definition of a trend.
• Bernoulli vs. Gaussian Distributions
Most indicators assume a Normal (Gaussian) distribution of price returns. However, market states are often better modeled as discrete outcomes (Up/Down). By treating the market as a Bernoulli Process, we bypass the "fat-tail" problem of Gaussian distributions and focus purely on the frequency of successful outcomes, making the tool more robust against outliers.
• The Z-Test for Proportions
By applying a Z-score calculation to a Bernoulli distribution, the script treats the market like a "biased coin" experiment. It tests the Null Hypothesis ($H_0$): "The market is a fair coin (p=0.5)." When the Z-score is high, we reject $H_0$ in favor of the Alternative Hypothesis ($H_1$): "The market is trending (p != 0.5)."
⚠️ 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

Indicator

Indicator

Adaptive AI SuperTrend [AlgoPoint]🚀 Adaptive AI SuperTrend
Adaptive AI SuperTrend is a high-performance trading terminal that redefines trend-following by integrating Machine Learning (ML) principles with advanced market regime detection. Unlike static indicators, this system dynamically recalibrates its internal parameters to match the ever-changing volatility of the financial markets.
Equipped with a custom "Wizard Engine," it filters out market noise during consolidation and identifies high-probability trend continuation points, making it an essential tool for scalpers, day traders, and swing traders alike.
🧠 What Makes it "AI"?
While traditional indicators use fixed rules, Adaptive AI SuperTrend utilizes Algorithmic Intelligence to make real-time decisions:
KNN-Inspired Adaptation: The engine analyzes the last 150 bars of volatility and trend strength to automatically adjust its sensitivity.
Market Regime Intelligence: It distinguishes between "Trending" and "Ranging" states using a sophisticated Squeeze Momentum module, preventing "whipsaws" during low-volume periods.
Self-Backtesting Logic: The indicator continuously calculates its own historical Win-Rate. If the probability of success falls below a certain threshold, it suppresses lower-quality signals.
🛠 Key Features
Dynamic Consolidation Boxes: Automatically identifies and wraps "choppy" price action in professional gray boxes. It waits for 3+ bars of consolidation before marking the zone, helping you spot breakout opportunities early.
Multi-Strategy Aggression:
- Conservative: Filtered signals for long-term trend following.
- Balanced: Optimized for daily volatility.
- Aggressive: High-frequency signals for capturing micro-trends.
Dual-Exit Risk Management:
- ATR TP-SL Mode: Sets mathematical targets based on market volatility with persistent on-screen lines.
- Smart Trailing Mode: Rides the trend to its exhaustion point. Includes intelligent labeling (🎯 TP or 🛑 SL) based on the trade's net profitability.
- RSI Pullback Confirmation: Beyond simple trend flips, it detects "buy the dip" or "sell the rip" opportunities within an existing trend using RSI 50-level crossovers.
📊 Real-Time Analytics Dashboard
The integrated AlgoPoint Dashboard provides a surgical view of the market:
- Market State: Instant "Trending" vs. "Ranging" (Consolidation) detection.
- Trend Strength: ADX-based momentum tracking.
- Strategy Status: Real-time feedback on your active aggression and exit modes.
🎨 Clean Charting & Customization
Built for professional clarity, you have total control over the UI:
Toggle Consolidation Boxes on/off.
Toggle ATR Target Lines and Exit Labels.
Customize background filters and dashboard visibility. Indicator

Bar Count & EMABar Count & EMA Indicator
A clean and lightweight indicator designed for intraday price action traders.
Features:
1. Bar Count
Displays bar numbers only on 3-minute and 5-minute timeframes
Works during Regular Trading Hours (RTH) only
Shows bar 1 and multiples of 3 (3, 6, 9, 12, 15...)
Color-coded for key bars: Bar 18 & 48 (Red), Bar 6 (Light Green), Multiples of 12 (Sky Blue), Others (Gray)
2. EMA 20
Simple 20-period Exponential Moving Average
Customizable source, length, offset, and color
Why these specific timeframes?
5-Minute Chart (US Markets):
Bar 6, 12, 18, 24... represent 30-min, 1-hour, 1.5-hour intervals
Bar 18 and 48 often mark significant intraday turning points
Best for: ES, NQ, SPY, QQQ
3-Minute Chart (China A-Share Markets):
Bar 10, 20, 30... represent 30-min, 1-hour, 1.5-hour intervals
Designed for CSI 1000 Index Futures (IM) and other China futures
Helps track the 4-hour trading session rhythm (9:30-11:30, 13:00-15:00)
Why Bar Count Matters:
Tracking bar numbers helps traders identify market rhythm, timing cycles, and potential reversal zones throughout the trading session. Indicator

Indicator

Indicator

Photon Price Action Scanner [JOAT]Photon Price Action Scanner - Multi-Pattern Recognition with Adaptive Filtering
Introduction and Purpose
Photon Price Action Scanner is an open-source overlay indicator that automates the detection of 15+ candlestick patterns while filtering them through multiple confirmation layers. The core problem this indicator solves is pattern noise: raw candlestick pattern detection produces too many signals, most of which fail because they lack context. This indicator addresses that by combining pattern recognition with trend alignment, volume-weighted strength scoring, velocity confirmation, and an adaptive neural bias filter.
The combination of these components is not arbitrary. Each filter addresses a specific weakness in standalone pattern detection:
Trend alignment ensures patterns appear in favorable market structure
Volume-weighted strength filters out weak patterns with low conviction
Velocity confirmation identifies momentum behind the pattern
Neural bias filter adapts to recent price behavior to avoid counter-trend signals
What Makes This Indicator Original
While candlestick pattern scanners exist, this indicator's originality comes from:
1. Multi-Layer Filtering System - Patterns must pass through trend, strength, velocity, and neural bias filters before generating signals. This dramatically reduces false positives compared to simple pattern detection.
2. Adaptive Neural Bias Filter - A custom momentum-adjusted EMA that learns from recent price action using a configurable learning rate. This is not a standard moving average but an adaptive filter that accelerates during trends and smooths during consolidation.
3. Pattern Strength Scoring - Each pattern receives a strength score based on volume ratio and body size, allowing traders to focus on high-conviction setups rather than every pattern occurrence.
4. Smart Cooldown System - Prevents signal overlap by enforcing minimum bar spacing between pattern labels, keeping charts clean even when "Show All Patterns" is enabled.
How the Components Work Together
Step 1: Pattern Detection
The indicator scans for 15 candlestick patterns using precise mathematical definitions:
// Example: Bullish Engulfing requires the current bullish candle to completely
// engulf the previous bearish candle with a larger body
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
// Example: Three White Soldiers requires three consecutive bullish candles
// with each opening within the previous body and closing higher
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Step 2: Strength Calculation
Each detected pattern receives a strength score combining volume and body size:
float volRatio = avgVolume > 0 ? volume / avgVolume : 1.0
float bodySize = math.abs(close - open) / close
float baseStrength = (volRatio + bodySize * 100) / 2
This ensures patterns with above-average volume and large bodies score higher than weak patterns on low volume.
Step 3: Trend Alignment
Patterns are checked against the trend direction using an EMA:
float trendEMA = ta.ema(close, i_trendPeriod)
int trendDir = close > trendEMA ? 1 : close < trendEMA ? -1 : 0
Bullish patterns in uptrends and bearish patterns in downtrends receive priority.
Step 4: Neural Bias Filter
The adaptive filter uses a momentum-adjusted EMA that responds to price changes:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
if na(neuralValue)
neuralValue := src
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
The learning rate (lr) controls how quickly the filter adapts. Higher values make it more responsive; lower values make it smoother.
Step 5: Velocity Confirmation
Price velocity (rate of change) must exceed the average velocity for strong signals:
float velocity = ta.roc(close, i_trendPeriod)
float avgVelocity = ta.sma(velocity, i_trendPeriod)
bool velocityBull = velocity > avgVelocity * 1.5
Step 6: Signal Classification
Signals are classified based on how many filters they pass:
Strong Pattern : Pattern + strength threshold + trend alignment + neural bias + velocity
Ultra Pattern : Strong pattern + gap in same direction + velocity confirmation
Watch Pattern : Pattern detected but not all filters passed
Detected Patterns
Classic Reversal Patterns:
Bullish/Bearish Engulfing - Complete body engulfment with larger body
Hammer - Long lower wick (2x body), small upper wick, bullish context
Shooting Star - Long upper wick (2x body), small lower wick, bearish context
Morning Star - Three-bar bullish reversal with small middle body
Evening Star - Three-bar bearish reversal with small middle body
Piercing Line - Bullish candle closing above midpoint of previous bearish candle
Dark Cloud Cover - Bearish candle closing below midpoint of previous bullish candle
Bullish/Bearish Harami - Small body contained within previous larger body
Doji - Body less than 10% of total range (indecision)
Advanced Patterns (Optional):
Three White Soldiers - Three consecutive bullish candles with rising closes
Three Black Crows - Three consecutive bearish candles with falling closes
Tweezer Top - Equal highs with reversal candle structure
Tweezer Bottom - Equal lows with reversal candle structure
Island Reversal - Gap isolation creating reversal structure
Dashboard Information
The dashboard displays real-time analysis:
Pattern - Current detected pattern name or "SCANNING..."
Bull/Bear Strength - Volume-weighted strength scores
Trend - UPTREND, DOWNTREND, or SIDEWAYS based on EMA
RSI - 14-period RSI for momentum context
Momentum - 10-period momentum reading
Volatility - ATR as percentage of price
Neural Bias - BULLISH, BEARISH, or NEUTRAL from adaptive filter
Action - ULTRA BUY/SELL, BUY/SELL, WATCH BUY/SELL, or WAIT
Visual Elements
Pattern Labels - Abbreviated codes (BE=Engulfing, H=Hammer, MS=Morning Star, etc.)
Neural Bias Line - Adaptive trend line showing filter direction
Gap Boxes - Cyan boxes highlighting price gaps
Action Zones - Dashed boxes around strong pattern areas
Velocity Markers - Small circles when velocity confirms direction
Ultra Signals - Large labels for highest conviction setups
How to Use This Indicator
For Reversal Trading:
1. Wait for a pattern to appear at a key support/resistance level
2. Check that the Action shows "BUY" or "SELL" (not just "WATCH")
3. Confirm the Neural Bias aligns with your trade direction
4. Use the strength score to gauge conviction (higher is better)
For Trend Continuation:
1. Identify the trend using the Trend row in the dashboard
2. Look for patterns that align with the trend (bullish patterns in uptrends)
3. Ultra signals indicate the strongest continuation setups
For Filtering Noise:
1. Keep "Show All Patterns" disabled to see only filtered signals
2. Increase "Pattern Strength Filter" to see fewer, higher-quality patterns
3. Enable "Velocity Confirmation" to require momentum behind patterns
Input Parameters
Scan Sensitivity (1.0) - Overall detection sensitivity multiplier
Pattern Strength Filter (3) - Minimum strength score for strong signals
Trend Period (20) - EMA period for trend determination
Show All Patterns (false) - Display all patterns regardless of filters
Advanced Patterns (true) - Enable soldiers/crows/tweezer detection
Gap Analysis (true) - Enable gap detection and boxes
Velocity Confirmation (true) - Require velocity for strong signals
Neural Bias Filter (true) - Enable adaptive trend filter
Neural Period (50) - Lookback for neural bias calculation
Neural Learning Rate (0.12) - Adaptation speed (0.01-0.5)
Timeframe Recommendations
1H-4H: Best balance of signal frequency and reliability
Daily: Fewer but more significant patterns
15m-30m: More signals, requires tighter filtering (increase strength threshold)
Limitations
Pattern detection is mechanical and does not consider fundamental context
Neural bias filter may lag during rapid trend reversals
Gap detection requires clean price data without after-hours gaps
Strength scoring favors high-volume patterns, which may miss valid low-volume setups
- Made with passion by officialjackofalltrades
Indicator

Candle 2 Closure [LuxAlgo]The Candle 2 Closure tool detects a specific reversal pattern on the chart spanning four bars. The first bar trades into a key price level. The second bar trades outside the first bar's range, but closes inside, indicating a reversal. The third bar closes outside the second bar's range, in the direction of the reversal, creating a price expansion. The fourth bar is a continuation of prices in that same direction.
This tool features key levels, equilibrium zones, and real-time alarms upon confirmation of the second and third candles of the pattern.
This specific part of the more complete Fractal model by TTrades was requested by a lot of you. We are happy to bring it to you and wish you a merry Christmas!
🔶 USAGE
This pattern is a TTrades concept: a reversal setup that is very easy to understand. It occurs when the current bar trades outside of the previous bar's range, but closes inside it. In other words, traders try to push prices outside of the previous bar's range, but fail. This is considered a reversal, meaning that traders encountered opposing forces that overwhelmed them. Thus, the expectation is that prices will trade in the new direction, changing the market bias from bullish to bearish, or vice versa.
Let's look at the example in the chart, where the four candles of this setup are marked. Note that we have selected a perfect setup, where all conditions are met.
Candle 1: This bar traded into a key price area at the top of the range, spanning several months.
Candle 2: This bar traded outside the range of Candle 1, but failed to close outside. This is the reversal.
Candle 3: The wick of this bar formed at or below the equilibrium zone of Candle 2, and it closed outside the range of Candle 2. This is the expansion.
Candle 4: At this point, the setup is complete, and the expectation for this candle is that it will trade in the same direction. The top of the candle is at or below the equilibrium zone of Candle 3. This is the continuation.
In a strong setup, the top or bottom of the next bar will form inside the equilibrium zone defined by the highlighted areas on candles 2 and 3.
This is a perfect bearish setup, featuring all elements. Not all setups will be like this, but when this setup occurs, it is important for traders to be aware of it.
The tool is highly customizable from the settings panel and features real-time alerts at candle 2 and 3 confirmations.
Now, let's take a broader view of the same chart. We have disabled the display of candle 2 and filtered the setups with a length of 50.
As we can see, most of the last 17 setups found on the EUR/USD daily chart lead to multi-day or multi-month price movements.
🔹 Filtering Reversals
The tool features a reversals filter that is disabled by default. This filter allows us to filter out minor reversals and display only those that are important.
Traders can adjust the length parameter to display reversals only at the top or bottom of the last N specified bars. We can see some examples in the chart.
🔹 Wick Threshold
From the settings panel, traders can fine-tune the equilibrium zone for candle 2.
If the wick exceeds the threshold expressed as a percentage of the total bar range, the equilibrium zone will be calculated based only on the wick. In all other cases, the full bar range will be used.
🔶 SETTINGS
Candle 2 (Reversal): Enable or disable Candle 2 reversals.
Candle 3 (Expansion): Enable or disable Candle 3 expansions.
Reversals Filter: Filter reversals as the highest or lowest of the last N bars.
Wick Threshold %: Filter wicks as percentage of total bar range.
🔹 Style
Bullish Color: Select bullish color.
Bearish Color: Select bearish color.
Transparency: Select the transparency level. 0 is solid and 100 is fully transparent.
Levels: Enable or disable the horizontal levels.
Candle 2 Zone: Enable or disable the Candle 2 equilibrium zones.
Candle 3 Zone: Enable or disable the Candle 3 equilibrium zones.
🔹 Alerts
Candle 2 Alerts: Enable or disable Candle 2 alerts.
Candle 3 Alerts: Enable or disable Candle 3 alerts.
Indicator

SMA MAD Trend [Alpha Extract]A sophisticated trend identification system that combines Simple Moving Average with Mean Absolute Deviation methodology to create adaptive Super Trend-style bands with advanced strength filtering and gradient visualization. Utilizing ADX-based trend strength validation and slope analysis for signal quality enhancement, this indicator delivers institutional-grade trend detection with dynamic ATR-based ribbon visualization and comprehensive strength measurement. The system's dual-filter architecture eliminates false signals during weak or choppy market conditions while maintaining sensitivity to genuine trend establishment and reversal events.
🔶 Advanced SMA-MAD Band Construction
Implements innovative Mean Absolute Deviation calculation around Simple Moving Average baseline to create volatility-adaptive bands with ratcheting logic for trend persistence. The system calculates MAD by measuring absolute price deviations from the mean, then applies configurable multipliers to generate upper and lower bands that adjust to changing market conditions while preventing premature band violations.
// Core SMA-MAD Framework
SMA_Value = ta.sma(close, SMA_Length)
Mean = ta.sma(close, MAD_Length)
Abs_Deviation = abs(close - Mean)
MAD_Value = ta.sma(Abs_Deviation, MAD_Length)
// Adaptive Bands
Upper_Band = SMA_Value + MAD_Factor * MAD_Value
Lower_Band = SMA_Value - MAD_Factor * MAD_Value
🔶 Intelligent Dual-Filter System
Features comprehensive trend validation using ADX strength measurement and slope analysis to eliminate low-conviction signals during ranging or consolidating markets. The system calculates normalized slope strength using ATR scaling and combines with ADX threshold analysis, generating filtered trend states that distinguish genuine trends from temporary price fluctuations.
🔶 Dynamic Trend Strength Engine
Implements sophisticated strength calculation combining slope intensity and ADX readings to produce normalized 0-100% strength scores with gradient colour intensity modulation. The system normalizes slope by minimum threshold and ADX by configurable level, multiplying factors to create composite strength measurement that drives visual feedback intensity across all indicator elements.
🔶 Super Trend-Style Direction Logic
Utilizes classic Super Trend methodology adapted for SMA-MAD bands, where trend direction flips occur on opposite band violations with persistent state maintenance. The system tracks previous band levels with ratcheting behaviour that adjusts bands only when price movement or new calculations warrant changes, preventing oscillation during normal volatility.
🔶 ATR-Based Ribbon Visualization
Provides dynamic ribbon overlay using ATR-scaled width around the trend line with opacity modulation based on trend strength for intuitive conviction assessment. The system creates upper and lower ribbon bounds at configurable ATR multiples, filling the channel with gradient-adjusted transparency that increases during strong trends and fades during weak conditions.
🔶 Multi-Dimensional Visual Architecture
Provides complete chart integration through trend line overlay, ATR ribbon fills, candle colouring, background glow, and transition signal labels with configurable visibility toggles. The system enables traders to customize display density from minimal (trend line only) to comprehensive (all visual elements) while maintaining consistent colour scheme and strength-based intensity across components.
🔶 Slope Strength Validation
Calculates ATR-normalized slope over configurable lookback periods to measure trend line momentum and filter sideways price action. The system compares absolute slope against minimum threshold requirements, preventing trend signals when price movement relative to the trend line lacks sufficient directional conviction regardless of band position.
🔶 Signal Generation Framework
Generates trend change signals when filtered direction state transitions from bearish to bullish or vice versa, with label placement and alert integration. The system implements state persistence that maintains previous trend until both ADX and slope filters confirm directional change, reducing whipsaw signals while capturing genuine reversals with minimal lag.
🔶 Performance Optimization Framework
Utilizes efficient calculation methods with optimized variable management and configurable parameters for balance between responsiveness and stability. The system includes intelligent state tracking with NA handling for initial bars and smooth gradient calculations that maintain performance across extended historical periods and real-time updates.
This indicator delivers sophisticated trend identification through Mean Absolute Deviation methodology combined with dual-strength filtering for superior signal quality. Unlike traditional Super Trend indicators that rely solely on ATR bands, the SMA-MAD approach uses statistical deviation measurement while incorporating ADX strength and slope validation to eliminate false signals during choppy conditions. The system's gradient-based visual feedback, ATR ribbon visualization, comprehensive dashboard, and multi-dimensional filtering make it essential for traders seeking reliable trend-following approaches with clear conviction measurement across cryptocurrency, forex, and equity markets. The combination of adaptive bands, strength-based transparency, and intelligent filtering creates an institutional-grade trend system suitable for systematic trading strategies. Indicator
