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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。