OPEN-SOURCE SCRIPT
Cập nhật Market Quality Score Pro

Market Quality Score Pro is a multi-factor scoring indicator that helps you evaluate stocks, ETFs, indices, bonds, crypto, forex, and commodities with one unified framework. It combines relative strength, trend quality, and (where available) fundamental quality into a normalized score from 0.00 to 1.00, then translates that score into practical signal zones such as Watch, Buy, Strong Buy, or Avoid.
The indicator is designed to adapt to different instrument types automatically. For stocks, it can include earnings growth, revenue growth, and return on equity, while for ETFs, indices, bonds, and many other instruments it focuses more on relative strength, benchmark comparison, trend structure, and data quality.
Key features:
How to read it:
This script is not a standalone trading system and should not be used in isolation. Signals are strongest when read together with price structure, liquidity, market regime, and upcoming event risk such as earnings releases
The indicator is designed to adapt to different instrument types automatically. For stocks, it can include earnings growth, revenue growth, and return on equity, while for ETFs, indices, bonds, and many other instruments it focuses more on relative strength, benchmark comparison, trend structure, and data quality.
Key features:
- Multi-factor total score from 0.00 to 1.00.
- Relative strength model based on 12-month ex-last-month, 6-month, 3-month, distance to 52-week high, and RS-line slope.
- Trend quality model based on SMA200, 50/200 structure, and drawdown control.
- Fundamental quality block for equities using EPS growth, revenue growth, and ROE where valid data exists.
- Automatic benchmark selection by market and region, with optional manual override.
- Coverage and confidence logic to reduce overconfidence when data is incomplete.
- Safety filter for trend condition, drawdown quality, and tradability.
- Signal markers for Buy, Strong Buy, Exit, and Divergence.
- Informative table with benchmark, market regime, history quality, score components, and model status.
How to read it:
- Above 0.50: instrument becomes interesting.
- Above 0.65: enters the buy zone if additional gates and filters are satisfied.
- Above 0.80: strong candidate with stricter confirmation logic.
- Below 0.30: weak zone or avoid area.
This script is not a standalone trading system and should not be used in isolation. Signals are strongest when read together with price structure, liquidity, market regime, and upcoming event risk such as earnings releases
Phát hành các Ghi chú
This update improves reliability and speed.The score momentum is now more robust on symbols with short history, and fundamentals are only used where they truly make sense (for stocks). Non‑stock instruments like ETFs, indices, bonds, FX, crypto, and commodities are treated more cleanly, which reduces load and keeps the table focused on meaningful information.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.