OPEN-SOURCE SCRIPT
Market X-Ray Dashboard: Trend, Momentum & Volume [THF]

This script is designed to solve a common problem for traders: "Analysis Paralysis." Instead of cluttering the chart with multiple oscillators and indicators, the Market X-Ray Dashboard aggregates key market data into a clean, scannable table. It provides a real-time confluence check by combining Trend, Momentum, and Volume analysis.
How it Works (The Logic)
The dashboard monitors four distinct technical factors and assigns a status based on specific thresholds. Here is the mathematical breakdown of the components:
1. RSI (Relative Strength Index)
Period: 14 (Default)
Logic: Measures the speed and change of price movements.
Overbought (>70): High probability of reversal (Bearish).
Bullish Zone (<45): Indicates potential upside room.
Oversold (<30): Strong potential for a bounce.
2. MACD (Moving Average Convergence Divergence)
Settings: 12, 26, 9
Logic: Used for trend following.
Buy Signal: MACD Line crosses above Signal Line + Histogram is increasing.
Sell Signal: MACD Line crosses below Signal Line + Histogram is decreasing.
3. Stochastic RSI
Settings: 14, 14, 3, 3
Logic: A more sensitive momentum indicator to catch short-term pivots.
Uses smoothed K and D lines to filter out noise.
Identifies "Strong Buy" zones when the oscillator is below 20 and "Strong Sell" when above 80.
4. Volume Analysis (New Feature)
Logic: Volume is the fuel of the market. This component compares the current volume bar against a 20-period Simple Moving Average (SMA).
High Vol Alert: If the current volume exceeds the average by 1.5x (customizable), it triggers a "High Vol 🔥" alert.
Color Coding: The volume cell adapts to the candle color. High volume on a green candle suggests strong buying pressure, while high volume on a red candle suggests strong selling pressure.
The "Overall" Confluence Algorithm
The final row provides an algorithmic summary based on the confluence of the above indicators:
Uptrend 🚀: Triggered when at least 2 out of 3 momentum indicators (RSI, MACD, Stoch) align on a Buy signal.
Downtrend 🔻: Triggered when at least 2 out of 3 indicators align on a Sell signal.
Neutral/Ranging: When signals are conflicting (e.g., RSI is overbought but MACD is bullish).
Features & Settings
Fully Customizable Colors: Users can change the colors for Strong Buy, Buy, Neutral, Sell, and Strong Sell to fit their chart theme (Dark/Light mode).
Adjustable Thresholds: All lengths (RSI, MACD, Volume SMA) are adjustable in the settings menu.
Volume Multiplier: Users can define what constitutes "High Volume" (default is 1.5x the average).
How to Use This Tool
This dashboard should be used as a confirmation tool.
Trend Confirmation: Do not trade blindly. If the "Overall" status says "Uptrend," look for price action setups (like support bounces) to go long.
Volume Validation: Use the Volume row to validate breakouts. A breakout with "Low Vol" is likely a fake-out.
Divergence Spotting: If the price is making a new high but the Dashboard shows RSI entering "Strong Sell," be cautious of a reversal.
Disclaimer:
This tool is for informational purposes only and does not guarantee profits. Technical analysis works best when combined with risk management and fundamental analysis.
How it Works (The Logic)
The dashboard monitors four distinct technical factors and assigns a status based on specific thresholds. Here is the mathematical breakdown of the components:
1. RSI (Relative Strength Index)
Period: 14 (Default)
Logic: Measures the speed and change of price movements.
Overbought (>70): High probability of reversal (Bearish).
Bullish Zone (<45): Indicates potential upside room.
Oversold (<30): Strong potential for a bounce.
2. MACD (Moving Average Convergence Divergence)
Settings: 12, 26, 9
Logic: Used for trend following.
Buy Signal: MACD Line crosses above Signal Line + Histogram is increasing.
Sell Signal: MACD Line crosses below Signal Line + Histogram is decreasing.
3. Stochastic RSI
Settings: 14, 14, 3, 3
Logic: A more sensitive momentum indicator to catch short-term pivots.
Uses smoothed K and D lines to filter out noise.
Identifies "Strong Buy" zones when the oscillator is below 20 and "Strong Sell" when above 80.
4. Volume Analysis (New Feature)
Logic: Volume is the fuel of the market. This component compares the current volume bar against a 20-period Simple Moving Average (SMA).
High Vol Alert: If the current volume exceeds the average by 1.5x (customizable), it triggers a "High Vol 🔥" alert.
Color Coding: The volume cell adapts to the candle color. High volume on a green candle suggests strong buying pressure, while high volume on a red candle suggests strong selling pressure.
The "Overall" Confluence Algorithm
The final row provides an algorithmic summary based on the confluence of the above indicators:
Uptrend 🚀: Triggered when at least 2 out of 3 momentum indicators (RSI, MACD, Stoch) align on a Buy signal.
Downtrend 🔻: Triggered when at least 2 out of 3 indicators align on a Sell signal.
Neutral/Ranging: When signals are conflicting (e.g., RSI is overbought but MACD is bullish).
Features & Settings
Fully Customizable Colors: Users can change the colors for Strong Buy, Buy, Neutral, Sell, and Strong Sell to fit their chart theme (Dark/Light mode).
Adjustable Thresholds: All lengths (RSI, MACD, Volume SMA) are adjustable in the settings menu.
Volume Multiplier: Users can define what constitutes "High Volume" (default is 1.5x the average).
How to Use This Tool
This dashboard should be used as a confirmation tool.
Trend Confirmation: Do not trade blindly. If the "Overall" status says "Uptrend," look for price action setups (like support bounces) to go long.
Volume Validation: Use the Volume row to validate breakouts. A breakout with "Low Vol" is likely a fake-out.
Divergence Spotting: If the price is making a new high but the Dashboard shows RSI entering "Strong Sell," be cautious of a reversal.
Disclaimer:
This tool is for informational purposes only and does not guarantee profits. Technical analysis works best when combined with risk management and fundamental analysis.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。