Aureate Market Architecture Strategy [JOAT]Aureate Market Architecture Strategy
Introduction
Aureate Market Architecture Strategy is an open-source PulseWire strategy that integrates regime classification, structure bias, breakout pressure, liquidity confirmation, and risk management into one confirmed-bar execution model.
The strategy is built for users who want a rules-based implementation of the broader JOAT architecture rather than a single-indicator signal stream.
Its design goal is not to maximize trade count.
Its design goal is to trade only when multiple independent conditions agree:
the market is in an expansion-permitted regime
structure bias supports direction
pressure is strong enough to justify participation
liquidity context confirms the move
risk and daily drawdown constraints allow a new position
This produces a strategy that is intentionally selective and explicitly non-repainting.
Core Concepts
1. Regime Detection
The strategy classifies the market into accumulation, expansion, or exhaustion using ATR behavior, balance width, and normalized breakout pressure.
A persistence requirement prevents the regime state from flipping too quickly.
2. Structure Bias Filter
Directional participation is gated by confirmed medium-term structural breaks, EMA orientation, and price location relative to the fast EMA.
An optional higher-timeframe bias filter can be added using completed higher-timeframe candles only.
3. Pressure Confirmation
Breakout pressure is derived from a composite of multiple ROC windows and smoothed into an adaptive signal.
The strategy does not permit entries unless that signal exceeds its volatility-adjusted threshold.
4. Liquidity Context
The strategy estimates upper and lower liquidity anchors, counts relative touch density, and looks for sweep failure behavior to confirm whether the current move has supportive liquidity context.
5. Risk and Exit Stack
Every position uses an initial stop, a take-profit target based on risk multiple, an adaptive trailing component, a daily loss lockout, and a cooldown after exit.
Features
Three-state regime engine: accumulation, expansion, and exhaustion
Persistence logic: regime changes require confirmation across multiple bars
Structure bias filter: confirmed BOS logic combined with EMA alignment
Optional HTF bias filter: completed higher-timeframe candles only
Adaptive breakout pressure: multi-window ROC model normalized by its own volatility
Liquidity confirmation: anchor touches, sweep failures, and relative-volume support
Long and short entry logic: both directions use the same confirmed-bar architecture
Risk management: ATR-based initial stop, target, trailing logic, and daily loss control
Cooldown control: prevents immediate re-entry after an exit
Dashboard and chart overlays: display current state, active bias, and risk context
Default Strategy Properties
Initial Capital: 100000
Order Size: 10% of equity
Commission Model: Percent
Commission Value: 0.01
Pyramiding: 0
Calc On Order Fills: enabled
Calc On Every Tick: disabled
Input Parameters
Regime Engine
Regime ATR Length
Regime Baseline Length
Balance Window
Accumulation Volatility Threshold
Expansion Volatility Threshold
Regime Persistence Bars
Structure Bias
Short Pivot
Medium Pivot
Fast EMA
Slow EMA
Use Confirmed HTF Bias Filter
HTF Bias Timeframe
Breakout Pressure
Fast ROC
Medium ROC
Slow ROC
Macro ROC
Pressure Smoothing
Pressure Threshold Multiplier
Liquidity Context
Liquidity Window
Sweep Depth ATR
Relative Volume Floor
Risk Management
Initial Stop ATR
Take Profit R Multiple
Trail ATR Multiple
Daily Lockout %
Cooldown Bars After Exit
How to Use This Strategy
Step 1: Treat the Regime as the First Gate
The strategy only wants to be active in the expansion state.
If the dashboard shows accumulation or exhaustion, the system is designed to be more selective or inactive.
Step 2: Check Directional Alignment
The cleanest trades occur when structure bias, EMA alignment, pressure, and liquidity all support the same side.
Step 3: Respect the Risk Model
The stop, target, trail, and daily lockout are part of the strategy logic.
They should not be ignored when evaluating results.
Step 4: Expect Selectivity
This strategy is built to filter aggressively.
Users looking for frequent trades may need different settings or a different methodology.
Step 5: Evaluate Over Enough Trades
No strategy should be judged from a very small sample.
Assess it across enough market conditions to understand where the architecture performs well and where it degrades.
Strategy Limitations
This strategy uses chart-derived liquidity and regime approximations rather than exchange microstructure data
Selective filters can reduce trade frequency substantially on some instruments and timeframes
Backtest results depend on instrument, timeframe, commission, slippage assumptions, and session behavior
Non-repainting logic reduces false signals but can also introduce later entries than predictive systems
Originality Statement
Aureate Market Architecture Strategy is original in the way it integrates regime state, structural confirmation, normalized pressure, liquidity context, and layered risk controls into one coherent execution model.
The purpose of the integration is practical: each component addresses a different failure mode that appears when breakout systems rely on only one dimension of evidence.
Disclaimer
This strategy is provided for educational and informational purposes only.
It is not financial advice and does not guarantee profitability.
Backtest outcomes are hypothetical and derived from historical data.
Live trading includes slippage, execution variance, and market conditions that can differ materially from historical results.
Strategy

Concord Execution Mandate [JOAT]Concord Execution Mandate
Introduction
Concord Execution Mandate is an open-source strategy that combines regime classification, higher-timeframe bias, structure breaks, daily pivot context, reversion-basis reclaim logic, and divergence safety into one execution framework. It is designed to test whether directional entries improve when multiple context layers are aligned rather than relying on a single trigger.
The problem this strategy solves is unstructured execution. Many strategies either enter too often without context or wait for perfect alignment so long that they never engage. Concord Execution Mandate uses a softer confluence model that can still trade frequently while preserving directional context, confirmed-bar logic, realistic costs, and explicit risk controls.
Core Concepts
1. Regime And Context Layer
The strategy starts with an adaptive range-state engine supported by ADX, choppiness, and higher-timeframe EMA bias. These inputs do not all act as hard blockers; instead, they contribute to whether the environment is favorable enough for execution.
2. Structural And Rotation Triggers
Entries can come from confirmed bullish or bearish BOS behavior, continuation crosses back through the regime filter, or more aggressive rotation entries through the daily pivot, reversion basis, or short EMA.
3. Soft Alignment Model
Daily pivot bias, EMA weave bias, geometry bias, and regime location are combined into a directional alignment score. The strategy requires enough agreement to avoid fully random entries, but it does not require every filter to align perfectly before acting.
4. Risk Management
Stops are based on the closer of pivot structure or ATR distance. Targets are expressed as a reward multiple of live risk, and a trailing stop can activate only after price reaches a configurable multiple of initial risk. Context-flip exits can close trades early when directional state changes materially.
Features
Adaptive regime filter: Core state engine for directional context
Higher-timeframe bias: Optional EMA-based external direction filter
Structure triggers: Confirmed BOS logic using stored pivots
Continuation and rotation entries: Additional execution paths beyond BOS
Daily pivot and EMA weave context: Location-versus-bias inputs for alignment scoring
Reversion reclaim logic: Optional re-entry through a mean basis before entry
Divergence safety filter: Optional block on fresh opposing divergence
ATR and structure-based stops: Dynamic risk anchoring
Reward targets and ATR trailing: Structured exit management
Context-flip exits: Early closure when regime or bias reverses
Realistic defaults: Percent-of-equity sizing, commission, and slippage are defined in the strategy properties
Default Strategy Properties
Initial capital: 100000
Default order size: 5 percent of equity
Commission: 0.02 percent
Slippage: 2 ticks
Order processing: on bar close
Pyramiding: 0
How to Use This Strategy
Step 1: Read the dashboard to confirm the current regime, structural state, and whether the entry stack is armed.
Step 2: Use the strategy on instruments and timeframes where directional movement and retracement behavior are both visible enough to generate a meaningful sample.
Step 3: Review whether aggressive rotation entries or stricter reclaim filters better match the market being tested.
Step 4: Keep the published chart clean and use the same Properties values shown in the strategy description when presenting results.
Step 5: Evaluate the strategy using a broad sample of trades rather than isolated trades or one short backtest segment.
Strategy Limitations
This strategy still relies on lagging structure confirmation and can miss the first portion of fast reversals
More aggressive settings can increase trade count at the cost of lower selectivity
Higher-timeframe bias can conflict with local execution context during turning points
Backtest results depend on symbol, timeframe, session behavior, and execution assumptions
This strategy is designed to be realistic, not optimized for one narrow market condition
Originality Statement
Concord Execution Mandate is original in how it integrates adaptive regime logic, structural breaks, rotation entries, soft alignment scoring, reclaim filtering, divergence safety, and layered exit management into one execution framework. The combination is intentional because the strategy is designed to test whether context-aware execution can remain active without devolving into random signal generation.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice and does not guarantee future performance. Backtests are based on historical data, configured assumptions, and simulated order handling. Always validate behavior independently and use appropriate risk management.
-Made with passion by jackofalltrades
Strategy

Strategy

Concordance Execution Mandate [JOAT]Concordance Execution Mandate
Introduction
Concordance Execution Mandate is an open-source PulseWire strategy that integrates the indicator concepts used throughout the JOAT Suite into one execution framework. It combines crossframe bias, auction location, stepped structure, momentum timing, absorption participation, and volatility gating before any trade is allowed. It also renders on-chart trade rails, stop placement, profit targets, and a dashboard summarizing the active execution state.
The purpose of the strategy is not to optimize one narrow market condition. The purpose is to require multiple independent conditions to agree before a trade is taken. This reduces single-factor noise and creates a more realistic execution process than a strategy that relies on only one oscillator or one moving-average crossover.
Core Concepts
1. Crossframe Regime Filter
Higher-timeframe trend alignment establishes the directional permission layer. If the dominant bias is not aligned, the strategy remains filtered.
2. Auction Location Filter
Price must also be in a constructive value location for longs or a defensive value location for shorts. This reduces cases where a trend is positive but price is poorly located relative to accepted value.
3. Structure and Momentum Gate
The local stepped structure and momentum score must agree with the higher-level direction before a trade is permitted.
4. Absorption and Volatility Filter
If an active absorption range exists, the strategy uses it as a participation filter. Volatility percentile and directional volatility behavior are also used to avoid unsuitable states.
5. ATR-Based Risk Management
Stops are sized from ATR and, when enabled, can anchor to structural references. Targets are placed using configurable R multiples.
Features
Multi-layer trade permission: Crossframe, auction, structure, momentum, absorption, and volatility must align
Confirmed-bar logic: Entry conditions are evaluated on confirmed bars
ATR-based stop logic: Risk is normalized to current market conditions
Two staged exits: TP1 and TP2 are placed automatically, with a third informational rail on-chart
On-chart trade rails: Entry, stop, TP1, TP2, and TP3 are drawn directly on the chart
Risk/reward fills: Visual fill between entry and stop or target levels
Execution dashboard: Displays regime, permission, auction state, structure state, momentum, absorption, ATR percentile, position state, and active risk rail
Realistic default properties: Uses commission, slippage, and percent-of-equity sizing
Strategy Properties Used By Default
Initial Capital: 100000
Commission Type: Percent
Commission Value: 0.05
Slippage: 2
Pyramiding: 0
Position Size: 10% of equity
Orders Processed On Close: Enabled
How to Use This Strategy
Step 1: Read the dashboard before evaluating the backtest. The strategy is built around permission states, not constant market participation.
Step 2: Check whether the system is in Long Bias, Short Bias, or Mixed mode.
Step 3: Observe whether the strategy is filtering trades because one of the major layers is missing, such as auction location or volatility suitability.
Step 4: Use the on-chart rails to understand how the strategy is defining risk and reward at each entry.
Strategy Limitations
Like all strategies, results depend on market, timeframe, and input choices
Higher-timeframe filters are intentionally delayed for non-repainting safety
Multiple filters can reduce trade frequency substantially
The strategy is designed as a robust execution framework, not as a guarantee of profitability
Backtest results should be interpreted with realistic skepticism and proper context
Originality Statement
Concordance Execution Mandate is original in the way it integrates top-down bias, auction location, local structure, momentum timing, participation filtering, and volatility gating into one execution process with visible trade management rails. The script is published to show how multiple institutional-style context layers can be fused into a realistic open-source framework.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to trade any market. Backtest results are based on historical data and do not guarantee future performance. All trading involves risk, including the risk of loss. Use independent judgment and proper risk management.
-Made with passion by jackofalltrades
Strategy

