Noon Barbari
Registrati

Torna alla libreria di strategie

Trend followingLong e short15m1h4h1d

OB retest with structure filter strategy

Fine-grained order-block retest, gated by a slower market-structure regime.

Tesi

Fine-grained order-block retest, gated by a slower market-structure regime.

Si adatta ai setup Trend following — 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.

Stricter than the bare Order Block strategy — the regime filter throws out counter-trend OBs. Fewer trades but cleaner ones; long flat stretches when fine and coarse SMC disagree.

Set di regole YAML

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

_template:
  title: Order Block retest with structure filter
  category: trend_following
  skill: intermediate
name: order_block_retest_with_filter
weight: 1.0
long_only: false
indicators:
  ob:
    kind: order_block
    swing_length: 10
  ms:
    kind: market_structure
    swing_length: 30
entry:
  combine: OR
  rules:
    - combine: AND
      direction: long
      rules:
        - {lhs: {indicator: ob, field: bull_retest}, op: gt, rhs: {value: 0}}
        - {lhs: {indicator: ms, field: state}, op: eq, rhs: {value: 1}}
    - combine: AND
      direction: short
      rules:
        - {lhs: {indicator: ob, field: bear_retest}, op: gt, rhs: {value: 0}}
        - {lhs: {indicator: ms, field: state}, op: eq, rhs: {value: -1}}
exit:
  combine: OR
  rules:
    - {lhs: {indicator: ob, field: bull_mitigated}, op: gt, rhs: {value: 0}}
    - {lhs: {indicator: ob, field: bear_mitigated}, op: gt, rhs: {value: 0}}
risk:
  trailing_stop_pct: 0.04
  cooldown_bars: 3

Indicatori

  • obOrder Block (swing 10)

    Fine-grained order-block detector that emits bull/bear retest signals as price re-enters the last opposite candle before each BOS.

  • msMarket Structure (swing 30)

    Slower swing tracker that exposes the prevailing regime via state. Acts as the higher-timeframe filter — only OB retests that agree with the regime are taken.

Condizioni d'ingresso

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

  • Long on a bullish OB retest while market-structure state is +1.
  • Short on a bearish OB retest while state is -1.

Condizioni di uscita

Una qualsiasi delle condizioni qui sotto chiude la posizione.

  • OB mitigation closes the trade — the SMC thesis is invalidated.
  • 4% trailing stop, 3-bar cooldown.

Comportamento atteso

Stricter than the bare Order Block strategy — the regime filter throws out counter-trend OBs. Fewer trades but cleaner ones; long flat stretches when fine and coarse SMC disagree.

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.