OPEN-SOURCE SCRIPT

ApexSignalPro SMC [ForexCracked] [Confluence-Scored BOS/OB/FVG]

4 454
ApexSignalPro SMC — Multi-Confluence Institutional Structure Indicator


Overview

ApexSignalPro SMC is a confluence-scored Smart Money Concepts indicator that fires directional signals only when multiple institutional-style footprints align on the same bar. Rather than reacting to a single oscillator reading or moving-average crossover, every signal is backed by a live score (0–5) reflecting the number of structural conditions currently in agreement — market structure, order blocks, fair value gaps, premium/discount location, and higher-timeframe bias.
The indicator replaces the "every crossover is a signal" approach common to retail indicators with a strict confluence gate, a range-regime filter, and forced signal alternation, producing a substantially lower signal frequency but higher per-signal conviction. A live dashboard summarizes the score, active zones, and the last trade plan so the full state of the engine is visible at a glance.
Conceptual Framework
ApexSignalPro SMC is built on the principle that institutional order flow leaves recurring structural footprints on a price chart, and that higher-conviction entries occur where several of these footprints overlap rather than where any single indicator fires in isolation.
Three design principles guide the engine:
  1. Direction is determined by market structure (BOS / CHoCH), not by price crossing smoothed averages.
  2. Entries require confluence — a BOS alone is not enough; price should also be interacting with a valid unmitigated order block or fair value gap, located in the correct half of the current range (discount for longs, premium for shorts), and aligned with higher-timeframe bias.
  3. Signals must alternate. Once a long signal has fired, only an opposing short signal is allowed next, preventing consecutive same-direction arrows during a single trend leg.


This shifts signal generation from reactive, noise-driven crossovers to a structured confluence model where each arrow represents the convergence of multiple independent conditions.
How It Works
ApexSignalPro SMC evaluates price through the following sequence:

  • Swing Pivot Detection: Confirmed swing highs and lows are identified using a symmetrical pivot lookback on both sides of the candle.
  • Structure Classification (BOS / CHoCH): A close beyond the most recent pivot in the direction of the existing trend is classified as a Break of Structure (BOS); the first break against the prevailing structure direction is classified as a Change of Character (CHoCH) and flips the internal structure state.
  • Order Block Detection: A bullish order block is recorded as the last bearish candle preceding an impulsive bullish displacement (body > 1.2× ATR) that produces a bullish BOS. Bearish order blocks use the mirror logic. Each OB is tracked until either price closes through the far edge (mitigation) or the OB exceeds its maximum age.
  • Fair Value Gap Detection: A three-candle imbalance is registered when the wick of candle 1 and candle 3 do not overlap, with a minimum gap size expressed as a fraction of ATR to filter noise. FVGs are mitigated when price trades back through the gap.
  • Premium / Discount Mapping: The most recent swing high and swing low define the current range; the 50% midpoint separates the discount zone (below) from the premium zone (above). Long setups require price in discount, short setups require price in premium.
  • Higher-Timeframe Bias: A higher-timeframe EMA (configurable timeframe and length) is requested via request.security and used as a directional filter.
  • Regime Filter: ADX is calculated on the current timeframe and must exceed a configurable minimum for any signal to be permitted, excluding low-trend-strength environments where breakout-style signals have historically underperformed.
  • Confluence Scoring: Each bar produces a bullish score and a bearish score, each 0–5, with one point awarded for: structure direction, price inside an unmitigated OB, price inside an unmitigated FVG, correct P/D zone, HTF bias alignment.
  • Trigger: A signal fires only when the score meets the minimum confluence threshold AND a strong-body candle closes in the signal direction AND the ADX filter passes AND the signal direction differs from the previous signal.
  • Risk Framework: On each signal, the stop loss is placed beyond the nearest relevant OB with an ATR buffer; take profit is placed at a configurable R:R multiple of the SL distance. Entry, SL, and TP are drawn as extending lines with pip-labeled tags.