RSI Volume LadderA long-only pyramiding strategy that scales into corrections using RSI oversold conditions confirmed by above-average volume. Each subsequent entry requires a meaningful price drop from the previous fill, with an asymmetric exit structure: Take Profit anchored to the average entry, Stop Loss anchored to the lowest fill. Built for traders who want to systematically dollar-cost into pullbacks within an uptrend, with clearly defined risk per pyramid stack.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY — WHAT MAKES THIS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Five specific mechanics that, in this combination, distinguish this script from other averaging-down systems published on PulseWire:
- ASYMMETRIC EXIT ANCHORING
Take Profit is calculated from the average entry price of the pyramid — so winners run from the averaged-down cost basis. Stop Loss is calculated from the LOWEST entry price among all open positions — so the absolute worst-case loss is bounded by your deepest fill, not your average. This asymmetry is the key to making pyramiding viable: averaging works for you on the upside without inflating downside risk.
- PRICE-DROP GATE FOR EACH PYRAMID LEG
Every subsequent entry requires both a fresh RSI + volume signal AND a configurable minimum price drop from the previous fill (default 1.5%). This prevents stacking three positions within a tight range during a slow grind down — pyramiding only triggers on meaningful pullbacks, forcing real averaging instead of cosmetic averaging.
- ASYMMETRIC COOLDOWN ON EXIT
After a Stop Loss, the strategy waits N bars (default 3) before allowing new entries — blocks the "catch the falling knife" pattern where RSI stays oversold for many bars during a cascade. After a Take Profit, cooldown is configurable separately and defaults to 0, because a successful exit signals continued mean-reversion behavior worth participating in.
- ENTRY-TIMING SAFETY
Exit detection runs at the top of the bar evaluation, BEFORE the entry check. This means a Stop Loss hit on a bar cannot trigger a new entry on the same bar — even if RSI is still deeply oversold and volume is elevated. The cooldown counter is set before the entry logic ever sees the bar, eliminating a subtle but realistic execution problem in pyramiding systems.
- VISUAL EXIT CLASSIFICATION
When the position closes, the script automatically classifies the exit as TP or SL by measuring distance from actual fill price to each pre-set level, and renders a fuchsia or red cross at the exit price. No look-ahead, no estimation — the classification uses the closed trade's recorded exit price.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CREDITS & FOUNDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This script builds on established methodologies with original Pine v5 implementation of every layer:
- RSI — Wilder, 1978 (standard implementation via ta.rsi)
- Volume confirmation — classical technical analysis
- Pyramiding / scaling-in — standard portfolio management technique (Tharp, Elder)
- Dollar-cost averaging principles — long-standing investment methodology
ALL CODE in this script was written from scratch. No code has been copied from other public or private scripts. The five mechanics listed under ORIGINALITY above are original combinations and implementations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW THE STRATEGY WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ENTRY CONDITIONS (all must be true):
- RSI below the configurable oversold threshold (default 30)
- Volume above SMA × configurable multiplier (default 1.5× of SMA20)
- For pyramiding: price must be at least X% below the last fill (default 1.5%)
- Cooldown not active from the previous exit
- Open positions count below the pyramiding cap (default 3)
PYRAMID BUILDING:
Up to 3 long positions can be opened. Each new entry independently re-checks all conditions — the RSI + volume signal must reappear, AND the price drop gate must be satisfied. Position size per entry is fixed (default 5% of equity), so a full three-position stack uses approximately 15% of equity.
EXIT LOGIC:
Both legs run as an OCO (one-cancels-other) bracket:
Take Profit = average entry × (1 + tpPercent / 100), default +4%
Stop Loss = lowest entry × (1 − slPercent / 100), default −3%
All positions close together when either level is hit. The TP/SL levels update on every bar as the pyramid grows — average shifts on each new fill, lowest fill anchors deeper if a new low is hit.
COOLDOWN MECHANISM:
On exit, the strategy records the bar index and exit type. While bar_index − lastExitBar ≤ requiredCooldown , new entries are blocked. The required cooldown differs by exit type (default 3 bars after SL, 0 bars after TP), reflecting that an SL exit often happens during continuing weakness, while a TP exit signals healthy mean reversion.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VISUALIZATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ENTRY ARROWS — blue triangles below each fill, labeled Long_1 / Long_2 / Long_3 with the order price
AVERAGE ENTRY LINE — blue, updates as the pyramid grows (staircase pattern)
TAKE PROFIT LINE — fuchsia, updates with the average
STOP LOSS LINE — red, anchored to the lowest fill (steps down only if a deeper entry occurs)
EXIT CROSS — fuchsia at TP hit, red at SL hit, placed at the actual exit price
The line style is plot.style_linebr , which connects within an open position and breaks cleanly between positions — making each pyramid cycle visually self-contained on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This is a complete entry + exit strategy, but it is NOT a turn-it-on-and-walk-away system. Use it as a framework to test and adapt to your specific instrument:
- Load on a liquid asset with mean-reverting behavior in an uptrend. The strategy was developed on crypto majors (BTC, ETH) and major equity indices.
Start with the default parameters and run the Strategy Tester on at least 6 months of history.
- Pay attention to:
• Net Profit and Max Drawdown ratio
• Average loss vs. average win
• Whether losing streaks cluster during specific market regimes
Tune to your instrument's volatility:
• Higher-volatility assets (alt-coins, small caps) → increase dropPercent (2-3%), increase slPercent (4-6%)
• Lower-volatility assets (BTC, indices) → decrease dropPercent (1-1.5%), tighter slPercent (2-3%)
• Higher timeframes (1h, 4h) → wider TP/SL to match bar range
- Consider adding an external trend filter for your live use. The strategy will pyramid into any oversold reading regardless of higher-timeframe context. Adding an EMA200 filter (only enter if price > EMA200) materially changes the risk profile on instruments prone to extended downtrends.
- Treat the strategy output as a structured framework for your dip-buying process, not as a guaranteed system. Combine with your own market analysis, position sizing, and broader risk management.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INPUTS WORTH KNOWING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RSI Length (default 14) and Oversold threshold (default 30) — standard RSI configuration. Lower threshold = fewer, deeper-oversold entries.
Volume SMA length (default 20) and Multiplier (default 1.5×) — volume confirmation strength. Higher multiplier = only enter on standout volume spikes, fewer entries.
Min drop between pyramid entries (default 1.5%) — prevents tight clustering. Higher = waits for deeper pullbacks before adding.
Max pyramid positions (default 3) — caps the stack. Note: pyramiding=3 is also set in the strategy() header.
Take Profit % from average (default 4%) — anchored to running average entry price.
Stop Loss % from lowest fill (default 3%) — anchored to the deepest entry, shared across all open positions.
Cooldown after SL (default 3 bars) — blocks the falling-knife pattern after a stop-out.
Cooldown after TP (default 0 bars) — re-enter immediately after a successful exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
REALISTIC EXPECTATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pyramiding into corrections is a well-known approach with well-known limitations. The strategy works best when:
The underlying asset has a structural uptrend
Volatility produces regular pullbacks of meaningful depth
The market is not in a sustained bear regime
What this strategy provides:
A disciplined framework for scaling into pullbacks instead of single-shot entries
Asymmetric exit anchoring that lets winners run from the averaged cost basis
Built-in protection against catching the falling knife via cooldown
Transparent visualization of each pyramid leg, exit, and risk level
What it does NOT provide:
Protection from prolonged bear trends (averaging down into a structural decline is the dominant failure mode of this entire strategy family)
A guaranteed profitable system
A signal generator for assets that don't mean-revert
A replacement for your own market analysis, position sizing, or higher-timeframe context
Treat the output as ONE structured input in your trading process. The biggest risk to your account using a pyramiding strategy is mis-applying it to a downtrending asset — always confirm regime alignment before going live.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TECHNICAL NOTES & DISCLOSURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NO REPAINT . Uses process_orders_on_close=true — all orders execute on confirmed bar close. No request.security() calls, no lookahead_on, no barmerge.lookahead_on.
REALISTIC EXECUTION . Default commission 0.05% per trade (typical crypto exchange taker fee). Position sizing in % of equity, not fixed contracts. Initial capital 10,000.
DATA USED : only standard Pine inputs — open, high, low, close, volume. Indicators: RSI, SMA of volume. No external feeds, no security() calls, no synthetic data.
PERFORMANCE : max_labels_count=500. Pyramiding capped at 3. No unbounded growth of internal objects.
ASSETS : developed on crypto majors and tested across 5m, 15m timeframes. Works on equities and forex but parameters were tuned on crypto and may need adjustment for assets with different intraday behavior.
EDUCATIONAL AND ANALYTICAL TOOL . Intended for traders who understand pyramiding mechanics and the inherent risk of averaging-down strategies, and who want a structured framework to test on their own instruments.
OPEN SOURCE . Read the code, learn from it, fork it. Feedback and bug reports welcome in the comments.
Check my profile for other published scripts. Strategy

ATR Fibonacci Trend Envelopes [BigBeluga]ATR Fibonacci Trend Envelopes is a professional-grade trend-following and mean-reversion framework. It combines the volatility-filtering power of Average True Range (ATR) with the mathematical precision of the Fibonacci Golden Ratio to define high-probability "buy/sell pockets" within an established trend.
Equipped with a live Multi-Timeframe (MTF) dashboard, this indicator allows traders to monitor trend alignment across four different time horizons simultaneously, ensuring that local entries are always supported by the broader market structure.
🔵 THE DUAL-ENGINE FRAMEWORK
Volatility-Adjusted Trend Engine: The indicator uses a customizable Moving Average (SMA, EMA, HMA, etc.) combined with an ATR multiplier to create dynamic envelopes. This filters out market noise and only signals a trend change when price decisively breaks the volatility boundary.
Dynamic Golden Pocket (0.618 - 0.786): Unlike static retracements, these Fibonacci levels are calculated relative to the current ATR envelope. The "Pocket" acts as a high-interest zone where price is expected to find support (in uptrends) or resistance (in downtrends).
Predictive Slope Projections: Using the current rate of change, the script projects the trend and Fibonacci levels into the future. This allows traders to visualize where "Value" will be in the coming bars, facilitating better trade planning and order placement.
🔵 CORE ARCHITECTURE
MTF Alignment Dashboard: A real-time table tracks the trend status and "Pocket" proximity across four timeframes. A "BULL" status combined with an "INSIDE" pocket signal across multiple timeframes indicates a high-confluence institutional setup.
Dynamic Transparency Feedback: The visual intensity of the Golden Pocket adapts based on price proximity. As price approaches the mid-point of the pocket, the colors become more saturated, providing an intuitive visual cue that the market is entering a high-probability reversal zone.
Momentum-Driven Basis: The trend baseline (1.0 level) acts as the ultimate anchor. As long as price remains above this volatility-adjusted line in a bullish regime, the trend is considered structurally sound.
🔵 FEATURES
Multi-MA Versatility: Choose from 5 different moving average types to calculate your trend basis, allowing the indicator to be tuned for slow-moving macro trends or fast-moving scalping setups.
Real-Time Level Labels: Clear, real-time labels (0.5, 0.618, 0.786, 1.0) on the right axis provide exact price targets and stop-loss anchors at a glance.
Customizable Projection Length: Adjust how far the indicator looks into the "future," allowing you to anticipate structural shifts before they occur on the chart.
Adaptive UI Positioning: The dashboard can be moved to any corner of the chart and scaled to match your screen resolution, ensuring it never interferes with your technical analysis.
🔵 STRATEGIC APPLICATION
The "Golden" Pullback: In a confirmed Bull trend (Cyan baseline), wait for price to enter the Dynamic Golden Pocket. Use the saturation of the baseFill color to identify the core of the value zone for a long entry.
MTF Confluence Trading: Only take trades when at least three timeframes on the dashboard show the same trend direction. If the 1H and 4H are "BULL" while the 15m enters the "INSIDE" pocket, you have a high-probability trend-continuation setup.
Volatility Breakouts: Monitor the distance between the baseline and the 0.5 Fib. When the ATR-based envelopes contract, a volatility breakout is imminent. A "⦿" label signal combined with a price cross of the 1.0 level marks the start of a new momentum cycle.
Dynamic Exit Planning: Use the projected 0.5 or 0.618 levels as trailing profit targets. Because these levels adjust for both price and volatility, they represent a mathematically "fair" area to take chips off the table.
ATR Fibonacci Trend Envelopes bridges the gap between classic technical analysis and modern volatility modeling. By combining MTF awareness with the natural pull of the Fibonacci ratios, it provides a clear, actionable map for navigating any market condition. Indicator

