OPEN-SOURCE SCRIPT
BT Trend Quality

BT Trend Quality
Four market measurements in one compact panel: EMA/DEMA separation, relative volume, directional movement spread, and distance above the previous lookback high.
This free indicator keeps each measurement visible separately. It does not generate buy/sell signals, price targets, position sizes, or a combined probability score.
What It Measures
EMA/DEMA separation: Percentage distance between EMA9 and DEMA200. Default threshold: ≥0.30%.
Relative volume: Current bar volume divided by its 20-bar simple average, including the current bar. Default threshold: >1.10×.
DI spread: DI+ minus DI−, using a 14-period directional movement calculation. Default threshold: ≥10.
Prior-high distance: Closing price relative to the highest high of the preceding 10 bars. The current bar is excluded from the reference high. Default threshold: >0.10%.
ADX is displayed separately for context. All lengths and thresholds are adjustable. The defaults are reference settings, not universally optimal parameters.
Display and Alerts
Four historical rows show whether each measurement meets its threshold. The table displays the latest confirmed values. Missing data and insufficient history are marked N/A, rather than treated as a failed condition.
Calculations use the chart’s timeframe. Ten bars represent ten days only on a daily chart. With default settings, the indicator requires 400 preceding bars before displaying its measurements.
Each measurement offers a separate alert for threshold-state changes in either direction, evaluated at bar close. During an unfinished candle, the table retains the previous confirmed values. Users must create their alerts through TradingView.
An alert describes a change in a measurement, not an instruction to trade. The thresholds focus on upward expansion and positive directional separation; a value below a threshold is not a short signal.
Purpose and Limitations
These are established technical-analysis calculations, not newly invented indicators. This implementation brings them together while preserving their individual values, making it easier to compare trend structure, participation, and directional movement without an opaque combined score.
No claim is made that this combination is unique or outperforms other tools. Historical research on a separate strategy does not establish this indicator’s future performance.
Data-provider differences, price adjustments, historical revisions, and missing volume can affect readings. Use standard price charts when comparing calculations.
This is an analytical tool, not personalized investment advice. It does not predict future prices or guarantee trading outcomes.
Four market measurements in one compact panel: EMA/DEMA separation, relative volume, directional movement spread, and distance above the previous lookback high.
This free indicator keeps each measurement visible separately. It does not generate buy/sell signals, price targets, position sizes, or a combined probability score.
What It Measures
EMA/DEMA separation: Percentage distance between EMA9 and DEMA200. Default threshold: ≥0.30%.
Relative volume: Current bar volume divided by its 20-bar simple average, including the current bar. Default threshold: >1.10×.
DI spread: DI+ minus DI−, using a 14-period directional movement calculation. Default threshold: ≥10.
Prior-high distance: Closing price relative to the highest high of the preceding 10 bars. The current bar is excluded from the reference high. Default threshold: >0.10%.
ADX is displayed separately for context. All lengths and thresholds are adjustable. The defaults are reference settings, not universally optimal parameters.
Display and Alerts
Four historical rows show whether each measurement meets its threshold. The table displays the latest confirmed values. Missing data and insufficient history are marked N/A, rather than treated as a failed condition.
Calculations use the chart’s timeframe. Ten bars represent ten days only on a daily chart. With default settings, the indicator requires 400 preceding bars before displaying its measurements.
Each measurement offers a separate alert for threshold-state changes in either direction, evaluated at bar close. During an unfinished candle, the table retains the previous confirmed values. Users must create their alerts through TradingView.
An alert describes a change in a measurement, not an instruction to trade. The thresholds focus on upward expansion and positive directional separation; a value below a threshold is not a short signal.
Purpose and Limitations
These are established technical-analysis calculations, not newly invented indicators. This implementation brings them together while preserving their individual values, making it easier to compare trend structure, participation, and directional movement without an opaque combined score.
No claim is made that this combination is unique or outperforms other tools. Historical research on a separate strategy does not establish this indicator’s future performance.
Data-provider differences, price adjustments, historical revisions, and missing volume can affect readings. Use standard price charts when comparing calculations.
This is an analytical tool, not personalized investment advice. It does not predict future prices or guarantee trading outcomes.
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.