All Indicators
FREE

Swing Detection Engine

The foundation of everything. Non-repainting swing detection with HH/HL/LH/LL classification, BOS, and CHoCH.

Add to TradingView
Get Free Access
Works on TradingView
Get Access
Overview

What It Does

Every serious price action strategy starts with one question: where are the swing highs and swing lows? Everything else — trend direction, structure breaks, reversal signals, entry zones — is derived from swings. If your swing detection is wrong, everything built on top of it is wrong. That's why we built the Swing Detection Engine to be bulletproof.

This indicator identifies swing highs and swing lows using a confirmed lookback method that waits for price to prove a swing is real before labeling it. No guessing, no projecting, no repainting. Once a swing high is marked, it's marked forever. From these confirmed swings, the engine automatically classifies the structure: Higher Highs, Higher Lows, Lower Highs, Lower Lows. You can read the trend state at a glance.

On top of classification, the engine detects two critical structural events: BOS (Break of Structure) when price continues the trend by breaking the last swing in its direction, and CHoCH (Change of Character) when price breaks against the trend, signaling a potential reversal. These two events are the foundation of institutional trading methodology. This is the tool that every other TheTraderShark indicator is built on.

Features

Key Features

Swing High/Low Detection

Identifies swing highs and lows using a confirmed lookback period. A swing is only marked when enough subsequent bars prove that the high or low is real. No premature labels, no repainting, no false swings.

HH/HL/LH/LL Classification

Every confirmed swing is automatically classified as a Higher High, Higher Low, Lower High, or Lower Low relative to the previous swing of the same type. This classification IS the trend — HH/HL means bullish, LH/LL means bearish. Simple and powerful.

Break of Structure (BOS)

BOS events are detected when price breaks past a previous swing point in the direction of the existing trend. This confirms that the trend is continuing. BOS labels appear on the chart exactly where the break occurred.

Change of Character (CHoCH)

CHoCH events are the most important signal the engine produces. When price breaks a swing point against the prevailing trend, it signals that the character of the market may be changing. This is your early warning for reversals.

Trend Direction Tracking

The engine maintains a real-time trend state based on swing classification. You always know whether the current structure is bullish, bearish, or transitioning. This trend state feeds into every other component when used in the Suite.

Non-Repainting Confirmed Signals

Every swing, classification, BOS, and CHoCH is confirmed on bar close. The indicator will never change a past signal, move a label, or recalculate history. Your backtesting is valid. Your trust in the signals is earned.

How to Use

Get Started in 4 Steps

01

Add to Your Chart

Search for 'Swing Detection Engine TheTraderShark' on TradingView and add it. The default Swing Length of 10 works well for most timeframes. You'll immediately see swing labels and structure classifications.

02

Read the Structure

Look at the swing labels: HH and HL mean the market is bullish. LH and LL mean it's bearish. When you see a sequence like HH, HL, HH, HL — you're in a clean uptrend. When it shifts to LH, LL — the bears are taking over.

03

Watch for CHoCH Events

A CHoCH label is your early warning for a trend reversal. When you see one, the current trend structure has been broken for the first time. This doesn't guarantee a reversal, but it tells you to pay close attention.

04

Use BOS for Continuation Trades

BOS labels confirm that the trend is still active. In an uptrend, each new BOS means bulls just broke another high. Pull back to the last HL after a BOS for a textbook continuation entry.

Customization

Settings & Configuration

Swing Length10

Number of bars on each side of a candle required to confirm it as a swing high or low. The core sensitivity control for the entire engine.

Show Swing Labelstrue

Display HH/HL/LH/LL labels at each confirmed swing point. Disable if you only want BOS/CHoCH events.

Show BOStrue

Display Break of Structure labels when price breaks a swing in the direction of the trend.

Show CHoCHtrue

Display Change of Character labels when price breaks structure against the prevailing trend.

Label SizeNormal

Size of the on-chart labels: Tiny, Small, Normal, or Large. Adjust based on your chart zoom level and screen size.

Bullish Color#00C853

Color for bullish swing labels (HH, HL) and bullish BOS events.

Bearish Color#CC2936

Color for bearish swing labels (LH, LL) and bearish CHoCH events.

Non-Repainting Verified

Once a signal prints on the chart, it stays. No redrawing, no lookback bias, no false history. Every signal you see is exactly what you would have seen in real-time.

FAQ

Frequently Asked Questions

No. This is non-negotiable. Every swing is confirmed using a lookback period that waits for enough subsequent bars to validate the swing. Once a label is placed, it stays. BOS and CHoCH events are confirmed on bar close. No repainting, ever.

Ready to Try Swing Detection Engine?

Add it to your TradingView charts and see the difference instantly.