Astral Flux Architect [JOAT]Astral Flux Architect – Institutional-Grade Trend & Confluence Suite
Introduction
Astral Flux Architect (AFA) is a professional, closed-source indicator built for traders who demand institutional-level clarity without exposing internal logic. It combines a zero-lag trend ribbon, multi-indicator momentum engine, regime state detection, multi-timeframe confirmation, volatility bands, volume analytics, swing structure, divergences and a compact dashboard into one unified visual system.
AFA is designed to be:
Clean enough for discretionary traders who hate chart clutter
Structured enough for systematic traders who think in rules and regimes
Flexible enough to adapt from lower intraday charts up to swing and position trading
This script is public but closed source . You can load it on any chart, change inputs, and use all features freely, but the underlying Pine Script v6 code is protected to prevent low-effort counterfeit copies and to comply with TradingView’s House Rules.
Core Functionality Overview
AFA is organised into several cooperating engines:
Trend Ribbon Engine – Five stacked moving averages (user-selectable type) form a zero-lag directional ribbon with colour-coded alignment.
Momentum Confluence Engine – RSI, MACD and ADX are blended into a single confluence score so you can quantify trend agreement at a glance.
Regime State Machine – Converts raw signals into stable Bullish , Bearish or Neutral regimes with debounce and minimum hold logic.
MTF Confirmation Layer – Optional higher-timeframe (HTF) checks that gate or filter signals based on HTF trend and momentum.
Volatility Band Engine – ATR-based envelopes that expand and contract with volatility percentile, framing fair-value vs. extension.
Volume Intelligence Layer – Compares current volume to adaptive baselines to highlight conviction vs. weak participation.
Structure & Divergence Module – Auto-detected swing highs/lows, structure break alerts and optional RSI-based divergences.
Strength Meter & Dashboard – A right-side panel that summarises bias, strength and HTF alignment without needing extra subcharts.
Visual Map – What You See on the Chart
Ribbon – Five lines following price:
– Deep/bright greens = strong bullish alignment (fast MAs above slow).
– Deep/bright reds = strong bearish alignment (fast MAs below slow).
– Neutral blues/greys = transition / compression.
Band Envelopes
– Semi-transparent band around price derived from ATR.
– Upper band: potential extension / take-profit or fade area.
– Lower band: potential discount / bid zone in bullish regimes and breakdown area in bearish regimes.
Background Tint
– Soft green background = bullish regime confirmed.
– Soft red background = bearish regime confirmed.
– Neutral/very light background = no active regime (chop, transition).
Swing Markers & Structure Lines
– Small "H" labels mark confirmed swing highs; small "L" labels mark confirmed swing lows.
– Dashed horizontal lines extend from recent pivots to visualise active support/resistance.
Divergence Markers (optional)
– Tiny green diamonds below price = bullish RSI divergence (price lower low, RSI higher low).
– Tiny red diamonds above price = bearish RSI divergence (price higher high, RSI lower high).
Strength Meter
– A compact percentage widget on the right side representing combined trend+momentum+volume strength from 0–100.
– Darker colour + higher value = more decisive trend environment.
Astral Flux Dashboard (top-right by default)
– Header: ASTRAL FLUX + current symbol.
– "REGIME": Bullish / Bearish / Neutral, colour-coded.
– "CONFLUENCE": −100 to +100, summarising trend+momo alignment.
– "TREND": textual rating (Strong / Weak / Flat) with score.
– "RSI", "MACD", "ADX" rows: quick assessment of each component.
– "HTF": Higher-timeframe bias (Bull / Bear / Mixed) when HTF is enabled.
Engines in Detail
1. Trend Ribbon Engine
Five moving averages with user-selectable type: EMA, SMA, ZEMA, DEMA, TEMA, HMA, ALMA, KAMA.
Defaults: 8 / 21 / 55 / 100 / 200 – a blend of short-term reactivity and institutional anchor levels.
Ribbon colouring encodes both direction and ordering:
– All stacked bullish (fast above slow) = strong bullish environment.
– All stacked bearish (fast below slow) = strong bearish environment.
– Mixed stacking or tight clustering = transition or compression.
Fills between the lines visually highlight compression/expansion phases.
2. Momentum Confluence Engine
RSI checks whether price is building strength (above bull threshold), losing strength (below bear threshold) or neutral.
MACD checks if momentum agrees with price direction (line vs. signal, above/below zero).
ADX evaluates whether conditions are trending (above threshold) or ranging.
A vote is assigned by each component (bull, bear or neutral), then combined with ribbon alignment into a Confluence Score from −100 to +100.
This score is displayed in the dashboard and used by the regime detector and alerts.
3. Regime State Machine
Raw conditions (trend score + confluence + anti-chop filters) propose bullish or bearish states.
Debounce logic requires a minimum number of confirm bars before flipping.
Minimum hold time prevents immediate flip-flopping in chop.
Final regimes:
– Bullish : background tinted green; bullish alerts active.
– Bearish : background tinted red; bearish alerts active.
– Neutral : no tint; best to stand aside or reduce size.
4. Multi-Timeframe Confirmation Layer
Pulls higher-timeframe data (e.g., 4H while trading 45m) using Pine Script v6 non-repainting request patterns.
Evaluates HTF trend (MAs), HTF RSI zone and HTF MACD orientation.
Modes:
– Display : show HTF row in dashboard, no gating.
– Filter : disallow entries against a strong opposite HTF trend.
– Strict : only allow trades when LTF and HTF agree.
5. Volatility Band Engine
Bands are based on ATR length + multiplier with optional dynamic scaling via volatility percentile.
Use cases:
– Identify stretched moves (price pinned outside band).
– Frame pullback zones (mid-band and opposite band).
– Combine with regime to avoid shorting strong bull trends too early.
6. Volume Intelligence Layer
Compares current volume to a rolling baseline.
Flags high-volume bursts (potential genuine moves) vs. low-volume drifts (low conviction).
Feeds into the strength meter and high-volume alerts.
7. Structure & Divergence Module
Automatically finds swing highs/lows with user-controlled lookback.
Draws short horizontal lines to mark tradable structure.
Generates alerts on:
– Bullish structure breaks (price clearing prior swing highs).
– Bearish structure breaks (price losing prior swing lows).
Optional RSI divergence detection (bullish and bearish) for advanced timing.
8. Strength Meter & Dashboard
Strength meter condenses trend score, confluence, ADX and volume into a simple 0–100 scale.
Dashboard text is intentionally concise: every row answers a specific question (Who is in control? How strong? Is HTF aligned?).
Colours are tuned for both dark and light theme visibility using blended midnight-blue backgrounds and high-contrast text.
Inputs & Customisation (Detailed)
Trend Ribbon Settings
– MA Type, lengths, plot visibility and fill transparency.
– Ideal workflow: leave the base stack at 8/21/55/100/200 and adjust type per asset (HMA/ALMA for crypto, EMA/ZEMA for FX, KAMA for indices).
Momentum Confluence
– Tune RSI thresholds tighter for scalping, wider for swing trading.
– Adjust ADX threshold to define what you consider a "real" trend.
Regime Detector
– ATR separation multiplier filters out flat MAs.
– Slope ROC and minimum hold bars balance responsiveness vs. stability.
Multi-Timeframe
– Choose HTF (e.g., trade 15m with 1H, trade 1H with 4H, trade 4H with 1D).
– Switch between Display, Filter, Strict depending on how aggressively you want to enforce alignment.
Volatility Bands
– Tune ATR length/multiplier per asset.
– Enable dynamic mode when volatility regimes vary strongly over time.
Visual Settings
– Toggle background tint, bar colours, structure, divergences, dashboard and meter individually for ultra-clean or fully-instrumented layouts.
Practical Workflows
1. Intraday Trend-Following (5–15m)
Use HTF = 1H or 4H in Filter mode.
Look for AFA bullish regime + HTF bull alignment + confluence above +30.
Enter on pullbacks toward the mid-band or slow ribbon MAs.
Partial take-profit at upper band; trail behind ribbon or recent swing lows.
2. Swing Trading (1H–4H)
HTF = 1D, mode Strict .
Focus on clear regime shifts after prolonged neutral/chop periods.
Use structure breaks plus high confluence for initial entries.
Use divergences and strength meter > 80 to manage exits on exhaustion.
3. Mean-Reversion Windows
Only consider counter-trend plays when:
– Strength meter > 85.
– Price extended beyond the outer band.
– Divergence appears or structure refuses further extension.
Reduce position size relative to with-trend trades.
Alerts
AFA ships with a rich alert set (exact names may vary with future updates):
Bullish / Bearish Regime Start
Strong Bull / Bear Confluence
Upper / Lower Band Touch in active regime
Bullish / Bearish Structure Break
High-Volume Bull / High-Volume Bear
Bullish / Bearish Divergence
Recommended: attach alerts to a higher timeframe chart (e.g., 1H/4H) and then drill into lower timeframes to refine entries.
Best Practices
Treat AFA as a decision-support system , not a signal spammer.
Let regime and HTF alignment define your directional bias first.
Use confluence and strength meter to time entries, not to force trades.
Keep risk management external (position sizing, stop placement and portfolio rules are still your responsibility).
Test on your favourite asset/timeframe combinations before going live.
Publishing Rules & IP / Reuse Notice
This indicator is published on TradingView as public, closed source . It follows TradingView House Rules. Using this tool on your charts is fully allowed.
Disclaimer
Astral Flux Architect is an educational and analytical tool, not financial advice. Markets are risky; there is no guarantee of profit or protection from loss. Always test configurations on historical data and paper trading before applying them to live capital, and make sure your risk per trade and overall exposure are appropriate for your situation.
-Made with passion by officialjackofalltrades
Pine Script® indicator






















