OPEN-SOURCE SCRIPT
[Dark Data] Trend Conviction

Objective
Quantifies directional efficiency by means of penalizing adverse price extension.
Theory
Price movement with little opposition indicates a trend with conviction. High directional efficiency and low adverse pressure typically result in continued directional bias across lower timeframes.
How To Use
Trend Conviction is best used for directional bias on timeframes higher than your execution timeframe.
The output ranges from 1 to -1, where 1 is a perfect uptrend and -1 is a perfect downtrend.
Increasing Penalty Power filters out trends with significant opposing price activity.
Nuanced Info/Warnings
Different assets naturally tolerate varying degrees of counter-trend extension within a healthy trend, so a higher Penalty Power is not always better.
Quantifies directional efficiency by means of penalizing adverse price extension.
Theory
Price movement with little opposition indicates a trend with conviction. High directional efficiency and low adverse pressure typically result in continued directional bias across lower timeframes.
How To Use
Trend Conviction is best used for directional bias on timeframes higher than your execution timeframe.
The output ranges from 1 to -1, where 1 is a perfect uptrend and -1 is a perfect downtrend.
Increasing Penalty Power filters out trends with significant opposing price activity.
Nuanced Info/Warnings
Different assets naturally tolerate varying degrees of counter-trend extension within a healthy trend, so a higher Penalty Power is not always better.
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.