Sovereign Execution [JOAT] — Strategy by officialjackofalltrades

By officialjackofalltrades

Performance Metrics

Description

Sovereign Execution [JOAT]IntroductionSovereign Execution is an open-source multi-layer trading strategy that synthesizes five independent analytical engines into a unified execution framework. Rather than relying on a single indicator or a simple crossover, this strategy requires alignment across regime classification, momentum displacement, session timing, imbalance confluence, and multi-timeframe bias scoring before any trade is taken. The result is a highly selective system that filters out low-conviction setups and only enters when multiple independent analytical dimensions agree.The strategy uses ATR-based adaptive stop-losses, configurable risk-reward ratio targets, optional trailing stops, and multiple exit conditions including regime flips and opposite displacement detection. It is designed for traders who want a systematic, rules-based approach to execution with full transparency into every decision the system makes.Why This Strategy ExistsMost trading strategies suffer from one of two problems: they are either too simple (single-indicator entries that generate excessive noise) or too complex (dozens of conditions that are impossible to understand or debug). Sovereign Execution occupies the middle ground by using exactly five analytical layers, each addressing a different aspect of market conditions:Regime Cipher: Is the market trending or compressing? Only trade in trending regimes.Displacement Lens: Is there institutional momentum right now? Only enter on confirmed displacement.Session Filter: Is the market in an active trading session? Avoid low-liquidity periods.Imbalance Confluence: Is there a Fair Value Gap nearby? Optional confirmation of institutional interest.Confluence Ledger: Do multiple timeframes agree on direction? Only trade when the score exceeds the threshold.Each layer acts as an independent filter. A trade only fires when ALL active filters align simultaneously. This multi-gate approach dramatically reduces false signals compared to single-indicator strategies.Module 1: Regime Cipher — Trend and Volatility ClassificationThe regime engine uses an Outlier-Resistant Moving Average (ORMA) as its foundation. The ORMA applies a square-root transformation to price, calculates a base moving average (configurable: EMA, SMA, RMA, WMA, HMA, DEMA, or TEMA), then applies a volatility-dampening filter using the ratio of full ATR to half-period ATR. This creates a moving average that is responsive to genuine trend changes but resistant to outlier spikes.ATR-based bands are drawn above and below the ORMA. When price closes above the upper band, the regime is classified as Trending Bull. When price closes below the lower band, Trending Bear. The strategy also monitors Bollinger Band width relative to its 50-bar average to detect compression (BB width below 85% of average) and expansion (above 110%).The key rule: the strategy only takes trades when the regime is Trending (not Compressed or Transitional). This single filter eliminates the majority of choppy, range-bound conditions where most strategies bleed money.Module 2: Displacement Lens — Momentum TimingThe displacement engine normalizes three momentum oscillators (Bollinger %B, CCI, ROC) to a [-1, +1] scale and blends them with a volume-weighted candle body analysis. The composite is smoothed with an EMA and compared against adaptive threshold bands calculated from the signal's own standard deviation.A "strong bull displacement" occurs when the composite exceeds the upper threshold — meaning momentum, volume, and candle structure all confirm bullish institutional activity. Strong bear displacement is the mirror condition. The strategy only enters when displacement confirms the regime direction.Module 3: Session FilterTrading sessions are defined by UTC hour ranges (configurable for Asia, London, and New York). When the session filter is enabled (default), the strategy only takes trades during active sessions. This avoids entries during low-liquidity periods (overnight gaps, holiday hours) where spreads widen and price action is unreliable.The session filter is optional — it can be disabled for instruments that trade 24/7 with consistent liquidity (e.g., major crypto pairs).Module 4: FVG Confluence (Optional)When enabled, the strategy scans the last 10 bars for Fair Value Gaps in the entry direction. A bullish FVG (gap up in price delivery) near the entry confirms institutional buying interest. A bearish FVG confirms selling interest. This filter is optional (default off) because not all valid setups occur near FVGs, but when enabled, it adds an additional layer of institutional confirmation.Module 5: Confluence Score — Multi-Timeframe Bias GateThe strategy calculates a simplified confluence score combining trend alignment, momentum, volatility state, market structure, and volume conviction on the current timeframe, then blends it with a higher timeframe score (default 4H) at a 40/60 weighting (HTF gets more weight).The score is mapped to 0-100. Long entries require the score to exceed the long threshold (default 60). Short entries require the score to be below the short threshold (default 40). This ensures the strategy only trades when multiple analytical dimensions across timeframes agree on direction.Entry ConditionsA long entry requires ALL of the following simultaneously:Regime is Trending Bull (price above upper ORMA band, not compressing)Confluence score >= long threshold (default 60)Strong bullish displacement (composite above adaptive threshold)Active session (if session filter enabled)Recent bullish FVG (if FVG filter enabled)Bar is confirmed (barstate.isconfirmed — no intrabar entries)Short entries require the bearish mirror of all conditions. Edge detection ensures each signal fires only once — no repeated entries on the same setup.Risk ManagementStop-Loss: ATR-based adaptive stop calculated as ATR(14) multiplied by the stop multiplier (default 1.5). For longs, the stop is placed below the entry price by this distance. For shorts, above. This means the stop automatically adapts to the instrument's current volatility — wider stops in volatile markets, tighter stops in calm markets.Take-Profit: Calculated as the stop distance multiplied by the reward-risk ratio (default 2.0). A 1.5 ATR stop with a 2.0 R:R produces a 3.0 ATR take-profit target.Trailing Stop: When enabled (default), the stop is trailed upward (for longs) or downward (for shorts) using the trail ATR multiplier (default 2.0). The trail only moves in the favorable direction — it never moves against the position.Exit ConditionsBeyond the TP/SL levels, the strategy has two additional exit conditions:Regime Flip: If the regime changes from Trending Bull to Trending Bear (or vice versa), or enters Compression, the position is closed immediately. The thesis for the trade no longer holds.Opposite Displacement: If strong displacement fires in the opposite direction of the trade, the position is closed. Institutional momentum has shifted against the position.Default Strategy PropertiesThese are the exact values used in the strategy's Properties dialog:Initial Capital: $100,000 — a realistic account size for the average traderDefault Quantity: 5% of equity per trade — conservative position sizingCommission: 0.04% per trade (round-trip 0.08%) — realistic for most exchangesSlippage: 2 ticks per order — accounts for execution delay and spreadPyramiding: 0 — only one position at a timeCalc on Every Tick: false — entries only on bar close for realistic executionThese settings are intentionally conservative. The commission and slippage values are included to produce realistic backtesting results. Traders should adjust these values to match their specific broker/exchange conditions.VisualizationRegime MA: The ORMA line plotted with a glow effect (crisp line + transparent wider line) colored by trend state — teal for bullish, rose for bearish, gray for neutralATR Bands: Upper and lower bands showing the regime breakout thresholdsSL/TP Levels: When a position is active, the stop-loss (red), take-profit (green), and entry price (gray) are plotted as horizontal linesGradient Candles: Candles colored by the confluence score — transitioning from bearish rose (low score) to bullish teal (high score)Session Background: Subtle amber tint when an active session is in progress10-Row DashboardRow 1: Header — "SOVEREIGN EXECUTION"Row 2: Regime — TREND LONG / TREND SHORT / COMPRESSED / TRANSITIONALRow 3: Displacement — BULL DISP / BEAR DISP / NEUTRALRow 4: Session — ASIA / LONDON / NEW YORK / OFF-SESSIONRow 5: Confluence — Score value + bias classificationRow 6: Volatility — EXPANDING / COMPRESSED / NORMALRow 7: Position — LONG / SHORT / FLATRow 8: Entry — Entry price when in a tradeRow 9: Stop — Current stop-loss levelRow 10: Target — Current take-profit levelInput ParametersExecution Parameters:Risk Per Trade % (default 1.5) — percentage of equity risked per tradeReward:Risk Ratio (default 2.0) — take-profit as multiple of stop distanceATR Stop Multiplier (default 1.5) — stop distance as ATR multipleUse Trailing Stop (default on), Trail ATR Multiplier (default 2.0)Entry Filters:Confluence Threshold Long (default 60) — minimum score for long entriesConfluence Threshold Short (default 40) — maximum score for short entriesRequire Active Session (default on)Require FVG Confluence (default off)Regime Cipher Parameters:Adaptive MA Length (default 27), ATR Length (default 14), ATR Factor (default 1.05)Base MA type (default EMA, options: RMA/SMA/EMA/WMA/HMA/DEMA/TEMA)Displacement Parameters:BB Length (20), BB Multiplier (2.0), CCI Length (23), ROC Length (50)Displacement Smoothing (default 5)Session Filter (UTC):Asia Start/End (0/8), London Start/End (8/14), NY Start/End (14/21)Strategy Limitations and CompromisesEvery strategy involves design compromises. Here are the key ones for Sovereign Execution:Selectivity vs Frequency: The multi-gate filter approach produces fewer trades than single-indicator strategies. On some instruments/timeframes, the strategy may go days without a signal. This is by design — it prioritizes quality over quantity — but it means the strategy needs sufficient historical data to produce a meaningful sample size.Regime Lag: The ORMA-based regime classification has inherent lag. It will not catch the exact top or bottom of a trend. The strategy enters after the trend is confirmed, which means it misses the first portion of moves.Session Filter Limitation: The UTC-based session filter works well for forex and indices but may need adjustment for instruments with non-standard trading hours. Crypto traders may want to disable the session filter entirely.Single Timeframe Execution: While the confluence score incorporates HTF data, entries and exits are executed on the chart's timeframe. Very fast timeframes (1m) may produce noisy signals despite the filters.Backtesting Caveats: All backtesting results are historical and do not guarantee future performance. The strategy uses calc_on_every_tick=false and barstate.isconfirmed to produce realistic entries, but real-world execution will always differ from backtesting due to slippage, partial fills, and latency.No Guarantee of Profitability: This strategy is a systematic framework, not a profit guarantee. Market conditions change, and strategies that worked historically may underperform in different regimes.Recommended UsageUse on liquid instruments (major forex pairs, large-cap stocks, major crypto) for most reliable signalsTest on the 15m to 4H timeframe range — these provide enough bars for the regime and displacement engines while maintaining meaningful session contextEnsure the backtest produces at least 100 trades for statistical significance before drawing conclusionsAdjust commission and slippage to match your specific broker/exchangeConsider the strategy as one component of a broader trading plan, not a standalone systemOriginality StatementThis strategy is original in its multi-layer filter architecture. While individual components (moving averages, momentum oscillators, session filters) are established concepts, this strategy is justified because:It synthesizes five independent analytical engines (regime classification, displacement measurement, session timing, imbalance confluence, multi-TF scoring) into a unified execution framework where ALL must align for entryThe ORMA-based regime engine uses a volatility-dampened, outlier-resistant moving average with ATR bands — not a standard MA crossoverThe displacement engine normalizes three oscillators and blends them with volume-weighted candle body analysis for institutional-grade momentum confirmationThe confluence score combines five analytical dimensions with HTF weighting, producing a quantitative bias gate rather than a subjective assessmentMultiple exit conditions (regime flip, opposite displacement, trailing stop, TP/SL) provide layered risk management beyond simple stop-lossThe strategy uses realistic default settings (commission, slippage, position sizing) and documents all Properties values for transparent backtestingDisclaimerThis strategy 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.Backtesting results shown are historical and do not guarantee future performance. The results of a single backtest run do not constitute proof that the strategy will be profitable in the future. Market conditions change, and strategies that performed well historically may underperform or lose money in different market environments.The default settings (commission 0.04%, slippage 2 ticks, 5% equity per trade, $100,000 initial capital) are designed to produce realistic results. Users should verify these match their trading conditions and adjust accordingly.Always use proper risk management. 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 strategy.-Made with passion by officialjackofalltrades

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView