OPEN-SOURCE SCRIPT

AetherEdge SMC AI Confidence Engine

920
🖊️ Overview
AetherEdge SMC AI Confidence Engine is a next-generation SMC engine fusing Smart Money Concepts—the language of institutional footprints—with 8-factor AI confidence scoring and kNN pattern matching. It auto-detects the three pillars of smart-money zones (Order Blocks, Fair Value Gaps, Liquidity Sweeps) and instantly delivers an A+ to D conviction grade by integrating eight weighted factors: structure integrity, displacement, volume, MTF consensus, kNN similarity, imbalance, freshness, and confluence. A data-driven SMC intelligence that answers the eternal question: "Which zone is real?"

🔶 Key Features

3 Core SMC Zone Detection: Order Block / Fair Value Gap / Liquidity Sweep
8-Factor AI Scoring: Structure / Displacement / Volume / MTF / kNN / Imbalance / Freshness / Confluence
kNN Pattern Matching: 5-D feature space, K-nearest historical analogs
A+/A/B/C/D Grades: Intuitive five-tier conviction ranking
3-Layer MTF Consensus: 1H / 4H / D triple confirmation
BOS/CHoCH Detection: Auto-identifies structural breaks
Mitigation Tracking: Records zone-touch events; Fresh/Mitigated state
Confluence Detection: Auto-bonuses overlapping zones
Dynamic Visualization: Transparency, border & size scale with score
Top-Zone Detail Panel: Full 8-factor breakdown with bar visualization
Ranking Table: Up to 10 zones sorted by composite score
Custom Weights: Tune all 8 factors to fit your trading style

🧠 Technical Architecture

This indicator elevates SMC theory into a statistical / machine-learning framework, delivering industry-leading smart-money intelligence.

Zone Detection Logic:
Order Block: Strong displacement (ATR×1.5+) + volume Z>0.5 + BOS triggers backward scan to last opposite-colored candle
FVG: 3-bar gap exceeding ATR × fvgMinSize
Liquidity Sweep: Recent swing pierced by sweepTol × ATR then reversal close
8-Factor Scoring (each normalized 0–100):
Structure Integrity — trend alignment + BOS bonus
Displacement Strength — birth-time displacement magnitude
Volume Profile — birth-time volume Z-score
MTF Consensus — sum of 3 HTF EMA20/50 slopes (–3 to +3)
kNN Pattern Match — 5-D feature K-NN average forward magnitude
Imbalance Ratio — zone size ÷ ATR
Freshness/Age — exp(-age/150) decay, –30 if mitigated
Confluence Score — bonus per overlapping zone
kNN Engine:
Features: displacement / volZ / bodyRatio / atrRatio / rangeRatio
300-bar history buffer, K=5 nearest by Euclidean distance
Average 5-bar-forward absolute move scored probabilistically
Weighted Composite: composite = Σ(factor_i × weight_i) / Σweights
Dynamic Update: All active zones rescored every confirmed bar
Grade Mapping: ≥85=A+, ≥75=A, ≥65=B, ≥50=C, <50=D
⚙️ Recommended Settings & Tuning Guide

Crypto Defaults:

BTC (4H–D): Pivot=5, OBLookback=50, MTF=4H/D/W
ETH (1H–4H): Pivot=5, fvgMinSize=0.3, MTF=1H/4H/D (standard)
SOL (high-vol): Pivot=7, sweepTol=0.15, fvgMinSize=0.4
XRP (short-swing): Pivot=3, OBLookback=30, MTF=15M/1H/4H
Pivot Length (structure sensitivity):

3: agile, noisy
5: standard
7–10: major-structure only, HTF use
FVG Min Size:

0.2: catch fine gaps
0.3: standard
0.5: strong FVGs only
Weight Tuning by Style:

Trend Follower: Structure↑, MTF↑, Displacement↑
Counter-Trader: kNN↑, Freshness↑, Imbalance↑
Scalper: Volume↑, Displacement↑, Freshness↑
Swing Trader: MTF↑, Confluence↑, Structure↑
Min Score Display:

40: standard (hide D)
65: B+ only, clean view
75: A+ only, ultra-curated
kNN Config:

K=3: sharp similarity, unstable
K=5: standard
K=10–15: smooth, averaged

💡 How to Use in Practice

A+ Zones (≥85%): Gold-bordered ultimate-conviction zones, primary thesis
A Zones (75–85%): High quality, multi-factor agreement, entry candidates
B Zones (65–75%): Reference level, combine with other evidence
C/D (<65%): Information only, generally ignore
Fresh + A+: Untouched apex zone, optimal ambush
Mitigated + High Score: Past battlefield, high re-test reaction probability
Confluence Areas: OB + FVG + Sweep overlap = institutional decision zones
Trade Scenarios:
Bull OB A+ + MTF Strong Bull: Golden pullback long
Bear FVG A + Liquidity Sweep up-pierce: Short opportunity
BOS Up + Recent A+ Zone: Trend-confirmation entry
AetherEdge Synergy:
Self-Evolving S/R Grid: A+ zone + strong S/R line overlap = ultimate alignment
LSTM Forecaster: Bullish prediction + Bull OB A+ = dual AI conviction
NeuraNet Predictor: Direction match + zone reach = high-probability entry
All-in-One Dashboard: HIGH-CONVICTION + A+ zone = supreme alignment
Multi-TF Workflow: Identify A+ zones on D/4H → precise entry on 1H/15M

⚠️ Important Notes

kNN Warm-up: <300 bars yields unstable similarity, fixed 50-score
Zone Cap: Oldest zones auto-pruned beyond maxZones
Weight Normalization: Auto-normalized regardless of total—relative influence
MTF Lag: HTF references confirmed bars; first few bars unfinalized
Detection Delay: Pivots confirm pivotlen bars later; real-time slight delay
Zone Overlap: Same OB may be detected multiple times—use as confluence signal

🚨 Disclaimer

This indicator is an SMC analysis support tool provided for educational and research purposes only and does not constitute financial advice. AI confidence scores are probabilistic indicators based on mathematical approximation and do not guarantee future profits. Scores are one input among many—combine with independent analysis and proper risk management.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.