Concordance Strategy [JOAT]JOAT Concordance Strategy
Introduction
JOAT Concordance Strategy is an open-source multi-factor PulseWire strategy designed to integrate the JOAT indicator stack into one execution framework.
It combines regime context, liquidity interaction, retracement logic, pressure confirmation, channel behavior, and participation filters to decide when enough independent evidence exists to justify a trade.
The problem it solves is single-factor dependency.
Trend-only systems often chase poor location.
Liquidity-only systems can trigger too early.
Oscillator-only systems can fade strong directional auctions.
Retracement-only systems can buy weak pullbacks without sponsorship.
This strategy attempts to solve that by requiring overlap.
It does not assume one tool family is sufficient on its own.
Instead, it asks whether multiple analytical dimensions agree.
That agreement is what the strategy calls concordance.
Core Concepts
1. Regime Gate
The strategy first evaluates local and higher-timeframe baseline structure, slope, volatility state, and directional control.
2. Hard and Soft Directional States
The system uses stronger and softer directional states instead of an all-or-nothing gate.
3. Liquidity and Structure Stack
Entries consider sweep behavior, break state, and displacement.
4. Retracement and Confluence Layer
Local and HTF retracement context help determine whether price is pulling back into a structurally meaningful area.
5. Pressure Confirmation
Pressure logic attempts to confirm that price action has sponsorship behind it rather than only visual momentum.
6. Sigma Channel State
Channel logic helps determine whether price is re-entering a directional path or fading from extension.
7. Participation Filter
Relative volume and delta-style participation help avoid weak sponsorship environments.
8. Risk and Exit Model
The strategy uses structure-aware ATR stops, partial exits, break-even logic, trailing behavior, and optional time exits.
Features
Integrated multi-factor entry model: regime, liquidity, retracement, pressure, channel, and participation
More active soft-entry path: allows more trades while keeping directional structure
Confirmed-bar logic: entries use confirmed state conditions
Equity-risk sizing: position size is derived from risk per trade
ATR and structure-aware stops: volatility and market structure both matter
Two-stage profit taking: TP1 and TP2 split the exit logic
Break-even and trailing logic: protects trades after expansion
Time-based exit: removes stale positions when needed
Dashboard: regime, confluence, pressure, ledger, and position state are displayed
Strategy Properties Used by Default
Initial capital: 100000
Commission type: percent
Commission value: 0.02
Pyramiding: 0
Position sizing: equity-risk based
Trade management: partial exits, break-even logic, ATR trail, optional time exit
How to Use This Strategy
Step 1: Treat it as a research framework rather than a promise of future performance.
Step 2: Evaluate it across multiple markets and timeframes because the more permissive logic should produce broader participation than the earlier strict version.
Step 3: Judge the quality of the trade distribution rather than focusing on one isolated metric.
Step 4: Respect the compromises between selectivity and trade frequency.
Step 5: Use realistic expectations and avoid reading a single backtest as proof of repeatable future outcomes.
Strategy Limitations
The strategy still depends on confirmed conditions and can therefore enter later than a discretionary trader
Trade frequency and quality vary significantly by symbol and timeframe
Default settings are general-purpose and may not be ideal for every market
Optimizing too aggressively can become curve fitting
Backtest results are hypothetical and do not guarantee future performance
Originality Statement
This strategy is original in how it requires agreement across regime, liquidity, retracement, pressure, channel, and participation modules before or during entry qualification.
The components are not merged simply to produce a busier system.
Each one addresses a different failure mode in execution.
Their overlap is the basis for participation.
Disclaimer
This strategy is provided for educational and informational purposes only.
It is not financial advice.
Backtest results are hypothetical and depend on assumptions, settings, and market selection.
They do not guarantee future returns.
Trading involves substantial risk of loss.
Always validate assumptions independently and use responsible risk management.
Best Use Cases
Researching whether cross-confirmation improves selectivity over single-factor systems
Studying how regime, liquidity, retracement, and participation interact inside one strategy
Comparing trade frequency across markets and timeframes after the softer entry expansion
Testing realistic risk-management assumptions inside a multi-layer strategy
Interpretation Notes
This strategy should be evaluated as a process, not as a single summary metric.
Trade count matters.
Distribution of trades matters.
How the system behaves across different instruments matters.
The softer entry path was added to prevent the strategy from becoming too inactive, especially on higher timeframes.
That makes the strategy more usable for broad testing while still preserving directional structure.
Publication Notes
This strategy should be published with a clean chart and realistic default Properties.
If showing results, the description should stay grounded and avoid implying that one test run guarantees future outcomes.
The chart image should make the strategy entries and exits easy to understand.
-Made with passion by jackofalltrades
Evaluation Framework
1. Start by checking whether the strategy is active on the instrument and timeframe you care about.
2. Compare trade count before and after threshold changes.
3. Review whether trade quality remains acceptable as activity increases.
4. Study the interaction between regime, liquidity, pressure, and participation at entry.
5. Judge the strategy by distribution and robustness rather than one isolated metric.
Why This Matters
The strategy exists to test whether agreement across multiple independent analytical layers can improve execution quality.
That research question is more important than any one headline metric.
Open-Source Notes
This strategy is published open source so users can inspect how the modules overlap and how the risk model is applied.
Who This Is For
This strategy is for users who want to study how multiple context layers can be combined inside one execution model.
It is not intended for anyone looking for a one-click guarantee.
Summary
JOAT Concordance Strategy is best understood as a structured research tool.
It exists to test whether regime, liquidity, retracement, pressure, channel, and participation agreement can improve decision quality.
Additional Notes
This strategy should be judged with realistic commission and execution assumptions.
It should also be evaluated on enough trades to produce a meaningful sample.
The defaults are intended to stay grounded rather than theatrical.
Strategy

Charter Execution Model [JOAT]Charter Execution Model
Introduction
Charter Execution Model is an open-source Pine Script v6 strategy that integrates the broader JOAT framework into a single non-repainting execution model. It does not rely on one trigger alone. Instead, it uses a hierarchy of filters: regime eligibility first, liquidity bias second, structure confirmation third, and imbalance or displacement triggers fourth. Only when those layers align does the strategy consider taking a trade.
The goal of this strategy is not to present a magical black box. It is to model a disciplined decision stack. Many strategies fail because they treat every trigger the same way regardless of context. Charter Execution Model is built around the idea that context should do most of the work. If the market is not in a mature directional regime, if the liquidity ledger is not skewed appropriately, or if local structure does not agree, then a trigger by itself is not enough.
The script uses realistic execution controls directly in the declaration: fixed initial capital, percent-of-equity sizing, non-zero commission, non-zero slippage, no pyramiding, confirmed-bar evaluation, and orders processed on close. Those defaults are intended to make the backtest more responsible and easier to interpret than an overly aggressive model with idealized execution assumptions.
This strategy is best understood as a research framework. It can help traders study how context filters, imbalance triggers, continuation pressure, and ATR-based exits behave when combined inside one model. It is not a guarantee of future profitability, and it should be evaluated thoughtfully across symbols, regimes, and timeframes.
Core Concepts
1. Regime Eligibility Layer
The first gate determines whether the market is mature enough to even consider longs or shorts. It uses a directional midpoint and structural midpoint built from EMA and HMA references, then normalizes their spread by ATR and combines that with heat positioning inside the recent price range.
bool bullRegime = directionalMid > structuralMid
float regimeStrength = clamp(spreadNorm * 0.60 + math.abs(heatNorm - 50.0) * 0.80, 0, 100)
bool matureBullRegime = bullRegime and regimeStrength >= regimeFloor and regimePersistence >= 12
That means the strategy does not allow triggers to fire in weak or undeveloped directional states. Context comes first.
2. Liquidity Bias Layer
Next, the strategy builds a rolling bin-based liquidity distribution and compares buy-side volume versus sell-side volume. A long context requires positive liquidity bias and price above the reference EMA. A short context requires negative liquidity bias and price below the reference EMA.
This adds an inventory-style filter so the strategy is not trading purely off price shape.
3. Structure Filter
Local structure is confirmed using pivot-derived reference points and a rolling swing lookback. Longs require price to hold above recent swing support and above the slow EMA. Shorts require the inverse.
This helps reduce cases where a regime and liquidity reading are still positive or negative, but local price structure has already started to degrade.
4. Trigger Stack
Once context aligns, the strategy allows three possible triggers: a confirmed imbalance gap, a displacement shift, or an optional continuation retest into the directional midpoint. This means the model can participate through both fresh displacement and controlled continuation.
Importantly, the trigger layer does not override the context layer. It only becomes active when the earlier filters already agree.
5. ATR-Based Exit Framework
Risk management is handled through ATR-sensitive invalidation and two fixed-R profit targets. When the regime is especially strong, an optional trailing rule tightens the stop using recent local price action.
This creates a trade structure with a defined stop, two staged exits, and optional adaptation in stronger conditions without relying on unrealistic all-in-all-out assumptions.
Features
Four-layer decision hierarchy: Regime, liquidity, structure, and trigger conditions must align before entry
Confirmed-bar logic: Entries are evaluated only on confirmed bars to avoid repaint-style execution logic
Non-zero execution costs: Includes realistic commission and slippage in the strategy declaration
No pyramiding: Prevents stacking multiple positions in the same direction
Partial profit framework: Uses two independent `strategy.exit()` orders to scale out at separate R multiples
Optional continuation triggers: Allows pullback-style participation inside already qualified context
Optional strong-regime trailing stop: Tightens exits when regime strength is elevated
Dashboard summary: Displays regime, liquidity bias, pressure, trigger state, position state, stop settings, and current risk fields
Clean visual overlay: Shows directional and structural mids with contextual fill directly on the chart
Open-source research design: Lets users inspect and adapt the full context-to-execution hierarchy
Default Strategy Properties
Initial capital: `100000` is used as the default starting capital in the script declaration
Position sizing: Orders use `strategy.percent_of_equity` with a default quantity of `10`, meaning the strategy allocates 10% of equity per position by default
Commission: Commission is modeled as `0.02%` per trade
Slippage: Slippage is modeled as `2` ticks
Pyramiding: Pyramiding is set to `0`, so the model does not stack entries in the same direction
Order timing: `process_orders_on_close = true` and `calc_on_every_tick = false`, so the model evaluates and processes with confirmed-bar logic
Input Parameters
Regime:
Fast Length: Controls the fast directional reference
Slow Length: Controls the slow structural reference
ATR Length: Sets the ATR normalization length
Heat Window: Defines the range window for heat normalization
Regime Strength Floor: Sets the minimum maturity threshold for context eligibility
Liquidity Filter:
Liquidity Lookback: Sets the rolling history used for the liquidity model
Liquidity Bins: Controls the liquidity distribution granularity
Liquidity Bias Floor: Sets the minimum skew required before liquidity counts as directional
Structure Filter:
Pivot Length: Sets pivot confirmation sensitivity
Swing Lookback: Defines the rolling structural context window
Trigger Stack:
Gap Sigma Filter: Sets the minimum imbalance displacement required for gap-style triggers
Shift Momentum Length: Controls the raw momentum lookback
Shift RSI Length: Controls the pressure RSI smoothing
Displacement Floor: Sets the threshold for shift-style triggers
Allow Continuation Triggers: Enables or disables pullback continuation entries
Continuation Pressure Floor: Sets the minimum pressure level for continuation logic
Risk Management:
Stop ATR Multiplier: Scales the ATR contribution to stop placement
Target 1 R: Sets the first partial profit target
Target 2 R: Sets the second partial profit target
Trail In Strong Regime: Enables optional trailing behavior when regime strength is elevated
How to Use This Strategy
Step 1: Evaluate Context Before Results
Begin by understanding what the strategy is trying to do rather than focusing immediately on performance output. It only wants to trade when a mature regime, directional liquidity bias, and confirming structure are all aligned. If that idea does not match your own process, the results will be hard to interpret.
Step 2: Study Trigger Type Distribution
Not all entries come from the same source. Some come from imbalance gaps, some from displacement shifts, and some from continuation pressure. Understanding which trigger type dominates on a given market can be more useful than simply checking net profit.
Step 3: Understand The Exit Framework
The model uses a staged exit approach. Half the position is managed toward the first target and half toward the second. A stop is always active, and strong-regime trailing can tighten the exit path further. Review this logic carefully before drawing conclusions from the backtest.
Step 4: Keep Expectations Realistic
The strategy includes commission, slippage, confirmed-bar logic, and no pyramiding, but that still does not make the backtest “real.” Results depend on the instrument, the timeframe, the data sample, and how well the context assumptions fit the market studied.
Step 5: Use It As A Research Framework
Charter Execution Model is best used as a framework for studying context-first execution logic. Adapt the filters, test the thresholds, and evaluate how the hierarchy behaves across different environments rather than assuming the defaults are universally optimal.
Strategy Limitations
The strategy relies on historical context filters that may adapt poorly to sudden regime shifts or atypical event-driven conditions
Liquidity bias is based on bar-level directional volume attribution rather than true exchange order-flow data
Processing orders on close simplifies execution and can differ materially from real fills on fast markets
Backtest results are sensitive to parameter choices, timeframe selection, instrument behavior, and dataset length
Originality Statement
Charter Execution Model is original in the way it organizes multiple analytical layers into a disciplined execution hierarchy. It is not published as a simple indicator mashup strategy:
It requires mature regime, directional liquidity bias, and local structure to align before any trigger is allowed to matter
It supports multiple trigger archetypes inside the same context framework rather than treating one trigger as universally sufficient
It combines staged exits, ATR-sensitive invalidation, and optional strong-regime trailing inside a consistent risk model
It exposes its internal context state on-chart so users can study why the strategy is active or inactive at any point
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Backtest results depend on assumptions, data quality, slippage, commission, bar resolution, and market conditions. Past performance does not guarantee future results. Always use independent judgment and proper risk management before using any strategy logic in live markets.
-Made with passion by jackofalltrades
Strategy

