OPEN-SOURCE SCRIPT
UT Bot + Hull MA Close-Cross Confirm (Strategy)

UT Bot + Hull MA Close-Cross Confirm (Strategy)
This strategy combines the classic UT Bot ATR trailing stop with a Hull Moving Average (HMA) close-cross confirmation to reduce false signals and improve trade quality.
The system works in two stages:
UT Bot Signal Detection
A volatility-adjusted ATR trailing stop identifies potential trend shifts using a 1-period EMA crossover. This provides early buy and sell signals based on momentum and volatility.
Hull MA Close-Cross Confirmation
UT Bot signals are only confirmed once price closes across the Hull Moving Average. If a UT signal occurs on the wrong side of the Hull MA, the strategy waits until a valid close-cross occurs before triggering an entry. This confirmation step helps filter chop and late-trend reversals.
Key Features
Non-repainting logic (uses bar-close confirmation)
Futures-friendly design (fixed contracts, point-based TP/SL)
Supports Long, Short, or Both directions
Built-in Take Profit & Stop Loss
Configurable Hull MA type (HMA / EHMA / THMA)
Optional Heikin Ashi signal source
Clean Buy/Sell alerts for automation and webhook execution
Trade Logic Summary
Long Entry:
UT Bot buy signal + confirmed close above Hull MA
Short Entry:
UT Bot sell signal + confirmed close below Hull MA
Exit:
Fixed Take Profit or Stop Loss (user-defined in points)
Alerts & Automation
The strategy includes dedicated Buy Alert and Sell Alert conditions designed for webhook automation (e.g., trade logging, execution engines, or external dashboards). Alerts trigger only on confirmed bar closes, matching backtest behavior.
Intended Use
This strategy is designed for futures markets (e.g., MNQ, ES, GC) and performs best on intraday timeframes. Session filters, risk rules, and trade management can be handled externally if desired.
Disclaimer
This script is provided for educational and research purposes only and is not financial advice. Always test thoroughly and use proper risk management.
This strategy combines the classic UT Bot ATR trailing stop with a Hull Moving Average (HMA) close-cross confirmation to reduce false signals and improve trade quality.
The system works in two stages:
UT Bot Signal Detection
A volatility-adjusted ATR trailing stop identifies potential trend shifts using a 1-period EMA crossover. This provides early buy and sell signals based on momentum and volatility.
Hull MA Close-Cross Confirmation
UT Bot signals are only confirmed once price closes across the Hull Moving Average. If a UT signal occurs on the wrong side of the Hull MA, the strategy waits until a valid close-cross occurs before triggering an entry. This confirmation step helps filter chop and late-trend reversals.
Key Features
Non-repainting logic (uses bar-close confirmation)
Futures-friendly design (fixed contracts, point-based TP/SL)
Supports Long, Short, or Both directions
Built-in Take Profit & Stop Loss
Configurable Hull MA type (HMA / EHMA / THMA)
Optional Heikin Ashi signal source
Clean Buy/Sell alerts for automation and webhook execution
Trade Logic Summary
Long Entry:
UT Bot buy signal + confirmed close above Hull MA
Short Entry:
UT Bot sell signal + confirmed close below Hull MA
Exit:
Fixed Take Profit or Stop Loss (user-defined in points)
Alerts & Automation
The strategy includes dedicated Buy Alert and Sell Alert conditions designed for webhook automation (e.g., trade logging, execution engines, or external dashboards). Alerts trigger only on confirmed bar closes, matching backtest behavior.
Intended Use
This strategy is designed for futures markets (e.g., MNQ, ES, GC) and performs best on intraday timeframes. Session filters, risk rules, and trade management can be handled externally if desired.
Disclaimer
This script is provided for educational and research purposes only and is not financial advice. Always test thoroughly and use proper risk management.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。