Tesi
Catch the first bar of a Change-of-Character — early reversal signal off swing structure.
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.
Patient — CHoCH signals are sparse by design. The strategy sits flat for long stretches and then catches the early bar of a regime change.
Set di regole YAML
Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.
_template:
title: Market Structure — BOS / CHoCH trend follow
category: trend_following
skill: intermediate
name: market_structure
weight: 1.0
long_only: false
indicators:
ms:
kind: market_structure
swing_length: 50
entry:
combine: OR
rules:
- combine: AND
direction: long
rules:
- {lhs: {indicator: ms, field: choch_signal}, op: gt, rhs: {value: 0}}
- combine: AND
direction: short
rules:
- {lhs: {indicator: ms, field: choch_signal}, op: lt, rhs: {value: 0}}
exit:
combine: OR
rules:
- {lhs: {indicator: ms, field: choch_signal}, op: gt, rhs: {value: 0}}
- {lhs: {indicator: ms, field: choch_signal}, op: lt, rhs: {value: 0}}
risk:
trailing_stop_pct: 0.04
cooldown_bars: 5
Indicatori
msMarket Structure (swing length 50)Clean-room SMC tool that tracks swing pivots and emits Break-of-Structure (BOS) plus Change-of-Character (CHoCH) signals as the regime flips. The choch_signal field is +1 on bullish CHoCH, -1 on bearish.
Condizioni d'ingresso
Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.
- Long on bullish CHoCH — the first sign of an up-regime.
- Short on bearish CHoCH.
Condizioni di uscita
Una qualsiasi delle condizioni qui sotto chiude la posizione.
- An opposite-direction CHoCH closes the position.
- 4% trailing stop, 5-bar cooldown.
Comportamento atteso
Patient — CHoCH signals are sparse by design. The strategy sits flat for long stretches and then catches the early bar of a regime change.
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.