Noon Barbari
Registrarse

Volver a la biblioteca de estrategias

Seguimiento de tendenciaLargos y cortos15m1h4h1d

OB retest with structure filter strategy

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

Tesis

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

Encaja con los setups de Seguimiento de tendencia — funciona mejor cuando el comportamiento del mercado coincide con la tesis, y falla cuando no. Combínala con el modo walk-forward del backtester antes de comprometer capital real.

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.

Conjunto de reglas YAML

Pégalo en la pestaña «Text» del Strategy Designer, o usa el botón del panel de arriba para cargarlo como plantilla.

_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

Indicadores

  • 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.

Condiciones de entrada

El bot abre una posición en la vela siguiente al cumplimiento de todas las condiciones de abajo.

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

Condiciones de salida

Cualquiera de las condiciones siguientes cierra la posición.

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

Comportamiento esperado

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.

Es el carácter de la curva de equity, no una previsión de retorno. Los backtests no son promesas sobre el desempeño en vivo.

Pruébala con tus datos

Abre la plantilla en el panel para hacer backtest sobre BTC, ETH o cualquier símbolo CCXT — o copia el YAML en el Strategy Designer para editarlo primero.

El comportamiento pasado en backtests no garantiza el desempeño futuro. Los mercados cambian; los conjuntos de reglas necesitan revalidarse. Operas bajo tu propio riesgo.