Thèse
Fade a 2-sigma stretch below the mean and exit when price tags the middle band.
Adapté aux setups de Mean reversion — fonctionne mieux quand le comportement du marché correspond à la thèse, et déraille quand non. À combiner avec le mode walk-forward du backtester avant d'engager du capital réel.
Smooth equity curve in low-volatility regimes with frequent small wins. Sharp drawdowns when a trend extends and price stays pinned below the lower band — the strategy expects mean reversion that may not arrive.
Jeu de règles YAML
Colle-le dans l'onglet « Text » du Strategy Designer, ou utilise le bouton dashboard ci-dessus pour le charger comme modèle.
name: bollinger_revert
weight: 1.0
long_only: true
indicators:
bb20: {kind: bollinger, period: 20, std_mult: 2.0}
entry:
combine: AND
rules:
- {lhs: {bar: close}, op: lt, rhs: {indicator: bb20, field: lower}}
exit:
combine: OR
rules:
- {lhs: {bar: close}, op: gt, rhs: {indicator: bb20, field: mid}}
risk:
stop_loss_pct: 0.03
trailing_stop_pct: 0.02
cooldown_bars: 3
Indicateurs
bb20Bollinger Bands (period 20, σ × 2)20-bar SMA with ±2σ bands. The mid line is the 20-bar mean; the lower band is the 2-standard-deviation oversold envelope.
Conditions d'entrée
Le bot ouvre une position à la bougie suivant le déclenchement de toutes les conditions ci-dessous.
- Enter long when close is below the lower Bollinger band — a 2σ stretch below the 20-bar mean.
- Single position; 3-bar cooldown after exit.
Conditions de sortie
N'importe laquelle des conditions ci-dessous ferme la position.
- Exit when close pushes back above the middle band.
- Hard 3% stop-loss; 2% trailing stop locks in any reversion gain.
Comportement attendu
Smooth equity curve in low-volatility regimes with frequent small wins. Sharp drawdowns when a trend extends and price stays pinned below the lower band — the strategy expects mean reversion that may not arrive.
C'est le caractère de la courbe d'equity, pas une prévision de rendement. Les backtests ne sont pas des promesses sur la performance en direct.
Essaie-la sur tes propres données
Ouvre le modèle dans le dashboard pour le tester sur BTC, ETH ou n'importe quel symbole CCXT — ou copie le YAML dans le Strategy Designer pour le modifier d'abord.
Le comportement passé en backtest ne garantit pas la performance future. Les marchés évoluent ; les jeux de règles doivent être revalidés. Tu trades à tes risques.