Tesi
Buy the imbalance bar of a fresh bullish FVG; short the mirror. Exit when the gap fills.
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.
Momentum-into-imbalance — fires on explosive bars, exits when the imbalance reverts. Equity curve is choppy with frequent small trades; works best when price respects imbalances and gives the bot a chance to ride the displacement.
Set di regole YAML
Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.
_template:
title: Fair Value Gap — buy unfilled bullish FVG
category: mean_reversion
skill: intermediate
name: fair_value_gap
weight: 1.0
long_only: false
indicators:
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}}
- combine: AND
direction: short
rules:
- {lhs: {indicator: fvg, field: bear_signal}, op: gt, rhs: {value: 0}}
exit:
combine: OR
rules:
- {lhs: {indicator: fvg, field: bull_filled}, op: gt, rhs: {value: 0}}
- {lhs: {indicator: fvg, field: bear_filled}, op: gt, rhs: {value: 0}}
risk:
trailing_stop_pct: 0.04
cooldown_bars: 3
Indicatori
fvgFair Value Gap (min gap 0.1%)Clean-room 3-bar Fair Value Gap / imbalance detector. bull_signal / bear_signal fire on the bar a new gap opens; bull_filled / bear_filled fire when price retraces back through the gap.
Condizioni d'ingresso
Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.
- Long on the bar a bullish FVG opens (bull_signal > 0).
- Short on a bearish FVG.
Condizioni di uscita
Una qualsiasi delle condizioni qui sotto chiude la posizione.
- Position closes the bar the gap is filled (rebalanced).
- 4% trailing stop, 3-bar cooldown.
Comportamento atteso
Momentum-into-imbalance — fires on explosive bars, exits when the imbalance reverts. Equity curve is choppy with frequent small trades; works best when price respects imbalances and gives the bot a chance to ride the displacement.
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.