Concordance Regime Synthesis [JOAT]Concordance Regime Synthesis
Introduction
Concordance Regime Synthesis is an open-source strategy framework that combines regime state, pressure, participation, structure, and higher-timeframe bias into one non-repainting confluence model. The strategy is designed to avoid single-factor entries by requiring multiple independent conditions to align before risk is deployed.
Core Concepts
1. Multi-factor confluence scoring
Long and short setups are scored independently using regime direction, normalized price pressure, participation-axis deviation, delta behavior, recent structure, and optional higher-timeframe bias.
2. Regime-aware execution
Entries only occur when directional confluence exceeds a threshold and the score spread clearly favors one side.
3. ATR-based risk handling
Stops, targets, and optional trailing logic are all derived from ATR so the strategy adapts to volatility instead of using fixed-tick assumptions.
Strategy Properties
Initial capital: 10,000
Order size: 10% of equity per trade
Commission: 0.06%
Slippage: 1 tick
Pyramiding: 0
Orders processed on close
Originality Statement
This strategy is original in its use of a confluence gate that requires independent agreement from regime, pressure, delta, participation, structure, and optional HTF alignment before entries are allowed. It is published as an educational framework for multi-factor strategy construction rather than as a promise of future performance.
Disclaimer
This strategy is for educational and informational purposes only. Backtest results depend on symbol, timeframe, market regime, and execution assumptions. Historical results do not guarantee future returns. Always validate assumptions and use realistic risk controls.
Strategy

Indicator

Complex Single Trade StrategyThis 'Complex Single Trade Strategy' is a generic trading strategy that features three different types of stops, and four take profits.
It takes a Buy/Sell source input of:
The first signal will trigger a position to open immediately in that direction, but subsequent signals in the same direction will be ignored whilst the position remains open, as this strategy allows only one position at once.
A signal in the opposite direction to the current position can either be ignored, or it can close the position, or it can close it then immediately open another one in the opposite direction.
It also takes an optional 'Cancel' indicator just to close positions. Other signals will be ignored.
The three different types of stops, that can be applied individually, or together:
* Regular Stop
* Initial Trailing Stop
* Trailing Stop
The initial trailing stop works like a regular trailing stop until it reaches the cut off level, a percentage of the current asset price above or below the entry level, then it will no longer trail the price, remaining statically at this level.
From here the regular trailing stop can take over trailing the price. This is useful to move the stop to the entry level (or there abouts) fairly quickly. From there you might want to trail the price with a larger trailing stop for the rest of the trade.
0 cut off means it stops trailing the price at your entry level, positive above, negative below, for a long trade. For a short it would be the opposite.
Typically you would want:
Trailing Stop > Initial Trailing Stop >= Stop
The four take profits each specify an amount to reduce the position size by, and at what specified percentage gain in price this is triggered.
My 'Simple Buy/Sell Indicator' and 'Custom Buy/Sell Indicator' (coming soon - watch this space) can be used to combine other indicators together into BUY/SELL strategies, using multiple custom rules. These can then be used as inputs to this strategy.
Strategy

SMC CHOCH BOS Dual Structure + Candle Color v6📊 SMC CHOCH & BOS Dual Structure Indicator — User Guide
This indicator is designed to map market structure using Smart Money Concepts (SMC), combining:
CHOCH (Change of Character)
BOS (Break of Structure)
Swing Structure (macro)
Internal Structure (micro)
Dynamic candle coloring based on structural shifts
It provides a complete framework to understand trend shifts, confirmations, and execution timing.
🧠 CORE CONCEPTS
🔹 CHOCH (Change of Character)
Represents a potential reversal in market direction.
Bullish CHOCH → Market shifts from bearish to bullish
Bearish CHOCH → Market shifts from bullish to bearish
👉 This is the early signal, but not always confirmed.
🔹 BOS (Break of Structure)
Represents trend continuation or confirmation.
Occurs when price breaks previous structure in the direction of the trend
The first BOS after a CHOCH is especially important
👉 This is the confirmation phase.
⚙️ SETTINGS EXPLAINED
🔸 Show Structure
Swing → Displays macro structure (clean, less noise)
Internal → Displays micro structure (faster, more signals)
Both → Combines both for full context
👉 Recommended: Both
🔸 Swing Structure Length
Controls the sensitivity of macro structure.
Higher value → smoother, fewer signals
Lower value → more reactive
👉 Recommended: 8–15
🔸 Internal Structure Length
Controls micro structure detection.
Lower value → faster signals
Higher value → more filtering
👉 Recommended: 2–5
🔸 Confirm Break By Candle Close
ON → Break only confirmed after candle closes (more reliable)
OFF → Break detected instantly (faster, more aggressive)
👉 Recommended: ON
🔸 Candle Color Based On
Defines which structure controls candle coloring:
Swing → slower, trend-based coloring
Internal → faster, execution-based coloring
👉 Recommended:
Swing → for bias
Internal → for entries
🔸 Change Candle Color On
Defines when the trend/color shifts:
CHOCH
Faster reaction
More signals
Higher risk
First BOS After CHOCH
More confirmation
Fewer signals
Higher probability
👉 Recommended: First BOS After CHOCH
🔸 Color Candles
ON → candles follow structural direction
OFF → structure only (lines + labels)
🔸 Colors
Customize:
Swing bullish/bearish
Internal bullish/bearish
Candle colors
🔸 Show BOS/CHOCH Text
Displays text labels directly on structure lines:
No background
Centered on the line
Clean visual style
📈 HOW TO USE (PROFESSIONAL APPROACH)
🔹 1. Define Direction (Swing Structure)
Use Swing CHOCH + BOS to identify overall bias
Only trade in the direction of Swing trend
🔹 2. Execute with Internal Structure
Wait for Internal CHOCH
Then confirm with Internal BOS
👉 This is your entry trigger
🔹 3. Best Setup (High Probability)
✔ Swing trend bullish
✔ Internal CHOCH (pullback ends)
✔ First BOS confirms continuation
👉 That’s your trade
⚠️ COMMON MISTAKES
❌ Trading CHOCH alone
❌ Ignoring higher timeframe structure
❌ Entering after extended moves
❌ Using Internal signals against Swing trend
🔥 SIMPLE RULE SET
CHOCH = potential shift
BOS = confirmation
Swing = direction
Internal = execution
🎯 FINAL THOUGHT
This indicator is not just for signals —
it’s a market structure framework.
If used correctly, it helps you:
Avoid late entries
Trade with structure, not emotion
Align with institutional flow Indicator

