INVITE-ONLY SCRIPT

Multi-Timeframe Analysis Table with SMA Cross

114
This script creates a multi-timeframe analysis tool for technical trading in TradingView. It displays a comprehensive table that helps traders analyze price action across different timeframes simultaneously.
Core Functionality
The script generates a table with five columns:

Label column: Shows indicator names and section titles
Current timeframe: Analysis for the chart's current timeframe
Higher timeframe 1: Analysis for first higher timeframe (default: 60min)
Higher timeframe 2: Analysis for second higher timeframe (default: 4h)
Higher timeframe 3: Analysis for third higher timeframe (default: Daily)

Key Components
Technical Indicators
The table displays values for four technical indicators across all timeframes:

RSI (Relative Strength Index): Measures momentum and identifies overbought/oversold conditions
MACD (Moving Average Convergence Divergence): Trend-following momentum indicator
VMC (Volatility-based Mean Reversion): Custom oscillator for mean reversion signals
TRIX: Triple exponential average indicator showing percent rate-of-change

Trading Recommendations
The script calculates trading recommendations by:

Checking if SMA1 (fast) is above/below SMA2 (slow) to determine trend direction
Calculating an indicator score based on RSI, MACD, VMC, and TRIX values
Combining trend confirmation with indicator score to generate recommendations:

BUY: Bullish trend with positive indicator score
SELL: Bearish trend with negative indicator score
WAIT: Positive indicator score but no bullish confirmation
NEUTRAL: No clear signal



Support/Resistance Levels
The script identifies key support and resistance levels for each timeframe using a pivot-based algorithm that:

Finds significant price pivots within a lookback period
Groups nearby pivots into channels/zones
Displays the most significant S/R level for each timeframe

Trend Confirmation
The final row shows the overall trend direction based on SMA crossovers:

Bullish: When the faster SMA is above the slower SMA
Bearish: When the faster SMA is below the slower SMA
Unstable: When there's no clear direction

User Customization
The script offers extensive customization options:

Toggle which timeframes to display
Adjust SMA periods for each timeframe
Set threshold levels for all indicators
Customize support/resistance detection parameters
Change the table's position, colors, opacity, and border settings

Practical Use
Traders can use this table to:

Identify alignment across multiple timeframes (stronger signals when all timeframes agree)
Spot divergences between timeframes (potential trend changes)
Make more informed trading decisions with comprehensive technical analysis in a single view
Find key support/resistance levels relevant to different trading horizons

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.