OPEN-SOURCE SCRIPT
Market Sentiment Index US Top 40 [Pt]

▮Overview
Market Sentiment Index US Top 40 [Pt} shows how the largest US stocks behave together. You pick one simple measure—High Low breakouts, Above Below moving average, or RSI overbought/oversold—and see how many of your chosen top 10/20/30/40 NYSE or NASDAQ names are bullish, neutral, or bearish.
This tool gives you a quick view of broad-market strength or weakness so you can time trades, confirm trends, and spot hidden shifts in market sentiment.
▮Key Features
► Three Simple Modes
► Universe Selection
► Timeframe Choice
► Histogram Smoothing
► Ticker Table
▮Inputs
► Mode and Lookback
► Universe Setup
► Moving Averages on Histogram
► Table Options
▮How to Read It
► Sentiment Bars
► Zero Line
► High Low Line (High Low mode only)
► MA Crosses
► Ticker Table
▮Use Cases
► Confirm Market Trends
► Spot Sector Rotation
► Filter Trade Signals
► Combine with Other Indicators
► Timeframe Analysis
Market Sentiment Index US Top 40 [Pt} shows how the largest US stocks behave together. You pick one simple measure—High Low breakouts, Above Below moving average, or RSI overbought/oversold—and see how many of your chosen top 10/20/30/40 NYSE or NASDAQ names are bullish, neutral, or bearish.
This tool gives you a quick view of broad-market strength or weakness so you can time trades, confirm trends, and spot hidden shifts in market sentiment.
▮Key Features
► Three Simple Modes
- High Low Index: counts stocks making new highs or lows over your lookback period
- Above Below MA: flags stocks trading above or below their moving average
- RSI Sentiment: marks overbought or oversold stocks and plots a small histogram
► Universe Selection
- Top 10, 20, 30, or 40 symbols from NYSE or NASDAQ
- Option to weight by market cap or treat all symbols equally
► Timeframe Choice
- Use your chart’s timeframe or any intraday, daily, weekly, or monthly resolution
► Histogram Smoothing
- Two optional moving averages on the sentiment bars
- Markers show when the faster average crosses above or below the slower one
► Ticker Table
- Optional on-chart table showing each ticker’s state in color
- Grid or single-row layout with adjustable text size and color settings
▮Inputs
► Mode and Lookback
- Pick High Low, Above Below MA, or RSI Sentiment
- Set lookback length (for example 10 bars)
- If using Above Below MA, choose the moving average type (EMA, SMA, etc.)
► Universe Setup
- Market: NYSE or NASDAQ
- Number of symbols: 10, 20, 30, or 40
- Weights: on or off
- Timeframe: blank to match chart or pick any other
► Moving Averages on Histogram
- Enable fast and slow averages
- Set their lengths and types
- Choose colors for averages and markers
► Table Options
- Show or hide the symbol table
- Select text size: tiny, small, or normal
- Choose layout: grid or one-row
- Pick colors for bullish, neutral, and bearish cells
- Show or hide exchange prefixes
▮How to Read It
► Sentiment Bars
- Green means bullish
- Red means bearish
- Near zero means neutral
► Zero Line
- Separates bullish from bearish readings
► High Low Line (High Low mode only)
- Smooth ratio of highs versus lows over your lookback
► MA Crosses
- Fast MA above slow MA hints rising breadth
- Fast MA below slow MA hints falling breadth
► Ticker Table
- Each cell colored green, gray, or red for bull, neutral, or bear
▮Use Cases
► Confirm Market Trends
- Early warning when price makes highs but breadth is weak
- Catch rallies when breadth turns strong while price is flat
► Spot Sector Rotation
- Switch between NYSE and NASDAQ to see which group leads
- Watch tech versus industrial breadth to track money flow
► Filter Trade Signals
- Enter longs only when breadth is bullish
- Consider shorts when breadth turns negative
► Combine with Other Indicators
- Use RSI Sentiment with trend tools to spot overextended moves
- Add volume indicators in High Low mode for breakout confirmation
► Timeframe Analysis
- Daily for big-picture bias
- Intraday (15-min) for precise entries and exits
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Purchases / Subscriptions / Support - buymeacoffee.com/ptgambler
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Purchases / Subscriptions / Support - buymeacoffee.com/ptgambler
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
PayPal - paypal.me/PtGambler
You can reach me privately through my Discord Channel: discord.gg/WMQfaVGyQC
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.