Noon Barbari
Registrati
Tutti gli articoli
approfondimentoPubblicato ·12 min di lettura

Smart Money Concepts in noonbarbari — clean-room port

All six SMC primitives — market structure, FVGs, order blocks, EQH/EQL, prior-period levels, premium/discount — implemented from the public literature so they're licence-clean for commercial use.

In questa pagina

What shipped

Six Smart Money Concepts indicators, all available in the Indicator Designer and the Strategy Designer's rule editor:

  • market_structure — tracks the swing-high / swing-low sequence and emits BOS (break of structure) and CHoCH (change of character) signals.
  • fair_value_gap — detects 3-bar imbalances where bar1's high doesn't overlap bar3's low (or vice versa), tracks fill state.
  • order_block — the last opposite-coloured candle before a BOS, with retest and mitigation events.
  • equal_highs_lows — clusters of swing points within an ATR-scaled tolerance; the liquidity-sweep precursor.
  • prior_period_levels — previous day/week/month high, low, open, close as discrete lines for liquidity targets.
  • premium_discount_zones — Fib-zone classification of the trailing range: premium / equilibrium / discount.

Why "clean-room"

The single most widely-used SMC implementation on TradingView is LuxAlgo's, which is licensed CC BY-NC-SA — the NC clause explicitly forbids commercial use. Porting that script directly into noonbarbari would put the entire platform in licence violation the moment we charge a subscriber. So we didn't port it. We implemented the concepts from the public ICT and price-action literature — Michael Huddleston's videos, the publicly-circulating ICT mentorship transcripts, and the broader Wyckoff / structural-pivot reading list — and wrote our own code from scratch.

The implementation is therefore licence-clean: we own it, we can ship it, and we can iterate on it without having to align with anyone else's release cadence. The trade-off is that some specific cosmetic choices (exact colour palettes, default tolerance constants) won't match what a LuxAlgo user expects — they will match the underlying definitions.

BOS and CHoCH

Market structure indexes the chart as a sequence of swing highs (SH) and swing lows (SL). In a bull leg the sequence is HH → HL → HH → HL; in a bear leg it's LH → LL → LH → LL. A Break of Structure (BOS) is a close beyond the most recent SH in a bull regime (or beyond the most recent SL in a bear regime) — confirmation that the trend is extending. A Change of Character (CHoCH) is a close beyond the most recent SL in a bull regime (or beyond the most recent SH in a bear regime) — the first hard evidence that the trend has flipped.

Using BOS and CHoCH in a noonbarbari rule
strategy:
  name: structure_breakout
  indicators:
    - { id: ms, kind: market_structure, swing_period: 5 }
  rules:
    entry_long:  { type: signal, signal: ms.bos_signal,  direction: bull }
    exit_long:   { type: signal, signal: ms.choch_signal, direction: bear }
    entry_short: { type: signal, signal: ms.bos_signal,  direction: bear }
    exit_short:  { type: signal, signal: ms.choch_signal, direction: bull }
  # ms.state is also exposed — read it for "bull" / "bear" regime gating

Fair Value Gaps

An FVG (also called an imbalance) is a 3-bar pattern where bar 2 moves so fast in one direction that bar 1's high and bar 3's low don't overlap. The gap between them is the FVG. The structural reading is that price moved through a zone without taking the liquidity inside it, so price is statistically likely to revisit and "fill" that zone later.

FVG detection and fill tracking
# Bullish FVG: bar1.high < bar3.low — a gap that opened on a strong up bar2
fvg_bull[i] = (high[i-2] < low[i])
fvg_zone    = (high[i-2], low[i])     # bottom, top of the gap

# Fill state: 'open' until a later bar's wick re-enters the zone,
# then 'partial' until the body closes through, then 'filled'.
# fvg_open_signal fires on detection; fvg_fill_signal fires on close-through.

Two common uses. First, take entries at unfilled FVGs in the direction of the higher-timeframe trend — discount FVGs in a bull regime, premium FVGs in a bear regime. Second, treat FVG fills as targets — if a bullish FVG is sitting below current price, expect price to revisit it before the up-leg completes.

Order blocks

An order block is the last opposite-coloured candle before a BOS — i.e., the last down-candle before a bull BOS, or the last up-candle before a bear BOS. The structural reading is that this is where institutional orders that pushed the BOS were filled, so the zone of that candle is now "defended" and likely to act as support / resistance on retest.

Order block events — retest and mitigation
strategy:
  name: ob_retest
  indicators:
    - { id: ob, kind: order_block, swing_period: 5 }
  rules:
    entry_long:  { type: signal, signal: ob.retest_signal, direction: bull }
    exit_long:   { type: signal, signal: ob.mitigated_signal, direction: bull }
  # ob.retest_signal fires when price re-enters a bullish order block zone
  # ob.mitigated_signal fires when price closes through it (zone invalidated)

EQH / EQL and liquidity sweeps

Equal Highs (EQH) and Equal Lows (EQL) are clusters of swing points within an ATR-scaled tolerance — two or more highs within, say, 0.1 × ATR of each other. The structural reading is that resting stop-loss orders accumulate just above EQH (longs' stops) or just below EQL (shorts' stops), and a sweep through those levels — a wick that pierces the cluster and then closes back inside — is the classic stop-hunt reversal signal. EQH/EQL by itself just marks the cluster; pair it with a wick-rejection rule to build the sweep signal.

Premium / discount zones

Premium/discount classifies the trailing range using Fibonacci levels. The 0-50% slice from the recent low is the discount zone (cheap, biased long), the 50-100% slice up to the recent high is the premium zone (expensive, biased short), and the band around the 50% mark is the equilibrium zone. The indicator exposes a categorical state (discount / equilibrium / premium) you can use to gate other entries — "only take long signals while in discount," for example.

Caveat

Provalo con i tuoi dati

Ogni concetto visto sopra è implementato nella piattaforma. Backtest, walk-forward, paper trading, poi passa al live — stesso set di regole in ogni fase.

Letture correlate