Failed Pullback Reversal Planner [AGPro Series]Failed Pullback Reversal Planner
🧠 Core Idea
Did the pullback fail to recover, and is it now creating a reversal-warning context?
📌 Overview / What it does
Failed Pullback Reversal Planner is a chart-first reversal risk planner built for one specific situation: a pullback inside an existing trend stops behaving like a healthy retracement and begins losing control.
The script maps a failed pullback pocket, control-loss rail, invalidation reference, target-room guide, compact state labels, alerts, and a clean AG Pro panel. It converts pullback depth, failed recovery, close behavior, volume response, and follow-through into a 0-100 Failure Score.
It does not predict future price movement, automate entries, or issue guaranteed buy/sell signals. Its role is to organize failed-pullback context into a clearer decision framework.
🎯 Purpose & Design Philosophy
This script was built because many pullback tools only focus on continuation quality. They often ask whether the pullback is healthy enough to resume the original trend.
Failed Pullback Reversal Planner focuses on the opposite decision layer. It asks whether the pullback failed to recover, lost the control reference, and now deserves reversal-risk review.
The design supports traders who want cleaner structure, risk location, target-room context, and next-action guidance without turning every candle into a signal.
⚡ Why This Script Is Different
Most tools focus on pullback continuation, moving-average bounces, or generic reversal markers.
This script does NOT clone Pullback Acceptance Planner, Low Volume Pullback Zones, Trend Continuation Quality, or a generic reversal signal indicator.
Instead, it treats failed pullbacks as a planning problem. Price must first enter a pullback context, then fail recovery around a control rail, then show enough close quality, volume response, and follow-through to raise reversal-risk state.
⚙️ Methodology
1. Context Detection
The script identifies former bullish or bearish trend context using fast, base, and slow EMA alignment.
2. Reference Mapping
It builds a failed pullback pocket, control-loss rail, invalidation reference, and target-room guide using ATR-normalized logic.
3. Reaction Evaluation
It scores pullback depth, failed recovery, close against the former trend, volume response, and nearby follow-through.
4. Visual Output
It displays concept-native zones, centered zone labels, compact event labels, guide rails, alerts, and a premium AG Pro planning panel.
🗺️ How to Read the Chart
Zones = the failed pullback pocket and reversal-risk zone.
Labels = pullback test, control-loss, reversal-risk, or reset markers.
Colors = teal shows bullish reversal-risk context, pink shows bearish reversal-risk context, amber shows watch context, red shows control-loss or risk context, and indigo shows reset/recovery context.
Panel = a compact decision dashboard showing Pullback State, Failure Score, Reversal Risk, Invalidation, and Action.
🚦 Signals & States
• PB TEST → a recent pullback is being monitored for failed-recovery behavior.
• CTRL LOST → price has lost the control reference but has not fully qualified the warning state.
• REV RISK → failed pullback context has enough score to deserve reversal-risk review.
• RESET → optional marker showing that price reclaimed the invalidation reference and the failed-pullback plan should be reset.
• NO SETUP → no active failed-pullback context is present.
🔔 Alerts Logic
Alerts trigger when the planner detects a monitored failed-pullback setup, a reversal-risk warning, invalidation/reset behavior, or meaningful follow-through after control loss.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest failed-pullback context appears when pullback depth is meaningful, price loses the control rail, the candle closes against the former trend, volume supports the shift, and follow-through begins beyond nearby structure.
When these components align, the Failure Score rises and the panel moves from watch context toward reversal-risk review.
📊 When to Use
• Trend pullbacks that start losing recovery quality
• Potential reversal transitions after a failed retracement
• Markets where a prior trend is weakening around a control reference
• Situations where invalidation and target-room context matter
⚠️ When NOT to Use
• Very low liquidity markets
• Extremely noisy sideways conditions
• News-driven volatility spikes
• Markets with no clean prior trend context
• Symbols where volume behavior is unreliable
🎛️ Key Inputs
• Sensitivity → controls how strict the failed-pullback model is.
• Former Trend Side → restricts evaluation to bullish-trend or bearish-trend failures when needed.
• Failure Window Bars → defines how long after a pullback touch control-loss behavior can qualify.
• Control-Loss Buffer ATR → adjusts the rail used to mark failed recovery.
• Invalidation Buffer ATR → controls the reset reference beyond the fast trend anchor.
• Label and Panel Settings → control panel location, theme, font size, label size, label spacing, and visible label count.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro decision panel and chart-first planning visuals.
The first panel row uses the AG Pro merged blue header standard with only the script name. The remaining rows focus on the active decision: pullback state, failure score, reversal risk, invalidation, and action.
The chart uses a focused failed pullback pocket, a reversal-risk zone, guide rails, and compact labels. The goal is a premium planning view without crowded generic signals.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether a pullback test is active.
3. Watch whether price loses the control rail.
4. Review the Failure Score and reversal-risk label.
5. Compare the invalidation reference and target-room guide before interpreting the context.
🔍 Interpretation Guidelines
Think in terms of failed recovery quality, not prediction.
A higher Failure Score means the current pullback has stronger failed-recovery characteristics across depth, control loss, close behavior, volume, and follow-through.
A control-loss state means the setup is weakening but may still need more confirmation.
A reset state means the failed-pullback idea has been reclaimed and should be reassessed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic pullback continuation indicator
⚠️ Limitations & Transparency
• Timeframe differences can change how pullback depth and failure windows appear.
• High volatility can distort ATR-normalized rails.
• Low-volume instruments may reduce the reliability of the volume component.
• Sideways markets can create repeated failed-pullback noise.
• Outputs should be interpreted with broader market structure.
🧠 Market Context Notes
Failed pullbacks often matter when a market was expected to recover in the direction of the prior trend but instead loses the control reference.
The script does not assume that every failed recovery becomes a full reversal. It simply marks when the context is strong enough to deserve review.
🧾 Use Case Examples
When a bullish trend pulls back toward the fast/base EMA area, fails to recover, and closes below the control rail with stronger participation, the planner may raise bearish reversal-risk context.
When a bearish trend pulls back upward, fails to reject lower, and closes above the control rail with follow-through, the planner may raise bullish reversal-risk context.
🧱 System Philosophy
The script is built around decision quality. It does not try to add another signal layer. It asks whether a specific market behavior is valid, how strong it is, where it is invalidated, and what should be reviewed next.
🔐 Non-Promise Statement
No guarantees.
No certainty.
The script organizes observable market behavior into a structured analytical view.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use the planner as an educational framework for studying failed pullbacks, recovery quality, control loss, and reversal-risk context.
Indicator

Concordia Regime Execution [JOAT]Concordia Regime Execution
Introduction
Concordia Regime Execution is an open-source PulseWire strategy that integrates regime detection, trend bias, structure, momentum breadth, pressure confirmation, and ATR-based risk management into one non-repainting execution model. The strategy is built as a realistic framework rather than a curve-fit showcase.
The problem Concordia solves is signal fragmentation. Regime, trend, structure, and momentum are often evaluated separately, which leads to entries taken in the wrong environment. Concordia requires multiple engines to align before a position is opened, then manages risk through predefined stop, target, trailing, and bias-failure exits.
Core Concepts
1. Regime Detection
ADX, choppiness, and compression work together to classify whether the market is suitable for directional participation.
2. Trend Bias Filter
Fast, intermediate, and structural EMAs plus anchored VWAP context define directional bias before any entry can pass.
3. Structure Confirmation
Confirmed bullish or bearish breaks of recent swing structure add structural alignment to the trade decision.
4. Momentum Breadth
A compact ribbon engine classifies whether fast momentum is actually expanding in the same direction as trend and structure.
5. Pressure and Risk Layer
Chart-derived pressure and crowding inputs help confirm continuation and suppress entries during elevated stress.
6. Risk Management
Each trade uses ATR-based initial stop placement, ATR-based profit target, optional trailing activation, and bias-failure closure if internal conditions deteriorate.
Features
Regime gate: Expansion, compression, and transitional filtering
Trend alignment: EMA stack plus anchored VWAP bias logic
Structure filter: Recent swing break confirmation
Momentum breadth: Ribbon spread confirmation instead of a single oscillator line
Pressure confirmation: Chart-derived directional pressure and crowding logic
Risk model: ATR stop, ATR target, trailing trigger, and bias-failure exit
Top-right dashboard: Regime, bias, structure, momentum, pressure, risk, setup scores, active position, and stop/target levels
Confirmed-bar entries: All setup logic is gated on confirmed bars
How to Use This Strategy
Step 1: Start with liquid markets
Concordia is better suited to instruments where anchored VWAP, ATR, and structure transitions behave consistently.
Step 2: Use realistic assumptions
Commission, slippage, and position sizing inputs should match your actual market and trading conditions before evaluating performance.
Step 3: Evaluate regime quality first
The strategy is intentionally selective. If the market is compressing or structurally unstable, fewer trades should occur.
Step 4: Review bias-failure exits
These exits are included to avoid overstaying trades when internal alignment breaks down before the stop or target is reached.
Strategy Limitations
Like any rules-based strategy, it can underperform in abrupt gap conditions or news-driven spikes
ATR-based exits adapt to volatility, but they are not guaranteed to be optimal for every instrument
The strategy is intentionally conservative and may miss some fast reversals
Historical performance does not guarantee future results
Originality Statement
Concordia Regime Execution is original in the way it integrates regime, trend, structure, momentum breadth, pressure confirmation, and ATR-based trade management into a single open-source strategy designed for realistic chart use rather than decorative backtest output.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice and should not be treated as a recommendation to buy or sell any instrument. Strategy results are based on historical chart data and platform assumptions. Live trading results can differ materially. Always validate settings and use independent risk management.
Strategy

Crownmark Allocation Engine [JOAT]Crownmark Allocation Engine
Introduction
Crownmark Allocation Engine is an open-source PulseWire strategy that integrates regime classification, adaptive trend corridors, auction-value context, pressure confirmation, divergence suppression, and ATR-based trade management into one non-repainting framework. Its purpose is not to maximize signal count. Its purpose is to require multiple independent layers to agree before risk is deployed.
The problem this strategy solves is overcommitting to one analytical dimension. Trend alone can be late. Pressure alone can be noisy. Divergence alone can fire too early. Auction context alone does not create an entry. Crownmark combines those ideas so that entries occur only when broader regime, local structure, value position, and internal participation are aligned.
Core Concepts
1. Regime Filter First
The strategy begins with a composite regime score built from fast/slow EMA displacement, ADX strength via `ta.dmi()`, efficiency, volatility expansion, and trend slope. If the regime is not sufficiently directional, the strategy does not permit an entry.
2. Adaptive Corridor Pullback Entry
Once regime bias is directional, price must also align with an adaptive KAMA-based corridor. Longs require bullish corridor structure and a pullback that remains constructive relative to the baseline and inner band. Shorts require the mirror condition on the downside.
3. Auction and VWAP Context
Price must be positioned acceptably relative to a rolling value area and rolling VWAP. This is intended to keep entries from triggering in structurally poor locations when the rest of the model is favorable.
4. Pressure Confirmation and Divergence Guard
The strategy uses an effort-versus-result style pressure model to require directional initiative at the moment of entry. It also suppresses entries when recent confirmed divergence argues against the trade direction.
5. Managed Exits
Open positions use ATR-based stop loss and take profit levels, plus a trailing logic anchored to the adaptive baseline. Positions can also be closed by context failure, by opposite signal, or by maximum bar duration in trade.
Features
Composite regime filter: Trend, ADX, volatility, slope, and efficiency must support the direction
Adaptive corridor entries: Uses a KAMA baseline with hybrid ATR/stdev width
Auction location filter: Requires acceptable relation to rolling value area and VWAP
Pressure confirmation: Requires directional effort-versus-result support
Divergence suppression: Recent opposing divergence can block new entries
ATR-based risk management: Stop, target, and trailing logic
Context exits: Positions can flatten when regime or pressure collapses
Dashboard summary: Regime, corridor, auction, pressure, divergence, exposure, and regime score
Default Strategy Properties
Initial Capital: 100000
Order Size: 10% of equity
Pyramiding: 0
Commission: 0.01%
Order Processing: on close
calc_on_every_tick: false
Input Parameters
Regime Engine:
Fast/Slow regime lengths
ADX length
Volatility length
Efficiency length
Bull and bear regime thresholds
Trend Corridor:
Baseline length
KAMA fast and slow parameters
Width length
Width multiplier
Pullback tolerance
Auction Context:
Auction lookback
Value area width
Auction acceptance toggle
VWAP alignment toggle
Risk Management:
ATR length
Stop ATR multiple
Target ATR multiple
Trail ATR multiple
Maximum bars in trade
Flatten on opposite signal toggle
How to Use This Strategy
Step 1: Verify the Market Type
If the regime score is near balance, the strategy is intentionally selective. Crownmark is designed for directional conditions more than rotational ones.
Step 2: Let the Entry Layers Stack
An entry requires regime, corridor, auction, pressure, and divergence conditions to agree. If one layer is missing, the strategy waits.
Step 3: Respect the Exit Logic
The strategy uses both price-based and context-based exits. A position can close because the stop or target was reached, but it can also close because the original trade thesis has weakened.
Step 4: Review Results in Context
Do not evaluate the strategy by win rate alone. Regime selectivity, trade duration, average excursion, commission sensitivity, and the instrument being tested all matter.
Strategy Limitations
This strategy uses bar-close logic and does not replicate intrabar execution behavior
The rolling auction model is a simplified proxy and not a full market profile engine
Divergence suppression can skip trades that later work, by design
Different assets and timeframes may require threshold tuning to remain realistic
Originality Statement
Crownmark Allocation Engine is original in how it combines regime scoring, corridor structure, auction-value location, pressure confirmation, and divergence suppression into one coordinated execution model. The strategy is not a basic trend-following template with cosmetic additions. Each layer has a distinct analytical role, and entries are only allowed when those layers support one another.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice and does not imply future performance. Backtest results depend heavily on instrument, timeframe, execution assumptions, and historical conditions. Use realistic expectations, confirm settings carefully, and apply sound risk management.
Strategy

