OPEN-SOURCE SCRIPT
Adaptive Confluence Engine [StrixEDGE]

Adaptive Confluence Engine [StrixEDGE]
🔷 HOW IT WORKS
The indicator evaluates the market through four independent modules. Each module scores the current bar as bullish (+1), bearish (−1), or neutral (0). Volume and volatility modules act as confirmation filters and score +1 (confirmed) or 0 (not confirmed). The individual scores are aggregated into a confluence score ranging from 0 to 4 for each direction.
A signal fires only when:
→ The confluence score crosses above the minimum threshold (transition detection)
→ The previous signal was in the opposite direction (flip-only logic — no consecutive Buy-Buy or Sell-Sell)
→ A cooldown period has elapsed since the last signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 THE FOUR MODULES
MODULE 1 — TREND
Uses a Hull Moving Average (HMA) for responsive trend direction and a Weighted Moving Average (WMA) as a trend position filter. Bullish: HMA rising AND price above WMA. Bearish: HMA falling AND price below WMA. The HMA reacts faster than a standard EMA while filtering out noise, and the WMA acts as a structural trend gate.

MODULE 2 — MOMENTUM
Combines RSI zone analysis with MACD histogram acceleration. RSI is evaluated against configurable directional thresholds (default 55/45), not traditional overbought/oversold levels. The MACD histogram must be positive AND increasing for bullish momentum (or negative AND decreasing for bearish). This captures momentum that is actively building, not fading.

MODULE 3 — VOLUME
Volume must exceed its simple moving average by a configurable multiplier AND the short-term volume trend (5-bar SMA) must be rising relative to the medium-term (10-bar SMA). This confirms that participation is genuine and sustained, not a single-bar spike.

MODULE 4 — VOLATILITY FILTER
Calculates the ATR percentile rank over a configurable lookback period. Signals are suppressed when volatility falls below the low percentile (indicating a dead, range-bound market with no follow-through potential) or above the high percentile (indicating chaotic conditions where stops are too wide and reversals too sudden). Only the "sweet spot" of volatility passes.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 SIGNAL LOGIC
The signal generation uses three layers of filtering:
1. Transition Detection — Signals fire only on the bar where the confluence score first crosses the minimum threshold, not on every bar it remains above it.
2. Flip-Only Mode — After a Buy signal, the next signal must be a Sell (and vice versa). This prevents consecutive same-direction signals and ensures alternating entries.
3. Cooldown — A configurable minimum number of bars must pass between any two signals, preventing rapid-fire entries during volatile transitions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 VISUAL FEATURES
→ Buy / Sell labels with exact entry price displayed on the chart

