Pine Script v5 · TradingView · 1H

Stop Guessing.
Trade Structure.

A professional market structure indicator that identifies trend, labels every HH / HL / LH / LL, draws support&resistance zones, and alerts you the moment a break-and-retest setup is confirmed — complete with entry, stop loss, and 1:2 take profit.

Get Access — €97 One-time payment. Lifetime access.
XAUUSD · 1H · TradingView ● BEARISH
XAUUSD 1H market structure indicator — bearish setup

Everything you need, nothing you don't.

Built for traders who want structure-based setups, not noise.

📊

Automatic Trend Engine

Detects bullish and bearish market structure using confirmed swing highs and lows — reinforced by an optional 50 EMA filter.

🏷️

HH / HL / LH / LL Labels

Every meaningful structural pivot is classified and labelled directly on chart. No repaint. Confirmed pivots only.

📦

ATR-Based S/R Zones

Support and resistance are drawn as zones, not single lines. Zone width adapts to current volatility via ATR.

Break Detection

A valid breakout requires a candle close beyond the zone — wicks don't count. Configurable ATR threshold.

🎯

Retest Confirmation

After a break, the indicator watches for price to return to the zone and print a rejection candle before signalling.

📐

Exact 1:2 Risk-Reward

Entry, stop loss, and take profit levels are calculated automatically. Stop is placed beyond the most recent structural swing.

🗓️

Day & Session Filter

Signals only fire during your preferred trading window. Default: Tuesday–Friday, New York session.

🔔

Full Alert Set

Alerts for every stage: breakout, retest, retest confirmation, long entry, short entry.

How a setup forms

The indicator follows a strict 5-step lifecycle — no shortcuts.

01

Trend Identified

Structural HH+HL (bull) or LH+LL (bear) sequence confirmed. EMA slope agrees.

02

Zone Marked

The most recent meaningful swing high (resistance) or swing low (support) is drawn as an ATR-buffered zone.

03

Breakout Detected

Price closes beyond the zone boundary by at least the configured ATR threshold. A BRK label appears.

04

Retest & Rejection

Price returns into the broken zone. A rejection candle must print before the setup is confirmed.

05

Entry Confirmed

Day and session filters pass. Entry, SL (beyond last structural swing), and TP (1:2 RR) are plotted.

What's included

Simple pricing

One price. No subscriptions. No upsells.

1H Market Structure Indicator
€97 one-time
  • Lifetime TradingView access
  • All future updates
  • Works on any market (forex, crypto, stocks, futures)
  • Best on 1H — warns you if on wrong timeframe

We use this to grant you access on TradingView after payment. To find it: open TradingView, click your avatar in the top-left corner, and your username appears at the top of the menu.

🔒 Secure checkout via Stripe · Card, Apple Pay, Google Pay accepted

If the indicator does not work as described, contact us within 7 days for a full refund — no questions asked.

Frequently asked questions

What markets and timeframes does this work on?

The logic is designed and optimised for the 1-hour chart. It works on any liquid market — forex majors, crypto, indices, futures. A warning appears if you load it on a different timeframe.

How do I get access after purchasing?

You'll receive a confirmation email. We manually add your TradingView username to the invite-only script within a few hours. You'll then find it under "Invite-only scripts" in your TradingView account.

Does it repaint?

No. All structure labels and signals are based on confirmed pivots — ta.pivothigh() and ta.pivotlow() with right-bar confirmation. A pivot is only labelled after the required number of bars to its right have closed.

Can I use it on lower timeframes?

Technically yes, but it is tuned for 1H structure. Lower timeframes generate more noise and the filters are calibrated for hourly candles. A warning banner will appear when loaded on other timeframes.

Is this a strategy (auto-trading) or an indicator?

It is a Pine Script indicator(), not a strategy(). It displays visual signals and fires alerts — you execute trades manually based on those signals.