AI UltraTrend X Pro V1The AI UltraTrend X Pro V1 is a high-performance, signal-based indicator engineered to identify explosive trend reversals while aggressively filtering out sideways market noise. Built specifically to handle high-volatility environments like BankNifty, this tool excels at capturing large point moves by combining institutional flow tracking with advanced price-action breakouts.
Key Features
Multi-Segment Mastery: While optimized for the fast-paced nature of BankNifty, the logic is universally applicable across Equity, Forex, Commodities, and Crypto.
Optimized for 3m+ Timeframes: Designed for the 3-minute duration and above, providing a perfect balance between early entries and noise reduction.
Hybrid Execution Logic: Unlike standard indicators that rely solely on crossovers, this script uses a dual-trigger system—line crosses and volatility-backed breakouts—ensuring you never miss a gap-up or a sudden trend explosion.
Intraday & Swing Flexibility: Seamlessly transitions between aggressive Intraday scalping and Positional trend following. The indicator maintains its state, allowing users to carry trades or square off at the end of the session based on their own risk profile.
Advanced Anti-Chop Shield: Features a built-in Volume & Volatility filter that identifies "dead zones" (gray signal areas) to prevent the "multiple entries/exits" common in flat markets.
Dynamic Trailing Stop-Loss: Plots a real-time, ATR-based trailing exit (Yellow Line) that locks in profits while giving the trend enough "breathing room" to survive minor pullbacks.
How to Use
Enter CE: Triggered when the signal turns Green and price breaks recent resistance.
Enter PE: Triggered when the signal turns Red and price breaks recent support.
Stay with the Trend: The background remains color-coded (Green/Red) as long as the trend is healthy.
Exit: Close your position when the signal label flips.
Best Settings
Timeframe: 3m, 5m, or 15m.
Chart: Works best on standard Candlesticks or Heikin Ashi for smoother trend following. Indicator

Stop Distance Quality [AGPro Series]Stop Distance Quality
🧠 Core Idea
Is the invalidation distance structurally reasonable, or is it too tight, too wide, or too exposed to noise?
📌 Overview / What it does
Stop Distance Quality is a chart-first risk planning tool built to evaluate stop-distance quality before a setup is treated as clean.
The script studies the active invalidation rail, ATR-normalized stop distance, swing structure fit, wick risk, volatility context, and available target room. It converts those components into a 0-100 risk-quality score and a clear next-action state.
It produces a stop-fit band, an invalidation rail, an ideal-fit guide, compact chart labels, alerts, and a clean AGPro planning panel. It does not select the best stop method, size positions, predict price direction, or automate trade decisions.
🎯 Purpose & Design Philosophy
This script was built to fill a specific planning gap: many tools show where a stop could be placed, but fewer tools ask whether that stop distance is structurally usable.
It helps traders who already have a setup idea and want to evaluate whether the invalidation distance is balanced enough to keep watching.
The design supports disciplined planning: measure the risk first, then decide whether the setup deserves attention.
⚡ Why This Script Is Different
Most tools focus on plotting stop-loss levels, comparing stop-loss methods, or attaching stops to entry signals.
This script does NOT act as a stop-loss optimizer, position-size calculator, target ladder, or directional signal tool.
Instead, it answers one practical planning question: is the current stop distance too tight, too wide, or reasonably aligned with structure and volatility?
⚙️ Methodology
1. Context Detection
The script selects long or short evaluation context using either manual side selection or automatic trend and range-location reading.
2. Reference Mapping
It maps one active swing-based invalidation rail and builds a stop-fit band using minimum, ideal, and maximum ATR-normalized distance boundaries.
3. Reaction Evaluation
It scores stop distance, swing structure fit, wick risk, volatility context, and target room.
4. Visual Output
It displays the stop-fit band, invalidation rail, ideal-fit guide, chart labels, alerts, and AGPro panel state.
🗺️ How to Read the Chart
Zones = the stop-fit band shows the acceptable ATR-normalized area where the active invalidation distance is considered more balanced.
Labels = labels mark FIT, WATCH, TOO TIGHT, TOO WIDE, NO ROOM, or invalidation-check contexts.
Colors = AGPro green highlights balanced fit, pink highlights wide-risk pressure, amber highlights caution, and indigo highlights active watch context.
Panel = the panel summarizes Stop Distance, ATR Context, Structure Fit, Risk Quality, and Action.
🚦 Signals & States
• FIT → stop distance is structurally reasonable enough for active review.
• WATCH → risk quality is improving but not strong enough for FIT.
• TOO TIGHT → invalidation distance is too close relative to ATR and may be vulnerable to normal noise.
• TOO WIDE → invalidation distance is too large relative to the current chart context.
• NO ROOM → target room is not clean enough for the current risk distance.
• WEAK FIT → the current context does not meet the minimum quality threshold.
🔔 Alerts Logic
Alerts trigger when the script enters FIT, WATCH, TOO TIGHT, TOO WIDE, or NO ROOM state.
An additional alert can trigger when price crosses the prior invalidation rail.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest context appears when stop distance sits near the ideal ATR band, swing structure is clear, wick noise is controlled, volatility is readable, and target room remains open.
When several of these conditions align, the risk-quality score improves.
📊 When to Use
• Before evaluating a risk-defined setup
• During pullbacks where invalidation placement matters
• Around breakout retests where stops can be too tight or too wide
• In structured trending or range-extension environments
⚠️ When NOT to Use
• Very low-liquidity symbols with erratic wicks
• Extremely noisy markets where ATR changes too quickly
• News-driven candles or abnormal event spikes
• Charts where no clear swing invalidation exists
🎛️ Key Inputs
• Evaluation Side → controls Auto, Long Context, or Short Context scoring.
• ATR Length → normalizes stop distance, wick risk, target room, and visual offsets.
• Invalidation Lookback → controls the swing rail used as the active invalidation reference.
• Minimum / Ideal / Maximum Stop ATR → define the stop-fit band.
• FIT / WATCH Thresholds → control how selective the planner is.
• Visual settings → control band visibility, guide lines, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is intentionally narrow and readable.
The chart focuses on one main visual object: the stop-fit band. The panel uses a single merged AGPro header row and keeps the essential risk-quality information visible without turning the script into a dashboard-heavy tool.
Labels are compact, offset from candles, and controlled with cooldown and maximum-visible settings.
🧪 Practical Usage Workflow
1. Read the panel risk-quality state.
2. Check whether the invalidation rail sits inside, below, or beyond the stop-fit band.
3. Review whether the label says FIT, WATCH, TOO TIGHT, TOO WIDE, or NO ROOM.
4. Confirm structure and volatility context before treating the setup as meaningful.
🔍 Interpretation Guidelines
Think of the output as a risk-quality filter, not a trade signal.
A FIT state means the distance is more balanced relative to ATR and structure. It does not mean price must move favorably.
A TOO TIGHT or TOO WIDE state means the risk reference may need more context, more buffer, or a cleaner setup.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a stop-loss optimizer
• Not a position-sizing calculator
⚠️ Limitations & Transparency
Stop-distance quality can change as volatility expands or contracts.
Different timeframes may produce different invalidation rails and ATR readings.
Fast markets, low liquidity, and abnormal wick behavior can reduce the usefulness of any rule-based distance model.
🧠 Market Context Notes
Risk quality is not only about where a stop sits. It also depends on whether volatility is readable, whether the swing reference is meaningful, and whether there is enough room before nearby obstruction.
This script keeps those factors visible without adding unrelated signal logic.
🧾 Use Case Examples
When price pulls back in a trend and the invalidation rail sits inside the stop-fit band, the setup can move into review mode.
When the stop distance is below the minimum ATR boundary, the script may mark TOO TIGHT and suggest waiting for more buffer.
When stop distance is large but target room is limited, the script may mark NO ROOM or TOO WIDE.
🧱 System Philosophy
Stop Distance Quality belongs to the AGPro planner-style family: tools that help traders evaluate context before decisions, rather than simply printing another signal.
🔐 Non-Promise Statement
No output from this script guarantees a result.
No score represents certainty.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, position sizing, and risk management.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
The goal is to make risk distance easier to inspect and compare across changing volatility conditions.
Indicator

Indicator

Indicator

Confluence Engine Strategy [JOAT]Confluence Engine Strategy
Overview
Confluence Engine Strategy is a fully automated Pine Script v6 strategy that combines four independent signal layers into a single numeric confluence score (0–100) before executing any trade. Entries require genuine agreement between linear regression momentum, dual EMA trend regime, ATR volatility state, and higher-timeframe bias. All exits are ATR-proportional with configurable take-profit and stop-loss multiples, plus a bar-based timeout and a trend-flip emergency exit. Commission (0.05% per side) and slippage (2 ticks) are configured for realistic backtesting.
Why Require Confluence?
Single-condition strategies (e.g., "go long when RSI crosses 50") produce entries in every conceivable market environment — ranging, trending, low-volatility, high-volatility — most of which are statistically unfavourable for that signal type. Requiring multiple independent conditions to agree simultaneously filters the entry universe down to the high-probability subset where each individual indicator is operating in its most favourable context. The Confluence Engine makes this filtering explicit and auditable through a numeric score.
Signal Layer 1 — Linear Regression Crossover
The primary entry trigger mirrors the Regression Flux Candles logic: a 21-bar linear regression of close (LR close) crossing above/below an 8-bar SMA of itself. The LR approach de-noises price before computing the crossover, significantly reducing the whipsaw rate compared to raw close-based SMA crossovers.
Signal Layer 2 — Dual EMA Trend Regime
Two exponential moving averages (fast: 21-period, slow: 55-period) define the trend regime. Long entries are only considered when the fast EMA is above the slow EMA; short entries only when fast is below slow. This prevents the LR crossover from triggering counter-trend entries in established trends — one of the most common sources of false signals in momentum strategies.
Signal Layer 3 — ATR Volatility State
The current 14-bar ATR is compared to a 50-bar ATR. Entries are only accepted when the current ATR is above a configurable fraction of the slow ATR (default 0.7). This volatility gate blocks trades during compression phases — low-volatility periods where breakouts frequently fail. The strategy only participates when directional energy is present.
Signal Layer 4 — Higher-Timeframe Bias
A higher-timeframe linear regression direction is fetched via request.security() with lookahead_off. The HTF LR close vs. HTF LR open comparison gives a single bullish/bearish vote from the higher timeframe. Long entries receive a confluence bonus when the HTF agrees; short entries receive a bonus when the HTF is bearish. This aligns trade direction with the prevailing macro bias.
Confluence Score and Threshold
Each of the four layers contributes points to the confluence score:
- LR crossover in direction: +30
- Dual EMA alignment: +25
- ATR volatility expansion: +20
- HTF bias alignment: +25
Maximum score: 100. The minimum required score to execute an entry (default 60) filters out entries where fewer than three layers agree. This threshold is adjustable — lower it for more signals, raise it for higher selectivity.
Entry Logic
Long: LR crossover up AND the accumulated confluence score >= minimum AND the signal is on a confirmed bar AND warmup has elapsed AND no position is currently open AND no cooldown bars remain.
Short: LR crossover down AND confluence >= minimum AND same guards.
A configurable cooldown period (default 5 bars) prevents re-entering the same direction immediately after an exit, avoiding overtrading in choppy conditions.
Exit Logic — Four Exit Conditions
1. ATR Take-Profit: Long exits when close >= entry + ATR × TP multiplier (default 2.0). Short exits below entry - ATR × TP.
2. ATR Stop-Loss: Long exits when close <= entry - ATR × SL multiplier (default 1.2). Short exits above entry + ATR × SL.
3. Bar Timeout: If neither TP nor SL is hit within a configurable number of bars (default 20), the trade exits at market — preventing capital from being locked in stalled trades.
4. Trend Flip Exit: If the dual EMA regime flips against the trade direction (fast EMA crosses slow EMA), the trade exits immediately — recognising that the structural basis for the entry has been invalidated.
Strategy Properties
- Initial capital: $10,000
- Order size: 10% of equity per trade (sustainable risk allocation)
- Commission: 0.05% per side (representative of major exchange fees)
- Slippage: 2 ticks (accounts for spread and execution delay)
- Currency: USD
- Pyramiding: disabled (one position at a time)
These settings are designed to produce realistic backtesting results. Risk per trade is capped well below the 5–10% equity guideline. Commission and slippage are included to prevent overstating performance.
Inputs Reference
Signal Layers
- LR Length (21) — linear regression period
- Signal SMA Length (8) — crossover trigger SMA
- Fast EMA (21) / Slow EMA (55) — trend regime definition
- ATR Length (14) / ATR Slow Length (50) / ATR Threshold (0.70)
- HTF Timeframe — higher-timeframe bias source (default "D")
Confluence & Filters
- Min Confluence Score (60) — minimum sum of layer scores required for entry
- Cooldown Bars (5) — bars to wait after exit before re-entering
- Max Bars in Trade (20) — timeout exit
Risk Management
- TP ATR Multiple (2.0) — take-profit distance in ATR units
- SL ATR Multiple (1.2) — stop-loss distance in ATR units
How to Read the Results
Apply the strategy to a liquid instrument on a 1H or 4H chart with sufficient history to generate 100+ trades. Evaluate:
- Net profit relative to max drawdown (seek ratio > 2:1)
- Win rate in context of average win vs. average loss
- Profit factor (total gross profit / total gross loss, seek > 1.3)
- Number of trades (sufficient sample size for statistical inference)
Adjust the confluence minimum score to trade off signal frequency against quality: 50 produces more trades, 75 produces fewer but higher-quality entries.
Non-Repainting Design
All entries fire on strategy.entry() within barstate.isconfirmed blocks. HTF bias uses lookahead_off. No future bar data is accessed. Historical signals do not shift position.
Limitations
- The strategy is designed as a general-purpose framework. It is not optimised for any specific instrument or session. Optimal parameters vary significantly across markets and timeframes.
- ATR-based exits are approximate. In gap markets (equities overnight, weekend gaps on crypto), the stop-loss may be exceeded significantly before the exit executes.
- Backtesting results are computed on historical data only and do not account for execution quality, broker-specific fees, or market impact. Past backtesting performance does not guarantee future live results.
- The bar timeout exit may prematurely close positions that would have eventually reached TP. This is a deliberate conservative design choice to limit capital lock-up, not a flaw.
Disclaimer
This strategy is provided for educational and informational purposes only. Backtesting results presented in the strategy tester represent historical simulation and do not guarantee any future trading outcome. Past performance is not indicative of future results. Never risk capital you cannot afford to lose. Always use proper risk management and conduct independent analysis before making any trading decisions.
Made with passion by officialjackofalltrades
Strategy