→ Entry price horizontal line (persists for 20 bars after signal)
→ ATR-based dynamic stop-loss levels
→ Hull Moving Average (colored by direction) and WMA overlay
→ Background shading when confluence is active
→ Real-time dashboard showing status of all four modules, ATR reading with percentile, and aggregate confluence score

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 SETTINGS GUIDE
Trend Module
• Fast HMA Length (default 9) — Lower values react faster but produce more noise.
• Slow WMA Length (default 21) — The structural trend gate. Higher values require stronger trends.
Momentum Module
• RSI Bullish/Bearish Threshold (default 55/45) — These are directional filters, not overbought/oversold. Widen to 60/40 for stricter momentum requirements.
• MACD settings (12/26/9) — Standard defaults. Adjust for faster or slower momentum reads.
Volume Module
• Volume SMA Length (default 20) — Lookback for average volume calculation.
• Volume Threshold (default 1.0) — Multiplier applied to the volume SMA. Increase to 1.2–1.5 to require above-average volume.
Volatility Filter
• ATR Length (default 14) — Period for ATR calculation.
• ATR Lookback (default 100) — Number of bars for percentile ranking.
• Low/High Vol. Percentile (default 10/90) — Defines the acceptable volatility range. Narrow to 20/80 for stricter regime filtering.
Signal Control
• Min. Confluence Score (default 3) — Number of modules that must agree. Higher = fewer but higher-quality signals.
• Signal Cooldown (default 5 bars) — Minimum spacing between signals.
• Stop-Loss ATR Multiple (default 1.5) — Distance of the stop-loss from the signal bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 WHAT MAKES THIS ORIGINAL
StrixEDGE does not replicate any single built-in indicator. Its value lies in the confluence scoring architecture: four independent analysis dimensions, each evaluating a different market property (direction, momentum, participation, regime), aggregated through a transition-based scoring system with flip-only signal control. The combination of ATR percentile volatility filtering, MACD histogram acceleration (not just crossover), and alternating-direction signal enforcement creates a framework that is structurally distinct from standard indicator overlays.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 RECOMMENDED USE
Designed for day trading timeframes (15-minute to 1-hour charts). Works across all markets with volume data: crypto, forex, stocks, indices, commodities. Start with the default settings and adjust based on the instrument's behavior. Use the dashboard to understand why signals fire or don't fire.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is a technical analysis tool, not financial advice. No indicator guarantees profitable outcomes. Past performance of any signal does not indicate future results. Always apply proper risk management and use this tool as one component of a complete trading plan.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 alert conditions available: Buy Signal, Sell Signal, Any Signal, Bull Active, Bear Active.
🔷 HOW IT WORKS
The indicator evaluates the market through four independent modules. Each module scores the current bar as bullish (+1), bearish (−1), or neutral (0). Volume and volatility modules act as confirmation filters and score +1 (confirmed) or 0 (not confirmed). The individual scores are aggregated into a confluence score ranging from 0 to 4 for each direction.
A signal fires only when:
→ The confluence score crosses above the minimum threshold (transition detection)
→ The previous signal was in the opposite direction (flip-only logic — no consecutive Buy-Buy or Sell-Sell)
→ A cooldown period has elapsed since the last signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 THE FOUR MODULES
MODULE 1 — TREND
Uses a Hull Moving Average (HMA) for responsive trend direction and a Weighted Moving Average (WMA) as a trend position filter. Bullish: HMA rising AND price above WMA. Bearish: HMA falling AND price below WMA. The HMA reacts faster than a standard EMA while filtering out noise, and the WMA acts as a structural trend gate.
MODULE 2 — MOMENTUM
Combines RSI zone analysis with MACD histogram acceleration. RSI is evaluated against configurable directional thresholds (default 55/45), not traditional overbought/oversold levels. The MACD histogram must be positive AND increasing for bullish momentum (or negative AND decreasing for bearish). This captures momentum that is actively building, not fading.
MODULE 3 — VOLUME
Volume must exceed its simple moving average by a configurable multiplier AND the short-term volume trend (5-bar SMA) must be rising relative to the medium-term (10-bar SMA). This confirms that participation is genuine and sustained, not a single-bar spike.
MODULE 4 — VOLATILITY FILTER
Calculates the ATR percentile rank over a configurable lookback period. Signals are suppressed when volatility falls below the low percentile (indicating a dead, range-bound market with no follow-through potential) or above the high percentile (indicating chaotic conditions where stops are too wide and reversals too sudden). Only the "sweet spot" of volatility passes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 SIGNAL LOGIC
The signal generation uses three layers of filtering:
1. Transition Detection — Signals fire only on the bar where the confluence score first crosses the minimum threshold, not on every bar it remains above it.
2. Flip-Only Mode — After a Buy signal, the next signal must be a Sell (and vice versa). This prevents consecutive same-direction signals and ensures alternating entries.
3. Cooldown — A configurable minimum number of bars must pass between any two signals, preventing rapid-fire entries during volatile transitions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 VISUAL FEATURES
→ Buy / Sell labels with exact entry price displayed on the chart
→ Entry price horizontal line (persists for 20 bars after signal)
→ ATR-based dynamic stop-loss levels
→ Hull Moving Average (colored by direction) and WMA overlay
→ Background shading when confluence is active
→ Real-time dashboard showing status of all four modules, ATR reading with percentile, and aggregate confluence score
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 SETTINGS GUIDE
Trend Module
• Fast HMA Length (default 9) — Lower values react faster but produce more noise.
• Slow WMA Length (default 21) — The structural trend gate. Higher values require stronger trends.
Momentum Module
• RSI Bullish/Bearish Threshold (default 55/45) — These are directional filters, not overbought/oversold. Widen to 60/40 for stricter momentum requirements.
• MACD settings (12/26/9) — Standard defaults. Adjust for faster or slower momentum reads.
Volume Module
• Volume SMA Length (default 20) — Lookback for average volume calculation.
• Volume Threshold (default 1.0) — Multiplier applied to the volume SMA. Increase to 1.2–1.5 to require above-average volume.
Volatility Filter
• ATR Length (default 14) — Period for ATR calculation.
• ATR Lookback (default 100) — Number of bars for percentile ranking.
• Low/High Vol. Percentile (default 10/90) — Defines the acceptable volatility range. Narrow to 20/80 for stricter regime filtering.
Signal Control
• Min. Confluence Score (default 3) — Number of modules that must agree. Higher = fewer but higher-quality signals.
• Signal Cooldown (default 5 bars) — Minimum spacing between signals.
• Stop-Loss ATR Multiple (default 1.5) — Distance of the stop-loss from the signal bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 WHAT MAKES THIS ORIGINAL
StrixEDGE does not replicate any single built-in indicator. Its value lies in the confluence scoring architecture: four independent analysis dimensions, each evaluating a different market property (direction, momentum, participation, regime), aggregated through a transition-based scoring system with flip-only signal control. The combination of ATR percentile volatility filtering, MACD histogram acceleration (not just crossover), and alternating-direction signal enforcement creates a framework that is structurally distinct from standard indicator overlays.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔷 RECOMMENDED USE
Designed for day trading timeframes (15-minute to 1-hour charts). Works across all markets with volume data: crypto, forex, stocks, indices, commodities. Start with the default settings and adjust based on the instrument's behavior. Use the dashboard to understand why signals fire or don't fire.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is a technical analysis tool, not financial advice. No indicator guarantees profitable outcomes. Past performance of any signal does not indicate future results. Always apply proper risk management and use this tool as one component of a complete trading plan.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5 alert conditions available: Buy Signal, Sell Signal, Any Signal, Bull Active, Bear Active.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
✅MY Free Signals Telegram
t.me/StrixEdge
✅Website
strix-edge.com
t.me/StrixEdge
✅Website
strix-edge.com
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
✅MY Free Signals Telegram
t.me/StrixEdge
✅Website
strix-edge.com
t.me/StrixEdge
✅Website
strix-edge.com
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน