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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.