Market Structure Trend Matrix [BigBeluga]Market Structure Trend Matrix is a comprehensive technical analysis framework engineered for traders who demand precision in identifying market regimes and trend expansions. By integrating automated Market Structure (MS) detection with volatility-adjusted risk parameters, this indicator provides a systematic roadmap for navigating complex price action.
The tool focuses on the Change of Character (ChoCh) —the critical moment when a previous trend structure breaks and a new directional bias begins.
🔵 ARCHITECTURE & CORE LOGIC
Automated Structure Mapping: The engine uses a sophisticated pivot-detection algorithm (MS Length) to scan for institutional-grade swing highs and lows. It ignores minor retail noise, drawing structural lines only when significant supply or demand zones are breached.
The ChoCh Engine: When price crosses a recent pivot high or low, the indicator prints a "ChoCh" label. This represents a fundamental shift in market sentiment, signaling that the current trend has likely terminated and a new cycle has begun.
Infinite Expansion Targets: One of the most advanced features of the Matrix is its ability to project sequential, infinite targets. These levels are not static; they are calculated using Average True Range (ATR) multipliers, meaning they expand and contract based on current market volatility.
Volatility-Anchored Trailing Stop: To ensure professional-grade risk management, the indicator plots a dynamic ATR Trailing Stop . This line acts as a "ratchet" mechanism—it moves closer to price during the trend expansion but stays firm during minor pullbacks, providing a clear exit point if the trend truly fails.
🔵 ADVANCED FEATURES & UPDATES
Target History Control: This latest version includes a Show History toggle. You can choose to keep the chart clean by only displaying the Active Target , or you can enable history to see a visual record of every target hit during the trend, complete with historical percentage labels.
Dynamic Trailing Stop Visibility: The Show Trailing Stop feature allows you to toggle the visibility of the ATR stop line and its associated background fill, giving you full control over the visual "weight" on your workspace.
Percentage Profit Labels: Every time price reaches an expansion target, the script automatically plots a label showing the percentage gain from the initial ChoCh entry point.
Volatility-Adjusted Spacing: Both the trailing stop and the target steps use ATR-based calculations. This ensures that the indicator remains effective across all asset classes—from volatile Cryptocurrencies to stable Forex pairs.
🔵 HOW TO INTERPRET THE MATRIX
Bullish State (Green Matrix): Activated when price breaks above a major Pivot High. The indicator projects upward expansion targets and maintains a trailing stop below the price.
Bearish State (Pink Matrix): Activated when price breaks below a major Pivot Low. The indicator projects downward targets and maintains a trailing stop above the price.
The Target Cascade: As price hits a target, the indicator instantly projects the next level. If price continues to expand, you will see a "cascade" of dashed lines, each representing a deeper extension into the trend.
🔵 APPLICATION IN TRADING
Scalping & Day Trading: Set the Market Structure Length to a lower value (e.g., 5-8) to capture fast intraday pivots and expansion moves on 1m or 5m charts.
Swing Trading: Use a higher length (e.g., 15-20) to identify macro structure shifts on Daily or H4 timeframes, allowing the ATR targets to guide your long-term profit-taking.
Risk-Reward Management: The distance between the ChoCh Entry and the ATR Trailing Stop provides an objective risk measurement, while the sequential targets provide clear reward milestones.
Filtering False Breaks: By using an ATR Multiplier for the trailing stop, the Matrix avoids many of the common "whipsaws" found in standard trend-following systems.
🔵 CONCLUSION
Market Structure Trend Matrix is more than a signal tool; it is a visual framework for objective decision-making. By anchoring your trading to structural pivots and volatility-based targets, you remove the guesswork from trend following. Whether you are looking for a clean "ChoCh" entry or a systematic way to trail your profits during a massive expansion, the Trend Matrix provides the data and clarity required to trade like a professional. Indicator

Phantom Structure Engine [JOAT]Phantom Structure Engine
Overview
Phantom Structure Engine is a comprehensive Smart Money Concepts (SMC) framework built entirely in Pine Script v6 using typed User-Defined Types and methods. It maps institutional price structure across five dimensions simultaneously: swing Break of Structure (BOS), Change of Character (CHoCH), Order Blocks (OB), Fair Value Gaps (FVG), Equal Highs/Lows (EQH/EQL), Liquidity Sweeps, and dynamic Premium/Discount/Equilibrium zones — all rendered with an institutional-grade dark visual palette and managed via object arrays.
Why a Unified SMC Framework?
SMC concepts are deeply interconnected. A BOS creates the context for a valid Order Block. A CHoCH signals a structural regime shift that invalidates existing OBs. A liquidity sweep above an EQH often precedes a reversal into a Discount zone. Displaying these concepts in isolation (as separate indicators) breaks the logical chain between them. Phantom Structure Engine fuses all layers into a single coherent visual, so each element is always read in its correct structural context.
Core Engine — Swing Structure
Two separate pivot engines run concurrently:
- Swing pivots (configurable left/right bars, default 10/10): define the major structure highs and lows used for BOS and CHoCH detection
- Internal pivots (default 3/3): track minor structure shifts for shorter-term intrabar analysis
BOS Detection with Confirmation Counter
Rather than firing on the first close beyond a swing level, the engine counts consecutive closes above the last swing high (or below the last swing low). A BOS only registers when the close count reaches or exceeds the configurable confirmation threshold (default 1, max 5). This suppresses false breaks caused by wicks and momentary spikes while remaining responsive.
- BOS (Break of Structure): Close beyond swing level, structure direction confirmed. Displayed as a horizontal line from the pivot bar to the break bar, with a BOS label.
- CHoCH (Change of Character): BOS that occurs against the prevailing structural direction (e.g., a bullish break when the prior confirmed direction was bearish). Displayed in gold with a dashed line and CHoCH label.
Order Block Detection
When a BOS or CHoCH fires, the engine scans backward (configurable lookback, default 10 bars) for the last opposing candle — a bearish candle before a bullish BOS, or a bullish candle before a bearish BOS. This candle becomes the Order Block zone.
Each OB is drawn with a two-layer box: a wide semi-transparent outer box and a tighter inner highlight. The OB extends forward on every bar and automatically invalidates (turns grey) when price closes through the opposite boundary — the exact behaviour seen when an OB has been mitigated by institutional flow.
Fair Value Gap Detection
A bullish FVG is identified when bar .low > bar .high (a gap in price between the current bar's low and two bars ago's high), indicating that price moved so fast upward that no trading occurred in that range. Bearish FVG is the mirror. FVGs are drawn as dotted-border boxes that extend forward and auto-fill (turn grey) when price returns to close the gap.
Equal Highs / Equal Lows (EQH / EQL)
At each new swing pivot, the engine compares the current pivot value against the previous pivot of the same type. If the absolute percentage difference is less than 0.15%, they are classified as equal and an EQH or EQL label is stamped at the midpoint. These levels represent liquidity pools resting above or below price — targets for institutional sweeps.
Liquidity Sweeps
A sweep is detected when price wicks beyond the last confirmed swing high or low but closes back on the opposite side. This is the classic liquidity grab: price hunts stops above a high (or below a low), then reverses. Sweep labels fire at the wick extreme in gold — one of the highest-probability reversal signals in institutional analysis.
Premium / Discount / Equilibrium Zones
After each confirmed BOS, the engine identifies the full range between the last confirmed swing high and swing low. This range is divided into three zones:
- Premium (top 38.2%): Statistically expensive — short bias in a bearish structure
- Equilibrium (38.2%–61.8%): Fair value — reduce exposure
- Discount (bottom 38.2%): Statistically cheap — long bias in a bullish structure
Previous zones are deleted and redrawn on each new BOS, keeping the chart clean.
Periodic Levels (PDH / PDL / PWH / PWL)
Previous Day High/Low and Previous Week High/Low are fetched via request.security() with lookahead disabled (barmerge.lookahead_off), preventing any future-bar contamination. These levels render as step-line plots and represent the primary reference levels used by institutional order desks at open.
Institutional Funding Candles
Bars where the true range exceeds 1.5× ATR(14) AND volume exceeds 2× the 20-bar volume SMA are highlighted as funding candles. These represent institutional participation bars and are coloured based on the current structural direction: teal (bullish structure), red (bearish structure), gold (neutral).
Dashboard (Top Right)
A compact 2-column, 8-row table displays: current structural direction, active OB count, open FVG count, last confirmed swing high/low values, and current sweep status for both sides.
Inputs Reference
Structure Settings
- Swing Pivot Left/Right Bars (10/10) — major swing sensitivity
- Internal Pivot Left/Right (3/3) — minor structure sensitivity
- BOS Confirmation Closes (1–5) — consecutive closes needed to confirm BOS
- Show BOS Labels / CHoCH Labels / HH-HL-LH-LL labels
Order Blocks
- Show Order Blocks
- OB Lookback Candles (10) — how far back to scan for the OB candle
- Max Active OBs (6) — older OBs are deleted when limit is reached
Fair Value Gaps
- Show Fair Value Gaps
- Max Active FVGs (5)
Premium / Discount
- Show PD Zones / EQH-EQL / Liquidity Sweeps
Periodic Levels
- Show Prev Day H/L / Prev Week H/L
Visual
- Theme: Dark, Light, Auto
- Show Funding Candles
How to Use
1. Apply on any liquid instrument. Allow the warmup period (driven by pivot lookback) before trusting the signals.
2. Read structure direction from the dashboard. BOS labels in teal confirm a bullish shift; CHoCH in gold signals a potential trend reversal.
3. Look for price to pull back into a valid (not invalidated) OB or into the Discount zone before considering long entries. Reverse for shorts.
4. FVG zones often act as magnets — price tends to revisit them before continuing in the BOS direction.
5. Treat Liquidity Sweep labels as potential reversal alerts, particularly when they align with OBs or Discount/Premium zones.
Non-Repainting Design
All BOS, CHoCH, sweep, and FVG signals are gated by barstate.isconfirmed. Periodic levels use close with lookahead_off. No pivot value is read until the required right-bar confirmation period has elapsed. Historical labels never shift position.
Limitations
- SMC is a discretionary framework. This indicator automates detection but cannot replace contextual judgment on higher-timeframe bias.
- In extremely fast-moving markets, FVGs may form and fill within the same session, reducing their relevance as future targets.
- EQH/EQL detection uses a 0.15% price equality threshold — this may need adjustment for very low-priced or highly volatile instruments.
- OBs are detected from the most recent opposing candle before a BOS. On some instruments, the true institutional OB may be further back.
Disclaimer
This indicator is provided for educational and informational purposes only. SMC concepts describe price behaviour patterns and do not guarantee any future market outcome. Always conduct your own analysis and use proper risk management.
Made with passion by officialjackofalltrades
Indicator

