OPEN-SOURCE SCRIPT
Cập nhật UT Bot + LinReg Candles (Dual Sensitivity)

Script Description:
This indicator combines the popular UT Bot Alerts system with Linear Regression Candles (open source) for enhanced trend detection and trading signals in one singel script. The UT Bot features independent, then 2 x ATR sensitivity and periods controls for buy and sell signals, allowing you to fine-tune entries and exits to match your strategy. The script also overlays colored Linear Regression Candles with an optional signal line, helping you visually identify trend strength and direction. All calculations are performed on standard chart prices (no Heikin Ashi). Suitable for all asset classes and timeframes.
Eample setting for usdjpy 5 min chart for repeated buy and sell singnals based on trend:
BUY ATR period 300 multiplier 1
SELL ATR period 1 multiplier 2
Disclaimer:
This script is for informational and educational purposes only. It is not financial advice. Use at your own risk; the author assumes no responsibility for any trading results or losses.
Credits goes to to Ugurvu for linreg candles and quantnomad for UT Bot alerts that make this script possible.
Author: Patrick
Phát hành các Ghi chú
Lag fix 07.07-2025: the signal not appear before the bar is fully closed and confirmedPhát hành các Ghi chú
08.07.2025- Adjusted alert timing-bug fix and improvementshttps://www.tradingview.com/x/5fdJgm5I/Phát hành các Ghi chú
Changelog 10.08.2025: 1. ATR Buy/Sell Independence, one side could now be fully disabled
The Buy and Sell ATR settings work independently, letting you fine-tune sensitivity for each side.
If you set one ATR multiplier to 0 (Zero), that side is effectively disabled
— e.g for use., in a strong bullish market, you can turn off Sell signals and only trade Buys on dip as an example.
2. New Dashboard Panel
Added a visual panel for additional practical info
Displays market conditions, trends, and trade info in a fixed top-right panel.
Panel Includes:
Volatility %
Volume vs Average
VWAP Position
MACD Bias
Stochastic Bias + OB/OS state
Multi-timeframe EMA based trend overview
Today & Yesterday range/direction in %
ATR regime (High/Mid/Low)
Current ATR trailing stop for active trade in the panel
Fully customizable position, padding, and colors under settings.
Benefit:
One glance gives both market overview and trade status without nessescary checking many multiple indicators.
How to Use:
Signals – Use UT Bot Buy/Sell labels for entries; enable trailing lines to track stops.
Zones – Green = demand, Red = supply; trade in confluence with UT signals.
S/R Lines – Watch for reactions at key historical levels.
Dashboard – Check trend bias, volatility, and momentum before entering.
Stochastic reports both direction and overbought/oversold state.
Filters – Toggle zones, S/R, or dashboard off for a cleaner chart if needed.
Important!
Remember no indicator garantee success,never solely trust one indicator alone, always do your own research before enter a trade.
Known bugs: The scale of the chart vs indicator could sometimes be wrong, remove the indicator and open the Tradingview page in a new window and then add the indicator.
Fix in progress.
Let me know if something not working as expected :)
Phát hành các Ghi chú
Changelog 18.08.2025Visuals- Linreg candles follow the color between buy and sell signals for cleaner trend view
Panel- could now be anchored in each corner of the chart after each users choice under GUI settings
SMA line have option for color change to be better visual in both white and black background.
Patrick
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.