Interpretation
ApexSignalPro SMC should be read as a layered confluence map, not a reactive signal generator:

  • Confluence Score (0–5): The primary quality filter. Signals at score 4 or 5 represent multi-factor agreement; signals at the minimum threshold (default 3) are valid but benefit from additional discretionary confirmation.
  • Structure State: Bullish (HH/HL) or Bearish (LH/LL) derived from live BOS / CHoCH tracking. A CHoCH event flags a genuine shift in directional bias and is more meaningful than a same-direction BOS continuation.
  • Active Order Block Zones: Shaded boxes mark unmitigated OBs. Zones are removed automatically upon mitigation; fresh, untested OBs have higher reaction probability than zones that have been revisited multiple times.
  • Fair Value Gap Boxes: Translucent boxes mark unfilled three-candle imbalances. Price frequently returns to fill these regions, providing either target levels in trend or reaction levels on retest.
  • Premium / Discount Midline: Yellow dashed line separating the current range into upper and lower halves. Long entries in discount and short entries in premium align with the principle of entering at favorable relative pricing within the active range.
  • HTF Bias Label: Higher-timeframe EMA relationship provides directional context. Counter-HTF signals are permitted only if the remaining confluences are strong.
  • Regime Label: TRENDING / RANGING based on ADX. RANGING regimes suppress all signals regardless of score.


Signal Logic & Visual Cues

  • Buy Signal (▲): Green upward triangle below the bar, fired only when bullish score ≥ minimum confluence, strong bullish candle close, ADX passes, and previous signal was not a buy. SL / TP / Entry lines drawn to the right.
  • Sell Signal (▼): Red downward triangle above the bar, fired only when bearish score ≥ minimum confluence, strong bearish candle close, ADX passes, and previous signal was not a sell.
  • Signal Bar Tint: Background of the signal bar is softly colored to aid retrospective review of fire points.
  • Dashboard: Always-on top-right panel showing HTF bias, structure, regime, P/D zone, live BUY and SELL confluence scores, counts of active OBs and FVGs, and the last trade's direction / entry / SL / TP.


Strategy Integration
ApexSignalPro SMC fits several discretionary and semi-systematic approaches:

  • Confluence-Gated Entry: Take only score-4 and score-5 signals; skip score-3 signals or combine them with an additional discretionary filter (session timing, candlestick pattern, news avoidance).
  • HTF Alignment Mode: Require the dashboard's HTF bias to match the signal direction before taking any trade, regardless of score.
  • Pullback Continuation: Inside an established structure direction, use retests of unmitigated OBs or FVGs in the trend direction as lower-risk continuation entries.
  • Fixed Risk-Per-Trade: Use the drawn SL distance as the input for position sizing at a fixed 0.5–1.0% account risk per trade.
  • Alert-Driven Workflow: Configured alerts fire on every BUY / SELL signal with full trade plan (pair, timeframe, entry, SL, TP, score) in the alert message body, suitable for webhook forwarding.


Recommended Configuration
Timeframe guidance:

  • 15m – 1H: Intraday structure trading with responsive pivots and faster HTF (60–240).
  • 4H – Daily: Swing trading on major FX pairs, indices, gold; HTF set to Daily or Weekly.


Suggested baseline:

  • Swing Length: 5
  • Higher Timeframe: 240 (H4) on H1 charts; D1 on H4 charts
  • HTF EMA: 50
  • OB Max Age: 20 bars
  • FVG Min Size: 0.3 × ATR
  • ADX Min: 22
  • Min Confluences: 3 (increase to 4 for selectivity)
  • SL Buffer: 0.5 × ATR
  • R:R: 2.0


Parameter Calibration Notes

  • Too many signals: Raise Min Confluences to 4, raise ADX Min to 25, or increase Swing Length to 8.
  • Too few signals: Lower Min Confluences to 3, lower ADX Min to 20, or shorten Swing Length to 3–4.
  • Stops being wicked out: Increase SL Buffer ATR multiplier toward 0.8–1.0.
  • Mitigated OBs clearing too fast: Increase OB Max Age, or adjust displacement threshold in the source.


Performance Characteristics
Higher effectiveness:

  • Trending environments with clear swing structure (majors, gold, indices on H1 / H4).
  • Instruments with consistent candle bodies and reliable pivots.
  • Sessions aligned with institutional activity (London / New York overlap for FX).


Reduced effectiveness:

  • Low-volatility consolidation, weekend crypto drift, or pre-news compression.
  • Highly gapped markets where pivot logic becomes unreliable.
  • Timeframes below 5 minutes where noise dominates structure.


Disclaimer
ApexSignalPro SMC is an analytical tool providing structured signals derived from Smart Money Concepts. It does not predict future price movement. Results depend on market conditions, parameter selection, and the user's execution discipline and risk management. This script is shared for educational and research purposes; past performance of the underlying concepts does not guarantee future results. Use within a complete trading plan that includes position sizing, maximum daily loss limits, and independent confirmation methods.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.