OPEN-SOURCE SCRIPT
CRR - Smart Money Concept (Pro Expo)

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.
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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.