OPEN-SOURCE SCRIPT
Smart Money vs Retail Flow

This indicator estimates the balance of power between institutional ("smart money") participants and retail traders by analyzing the relationship between price movement and volume relative to its average.
How it works:
Smart money tends to move markets with purpose — large volume accompanied by decisive price movement. Retail traders often chase price, buying tops and selling bottoms. This indicator attempts to separate these two behaviors by weighting price momentum against normalized volume activity, then applying RSI-based normalization to create two oscillating lines that reflect each group's relative dominance.
The two lines:
Aqua line (Commercials / Smart Money) — rises when significant price movement is backed by above-average volume, suggesting institutional participation
Red line (Retail Traders) — the inverse signal, rising when retail-style flow dominates
Key levels:
Above 70 — dominant zone. When the smart money line crosses above 70, institutions are aggressively entering
Below 30 — exhaustion zone. A crossover back above 30 on the smart money line triggers a buy signal
50 — midline equilibrium between buyers and sellers
Signals:
Green triangle (Smart Money Buy) — smart money line crosses back above 30, suggesting institutional accumulation after a pullback
Red triangle (Retail Trap) — retail line crosses above 70, suggesting retail traders are overextended and a reversal may follow
Background shading:
Green background — smart money in dominant zone
Red background — retail flow in dominant zone, potential exhaustion or trap
Best used with:
Price action context, support/resistance levels, and volume profile. Works on all assets and timeframes. Most effective on liquid markets such as indices (ES, NQ, DAX), major forex pairs, and high-volume crypto pairs.
Settings:
Momentum Length — RSI normalization period (default 14)
Volume Length — baseline volume average period (default 20)
Smoothing — EMA smoothing applied to raw flow signal (default 5)
Note: This indicator does not use actual order book or Level 2 data. Smart money flow is estimated using price-volume weighting relative to average volume. Use in confluence with other analysis for best results.
How it works:
Smart money tends to move markets with purpose — large volume accompanied by decisive price movement. Retail traders often chase price, buying tops and selling bottoms. This indicator attempts to separate these two behaviors by weighting price momentum against normalized volume activity, then applying RSI-based normalization to create two oscillating lines that reflect each group's relative dominance.
The two lines:
Aqua line (Commercials / Smart Money) — rises when significant price movement is backed by above-average volume, suggesting institutional participation
Red line (Retail Traders) — the inverse signal, rising when retail-style flow dominates
Key levels:
Above 70 — dominant zone. When the smart money line crosses above 70, institutions are aggressively entering
Below 30 — exhaustion zone. A crossover back above 30 on the smart money line triggers a buy signal
50 — midline equilibrium between buyers and sellers
Signals:
Green triangle (Smart Money Buy) — smart money line crosses back above 30, suggesting institutional accumulation after a pullback
Red triangle (Retail Trap) — retail line crosses above 70, suggesting retail traders are overextended and a reversal may follow
Background shading:
Green background — smart money in dominant zone
Red background — retail flow in dominant zone, potential exhaustion or trap
Best used with:
Price action context, support/resistance levels, and volume profile. Works on all assets and timeframes. Most effective on liquid markets such as indices (ES, NQ, DAX), major forex pairs, and high-volume crypto pairs.
Settings:
Momentum Length — RSI normalization period (default 14)
Volume Length — baseline volume average period (default 20)
Smoothing — EMA smoothing applied to raw flow signal (default 5)
Note: This indicator does not use actual order book or Level 2 data. Smart money flow is estimated using price-volume weighting relative to average volume. Use in confluence with other analysis for best results.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.