Sovereign Trend Strategy [JOAT]Sovereign Trend Strategy
Introduction
The Sovereign Trend Strategy is a systematic, rules-based trend-following strategy built on the SMEMA (SMA of EMA) crossover engine — a double-smoothed moving average system that removes the erratic noise of raw EMA crossovers while remaining faster to respond than pure SMA systems. It enters long and short trades on SMEMA fast/slow crossovers, applies four optional confirmation filters (ADX, RSI, volatility ratio, and baseline), and manages each trade through a full exit framework: stop loss, two take-profit levels with partial close at TP1, a dynamic trailing stop, a trend-reversal exit, and a maximum bars cap that forces turnover.
This is a strategy designed to trade constantly — the default configuration is tuned for maximum trade frequency across all assets and timeframes, with all optional filters disabled so that every valid SMEMA crossover generates a signal. Traders seeking higher-quality entries can enable the ADX, RSI, baseline, or volatility filters individually to raise the bar.
Core Concepts
SMEMA — Double-Smoothed Moving Average Engine
The SMEMA construction applies a simple moving average on top of an exponential moving average, producing a line that is more responsive than a plain SMA but smoother than a raw EMA:
smema(float src, int len) =>
ta.sma(ta.ema(src, len), len)
float fast = smema(close, smFast)
float slow = smema(close, smSlow)
float baseline = smema(close, smBase)
Three SMEMA lines are computed: a fast line (default length 2), a slow line (default length 5), and a longer baseline (default length 15). Crossovers between fast and slow generate the entry signals. The baseline provides an optional directional filter when enabled.
Entry Conditions
Long entries fire when the fast SMEMA crosses above the slow SMEMA with all active filters passing:
bool xUp = ta.crossover(fast, slow)
bool longOk = xUp and adxOk and rsiLongOk and volOk and baseOk
and warmed and inDateRange and barstate.isconfirmed and doLong
Short entries mirror this on downward crossovers. Entries only fire when there are no open trades (pyramiding disabled), ensuring clean one-trade-at-a-time management.
Trade Management Framework
Each trade uses ATR-based levels calculated at entry:
| Level | Default Multiplier | Purpose |
|-------|-------------------|---------|
| Stop Loss | 1.8× ATR | Full position stop |
| TP1 | 2.5× ATR | 50% partial close, breakeven stop move |
| TP2 | 4.5× ATR | Full position close |
| Trailing Stop | 1.5× ATR | Activated after TP1 hit |
After TP1 triggers, the stop-loss is moved to the entry price (breakeven). The trailing stop then follows price by 1.5× ATR, locking in profit while letting the remaining position run toward TP2. This staged approach captures quick-reaction profits at TP1 and rides momentum toward TP2.
Six Exit Paths
// Priority order for long exits:
// 1. Stop Loss — low <= entrySL
// 2. TP1 — high >= entryTP1 (50% partial, breakeven stop set)
// 3. TP2 — high >= entryTP2 (full close after TP1 hit)
// 4. Trailing — low <= trlStop (after TP1 hit)
// 5. Reversal — fast SMEMA crosses below slow (xDn confirmed)
// 6. Max Bars — barsInTrd >= maxBars
The max bars exit (default 10) is particularly important for trade frequency — it guarantees no position is held longer than 10 bars regardless of whether any other exit triggers, creating rapid capital recycling and enabling 100+ trade sample sizes even on daily timeframes.
Optional Confirmation Filters
All four filters are disabled by default and can be enabled individually:
ADX Filter — requires ADX above a minimum threshold before entry. Prevents entries in ranging, low-momentum markets.
RSI Filter — requires RSI above the bull minimum for longs (default 52) or below the bear maximum for shorts (default 48). Confirms momentum alignment with direction.
Volatility Ratio Filter — requires current ATR to be at least a configurable fraction of its own SMA. Filters out squeeze conditions where ATR is compressed.
Baseline Filter — requires close to be above the baseline SMEMA for longs and below for shorts. Adds a medium-term trend confirmation layer.
Strategy Parameters (Backtesting Standards)
Initial capital: $10,000 (realistic for the average retail trader)
Position size: 100% of equity (maximizes trade count visibility in backtest)
Commission: 0.05% per side (appropriate for most spot and futures markets)
Slippage: 2 ticks (conservative estimate for liquid instruments)
Pyramiding: 0 (no compounding positions)
Features
SMEMA fast/slow crossover entry engine with three configurable period lengths
Full trade management: ATR-based SL, TP1 (50% partial), TP2 (full), trailing stop, reversal exit, max bars exit
Breakeven stop migration to entry price after TP1 hit
Four optional confirmation filters: ADX, RSI, volatility ratio, and SMEMA baseline
Long-only, short-only, or both directions configurable
Date range filter for restricted backtesting windows
Live SL, TP1, and TP2 dashed lines drawn on the chart while a trade is open
SMEMA ribbon fill between fast and slow lines, colored by crossover direction
▲ LONG / ▼ SHORT signal labels at every entry signal
Dashboard: position, SMEMA cross direction, ADX, RSI, vol ratio, trade count, win rate, net P&L, bars in trade, settings summary
Alerts for long entry and short entry signals
Webhook JSON alert format
Watermark
Input Parameters
SMEMA Engine
Fast SMEMA Length — period for the fast crossover line (default 2)
Slow SMEMA Length — period for the slow crossover line (default 5)
Baseline SMEMA — period for the optional trend baseline (default 15)
Trend Filter
ADX Length — period for ADX / DMI calculation (default 14)
Min ADX — minimum ADX value required before entry (default 18)
Enable ADX Filter — master toggle (default off)
RSI Filter
RSI Length — period for RSI calculation (default 14)
RSI Bull Min — minimum RSI for long entries (default 52)
RSI Bear Max — maximum RSI for short entries (default 48)
Enable RSI Filter — master toggle (default off)
Volatility Filter
ATR Length — lookback for ATR (default 14)
ATR Smooth — lookback for the ATR average used in ratio (default 20)
Min Vol Ratio — ATR/AvgATR minimum threshold (default 0.8)
Enable Vol Ratio Filter — master toggle (default off)
Baseline Filter
Enable Baseline Filter — when on, requires close above baseline for longs and below for shorts (default off)
Trade Management
Stop-Loss ATR Mult — distance of initial stop from entry in ATR units (default 1.8)
TP1 ATR Mult — distance of first take-profit from entry (default 2.5)
TP2 ATR Mult — distance of second take-profit from entry (default 4.5)
Use Trailing Stop — enables dynamic trailing after TP1 (default on)
Trailing Stop ATR Mult — trail distance in ATR units (default 1.5)
Max Bars in Trade — maximum bars before forced exit (default 10)
Trade Direction
Allow Long Trades — toggles long entry signals (default on)
Allow Short Trades — toggles short entry signals (default on)
Date Range
Enable Date Filter — restricts backtesting to a specific window
From Date / To Date — start and end of the active period
Visuals
Bull Color — cyan default for upside elements
Bear Color — red default for downside elements
Neutral Color — gray for baseline and neutral dashboard text
Show Dashboard — live performance and settings panel
Show Watermark
Show Signal Labels — ▲ LONG / ▼ SHORT markers on entry bars
Show SMEMA Bands — toggles the ribbon and three SMEMA line plots
How to Use
Add the strategy to any chart. The default settings are tuned for high trade frequency — no filters enabled, fast periods of 2/5, max bars 10.
Run the Strategy Tester to review backtest performance. Check that the trade count is above 100 on your chosen timeframe and symbol before drawing any performance conclusions.
To increase signal quality at the cost of trade frequency, enable filters one at a time: start with the ADX filter to eliminate ranging entries, then add RSI if you want additional momentum confirmation.
Use the SL/TP dashed lines drawn on-chart during live trades to monitor your risk levels visually in real time.
Set the Long Entry and Short Entry alerts to receive notifications. Use Webhook JSON format to route signals to automation platforms.
Adjust the ATR multipliers to fit the volatility profile of your market. Higher-volatility assets like altcoins benefit from wider stops (2.0–2.5×) and wider TP levels. Lower-volatility assets like indices may work better with tighter parameters.
The Max Bars in Trade parameter is the most powerful lever for trade frequency. Reducing it to 5–7 generates very high trade counts. Increasing it to 20–40 gives trades more room to develop but reduces total trade count.
Indicator Limitations
SMEMA crossovers are inherently lagging — by definition, the crossover confirms a direction change after it has already begun. In fast-moving markets this means entries will not be at the exact turning point.
The default configuration (all filters off, max bars 10) optimizes for trade count and sample size rather than highest possible win rate. Enabling filters will reduce trade count but may improve per-trade quality — test thoroughly on your symbol and timeframe before live use.
The 100% equity position sizing in the backtest is chosen to keep commission effects proportional and performance metrics visible at small capital sizes. This does not represent a recommendation to risk your entire account on any trade.
Backtested results are not a guarantee of future performance. Past performance under any parameters does not imply future results.
The strategy uses `calc_on_every_tick=false` — all orders execute at bar close, which is more realistic than tick-by-tick simulation but means intrabar SL/TP wicks may not be captured accurately in the backtest.
Originality Statement
The Sovereign Trend Strategy is an original Pine Script v6 strategy publication. The SMEMA (SMA of EMA) double-smoothing construction is an original baseline engineering choice that produces a distinct crossover behavior not replicated by standard EMA or SMA crossover systems. The six-path exit framework, the staged TP1/breakeven/trailing/TP2 management sequence, and the modular optional filter architecture are original design decisions. The strategy.position_size derivation of position state (avoiding the Pine Script v6 timing bug with strategy.opentrades and manual boolean flags) is an original technical solution developed for this publication.
Disclaimer
This is a backtested strategy provided for educational purposes only. It does not constitute financial advice or a recommendation to trade any specific instrument. All trading involves risk of capital loss. Backtested performance does not guarantee future results. Commission, slippage, and real-world execution conditions will differ from backtest simulations. Always perform your own analysis and consult a licensed financial professional before trading with real capital.
-Made with passion by jackofalltrades
Strategy
