Noon Barbari
Sign up

Back to all indicators

s_trendStructure indicator

Structural Trend

Structural trend state — +1 up, −1 down, 0 neutral, from confirmed swing breaks.

What it is

Structural trend state — +1 up, −1 down, 0 neutral, from confirmed swing breaks.

Structural Trend is a regime filter built on swing pivots rather than smoothed price. It tracks the most recent swing highs and lows and counts directional breakouts: when price breaks above swing highs it accrues up-side evidence, when it breaks below swing lows it accrues down-side evidence. The state only flips to +1 (up) or −1 (down) after two confirmed same-side breaks, and sits at 0 (neutral) until a regime is established.

Requiring two breaks is the whole point: a single break is often a liquidity grab that immediately reverses. By waiting for a second confirmation, Structural Trend ignores most one-bar fakeouts at the cost of confirming a turn slightly later. It is closely related to the Smart-Money idea of a Break of Structure (BOS).

Used as a filter, it is simple to read in a rule: allow longs only while the state is +1, allow shorts only while it is −1, and stand aside at 0.

Read the full Structural Trend definition in the glossary →

Live chart

TradingView has no built-in study for this indicator, so there's no live chart to embed here. It's a structure / smart-money tool — the best way to see it is to run it inside a strategy and backtest it.

Parameters

ParameterDefaultRange
Swing lookback21 – 50

Output fields

The named values this indicator exposes to your entry and exit rules.

state

Backtest this indicator

Drop this indicator into a rule-set, run it over years of BTC/USDT data, and see whether the edge is real or just curve-fit — no credit card required.