Noon Barbari
Registrati

Torna alla libreria di strategie

Mean reversionSolo long5m15m1h

Stochastic %K/%D reversion strategy

Buy a slow stochastic %K cross above %D inside the oversold zone, exit on the mirror.

Tesi

Buy a slow stochastic %K cross above %D inside the oversold zone, exit on the mirror.

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.

Higher trade frequency than RSI mean reversion and louder noise. Fits range-bound regimes; produces fast small wins and small losses. Trend regimes can be expensive — the oscillator stays pinned for many bars.

Set di regole YAML

Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.

name: stochastic_revert
weight: 1.0
long_only: true
indicators:
  stoch: {kind: stochastic, period: 14, smooth_d: 3}
entry:
  combine: AND
  rules:
    - {lhs: {indicator: stoch, field: k}, op: crosses_up, rhs: {indicator: stoch, field: d}}
    - {lhs: {indicator: stoch, field: k}, op: lt, rhs: {value: 30.0}}
exit:
  combine: OR
  rules:
    - {lhs: {indicator: stoch, field: k}, op: crosses_down, rhs: {indicator: stoch, field: d}}
    - {lhs: {indicator: stoch, field: k}, op: gt, rhs: {value: 80.0}}
risk:
  stop_loss_pct: 0.025
  take_profit_pct: 0.04
  cooldown_bars: 4

Indicatori

  • stochSlow Stochastic (period 14, smooth 3)

    Two-line oscillator that compares the current close to the high/low range over the lookback. %K is the raw line; %D is its 3-bar SMA smoother. Crosses inside the 0-20 / 80-100 extremes are read as reversal cues.

Condizioni d'ingresso

Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.

  • %K crosses above %D AND
  • Both lines are inside the oversold zone (%K < 30).

Condizioni di uscita

Una qualsiasi delle condizioni qui sotto chiude la posizione.

  • %K crosses back below %D, OR %K pushes above 80 (overbought).
  • Hard 2.5% stop; 4% take-profit.

Comportamento atteso

Higher trade frequency than RSI mean reversion and louder noise. Fits range-bound regimes; produces fast small wins and small losses. Trend regimes can be expensive — the oscillator stays pinned for many bars.

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.