OPEN-SOURCE SCRIPT

SMC Order Block Scorer [Volume Confluence]

721
SMC Order Block Scorer [Volume Confluence]

Finds smart money order blocks and ranks them by volume-profile confluence, so you can see which zones are more likely to hold.

What it does
*Draws market structure (BOS and CHoCH) from major swing pivots
*Creates an order block on every swing break
*Builds a volume profile and marks the POC, Value Area (VAH/VAL) and HVNs
*Scores every order block from 0 to 100 and grades it A+, A, B or C
*Removes order blocks once price revisits them (mitigation)

How it works
*Structure: A close beyond the last swing high or low is a break. A break in the trend direction is a BOS. A break against it is a CHoCH. A CHoCH on a volume spike is tagged "CHoCH Vol".
*Order block: The last opposite candle before the break becomes the zone. It is the last down candle before a bullish break, or the last up candle before a bearish one.
*Volume profile: Volume is spread across price rows over a lookback window.
POC: the row with the most volume.
Value Area: the range holding about 70% of volume.
HVN: a local volume peak well above the average row.

Score: An order block earns more points when it has:
*the POC inside it (biggest credit)
*Value Area overlap
*an HVN inside it (extra credit)
*a large share of the profile's volume
*a strong impulse move and high volume on the break
*a BOS in the trend direction (worth more than a CHoCH)

How to read the chart
*Green boxes: bullish (demand) order blocks
*Red boxes: bearish (supply) order blocks
*Label: direction, grade and score, for example ▲ A+ 84%, with the volume features it touches (POC · VA · HVN) underneath
★ and thicker border: the highest-scoring active order block
*Stronger fill: a higher grade
*Dotted line: the 50% level of the zone
*Histogram on the right: the volume profile, with the POC in red, Value Area in blue and HVNs in gold
*Table: the current swing trend, the top 3 order blocks and the count of active ones

How to use it
*Look for order blocks graded A or A+ that also have POC or HVN in the label.
*Trade in the direction of the swing trend. A bullish block in a bullish trend is a stronger setup than a counter-trend one.
*Wait for price to come back to the zone and confirm on a lower timeframe before entering.
*Use the 50% line as a reference for entries.
*Use the far side of the block as a stop reference.
*If the chart looks busy, raise "Hide OBs below score" to 50 or higher.
Key settings
*Swing Lookback: the default of 50 gives fewer, larger zones. Use 10–20 for more zones on lower timeframes.
*Mitigation trigger:
*Touch: removed when price revisits the zone.
*50%: removed when price reaches the middle of the zone.
*Wick: removed when a wick trades through the far side.
*Close: removed when a candle closes beyond the far side.
*Keep mitigated OBs: shows used zones as faded boxes instead of deleting them.
*Scoring weights: change how much the POC, Value Area and HVN count.
*Market structure toggle: turns BOS and CHoCH drawing on or off. Order blocks still work with it off.

Alerts
*Bullish and bearish BOS
*Bullish and bearish CHoCH, with or without a volume spike
*New bullish or bearish order block
*Order block mitigated

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.