OPEN-SOURCE SCRIPT
Combined Market Breadth Table

Overview
Combined Market Breadth Table is an overlay indicator that brings key market breadth data directly onto your chart in a clean, compact visual display. It tracks the percentage of stocks trading above major moving averages across two of the most heavily watched benchmarks: the Nasdaq 100 (NDX) and the S&P 500 (SPX).
Instead of clogging your screen with multiple lower-pane indicators, this script compiles short-term, medium-term, and long-term breadth metrics into a single table anchored to the top-right corner of your chart.
Key Features
Multi-Timeframe Moving Average Tracking: Displays the percentage of stocks trading above their 200-day, 50-day, 20-day, and 5-day moving averages simultaneously.
Dual-Index Comparison: Tracks both the Nasdaq 100 (NDX) and S&P 500 (SPX) side-by-side to easily spot divergence between tech heavyweights and the broader market.
Color-Coded Rows: Each moving average timeframe uses a distinct, color-coded text palette for quick scanning:
🟡 200-Day (Yellow): Macro / long-term structural trend.
🔵 50-Day (Blue): Intermediate trend.
🟢 20-Day (Green): Short-term trend.
🟠 5-Day (Orange): Ultra-short-term / momentum pulse.
Non-Intrusive Design: Renders only on the latest bar inside a dark, framed table box in the top-right corner, leaving your price action uncluttered.
Combined Market Breadth Table is an overlay indicator that brings key market breadth data directly onto your chart in a clean, compact visual display. It tracks the percentage of stocks trading above major moving averages across two of the most heavily watched benchmarks: the Nasdaq 100 (NDX) and the S&P 500 (SPX).
Instead of clogging your screen with multiple lower-pane indicators, this script compiles short-term, medium-term, and long-term breadth metrics into a single table anchored to the top-right corner of your chart.
Key Features
Multi-Timeframe Moving Average Tracking: Displays the percentage of stocks trading above their 200-day, 50-day, 20-day, and 5-day moving averages simultaneously.
Dual-Index Comparison: Tracks both the Nasdaq 100 (NDX) and S&P 500 (SPX) side-by-side to easily spot divergence between tech heavyweights and the broader market.
Color-Coded Rows: Each moving average timeframe uses a distinct, color-coded text palette for quick scanning:
🟡 200-Day (Yellow): Macro / long-term structural trend.
🔵 50-Day (Blue): Intermediate trend.
🟢 20-Day (Green): Short-term trend.
🟠 5-Day (Orange): Ultra-short-term / momentum pulse.
Non-Intrusive Design: Renders only on the latest bar inside a dark, framed table box in the top-right corner, leaving your price action uncluttered.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน