OPEN-SOURCE SCRIPT

CRR - Smart Money Concept (Pro Expo)

487
Detects Market Structure

Finds pivots using Structure Period.

Marks:

HH (Higher High), LH (Lower High)

HL (Higher Low), LL (Lower Low)

Can draw swing points at highs and lows.

Detects Structure Breaks

When the price breaks the last swing:

BMS (Break of Market Structure) → continuation.

ChoCH (Change of Character) → possible trend reversal.

Differentiates between strong and weak movements using filters.

Confirmation Filters (optional)
If useFilters is enabled, to validate breaks it uses:

ATR → the close must cross the level by at least atrMult * ATR.

Volume → the current volume must be > volMult * average volume.

MACD → in the direction of the break.

Gap → avoids some false breakouts due to gaps.

Internal Fibonacci Retracement of the Last Range

Draws 38.2%, 50%, and 61.8% between the last swing high and swing low.

Serves as internal bounce/discount/premium zones.

Current Range

Draws two dashed yellow lines:

Top: last swing High.

Bottom: last swing Low.

Shows you the range where the price is currently trading.

🧩 In short:
This script draws complete SMC structure (HH/HL/LL/LH + BMS + ChoCH), validates breakouts with ATR, volume, MACD, and gaps, and also displays internal Fibonacci retracement + current range, all automatically and cleanly.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.