Tesi
Market Structure says which way, the first Fair Value Gap in that direction says go now.
Si adatta ai setup Mean reversion — funziona meglio quando il comportamento del mercato sottostante combacia con la tesi, e si rompe quando no. Abbinala alla modalità walk-forward del backtester prima di impegnare capitale reale.
Picky — both legs must agree. Long flat stretches followed by clusters of trades when a regime turns and FVGs print along the way. Stacks well in directional markets, sits out balanced ranges.
Set di regole YAML
Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.
_template:
title: SMC CHoCH regime + FVG entry
category: mean_reversion
skill: intermediate
name: smc_choch_fvg
weight: 1.0
long_only: false
indicators:
ms:
kind: market_structure
swing_length: 20
fvg:
kind: fair_value_gap
min_gap_pct: 0.001
entry:
combine: OR
rules:
- combine: AND
direction: long
rules:
- {lhs: {indicator: fvg, field: bull_signal}, op: gt, rhs: {value: 0}}
- {lhs: {indicator: ms, field: state}, op: eq, rhs: {value: 1}}
- combine: AND
direction: short
rules:
- {lhs: {indicator: fvg, field: bear_signal}, op: gt, rhs: {value: 0}}
- {lhs: {indicator: ms, field: state}, op: eq, rhs: {value: -1}}
exit:
combine: OR
rules:
- {lhs: {indicator: ms, field: state}, op: crosses_up, rhs: {value: 0}}
- {lhs: {indicator: ms, field: state}, op: crosses_down, rhs: {value: 0}}
risk:
trailing_stop_pct: 0.05
cooldown_bars: 5
Indicatori
msMarket Structure (swing 20)BOS/CHoCH tracker that exposes the prevailing regime as state = +1 / -1.
fvgFair Value Gap (min gap 0.1%)Imbalance detector providing the entry trigger. Only the first FVG in the active regime is taken — the strategy waits for direction-agreement before pulling the trigger.
Condizioni d'ingresso
Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.
- Long on a bullish FVG while market structure is in a +1 (bullish) regime.
- Short on a bearish FVG while market structure is in a -1 (bearish) regime.
Condizioni di uscita
Una qualsiasi delle condizioni qui sotto chiude la posizione.
- Regime flip through zero in either direction closes the trade.
- 5% trailing stop, 5-bar cooldown.
Comportamento atteso
Picky — both legs must agree. Long flat stretches followed by clusters of trades when a regime turns and FVGs print along the way. Stacks well in directional markets, sits out balanced ranges.
Carattere della curva di equity, non una previsione di rendimento. I backtest non sono promesse sulla performance live.
Provala con i tuoi dati
Apri il template nella dashboard per fare backtest su BTC, ETH o qualsiasi simbolo CCXT — oppure copia il YAML nel Strategy Designer per modificarlo prima.
Il comportamento passato nei backtest non garantisce la performance futura. I mercati cambiano; i set di regole vanno rivalidati. Si fa trading a proprio rischio.