OPEN-SOURCE SCRIPT
Structural Trend Integrity Score (STIS)

The Structural Trend Integrity Score (STIS) is a market regime and trend-quality indicator designed to evaluate the health and durability of a price trend, rather than its direction or momentum. Instead of focusing on overbought or oversold conditions, STIS measures whether a trend is structurally supported by consistent organization, persistence above trend, controlled pullbacks, and smooth progression.
STIS outputs a normalized score from 0 to 100, where higher values indicate stronger and more reliable trend structure, and lower values signal increasing fragility or structural breakdown. This makes it especially well suited for index funds and highly liquid markets, where trends tend to persist or fail based on internal structure rather than short-term price acceleration.
The indicator is intended to be used as a risk and confidence framework, not as a direct buy or sell signal. STIS helps traders and investors determine when it is efficient to maintain or increase exposure and when caution is warranted. It works best when paired with separate timing or entry tools and is particularly effective for long-only or trend-following strategies.
STIS outputs a normalized score from 0 to 100, where higher values indicate stronger and more reliable trend structure, and lower values signal increasing fragility or structural breakdown. This makes it especially well suited for index funds and highly liquid markets, where trends tend to persist or fail based on internal structure rather than short-term price acceleration.
The indicator is intended to be used as a risk and confidence framework, not as a direct buy or sell signal. STIS helps traders and investors determine when it is efficient to maintain or increase exposure and when caution is warranted. It works best when paired with separate timing or entry tools and is particularly effective for long-only or trend-following strategies.
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.