OPEN-SOURCE SCRIPT
UltimateUptrendAlignment21checkConfluenceEMA/RSI/MACD/BB/Vol/HTF

Ultimate Uptrend Alignment — 21-check Confluence (EMA/RSI/MACD/BB/Vol/HTF)
What it is
A precision uptrend confluence scanner that waits for many popular signals to align before tagging a “Strong Align” setup. It converts 21 yes/no checks into a single Alignment %, so you can see structure, momentum, volume/flow, regime, and (optional) higher-timeframe confirmation at a glance.
How it works
Five groups of checks → Structure (5), Momentum (5), Volume/Flow (4), Regime (4), HTF (3 optional).
Each passed check = 1 point. Alignment % = hits ÷ checks-used.
Strong Align fires when Alignment ≥ threshold (default 75%).
Badge + mini table show group hits and quick notes.
The 21 checks
Structure (5): Close>EMA20, EMA20>EMA50>EMA200, EMA20↑, EMA50↑.
Momentum (5): RSI>50, RSI rising, MACD hist>0, MACD hist rising, Stoch K>D & >50.
Volume/Flow (4): Volume ratio>avg, MFI>50, OBV rising, Close>VWAP (intraday) or >MA.
Regime (4): BB width leaving quiet & widening, ATR rising, BB upper break, true-range expansion.
HTF (3, optional): HTF EMA stack up, HTF RSI>50, HTF MACD line>signal.
Robust design
Works on symbols without volume: uses ATR(1) proxy for volume metrics; custom MFI returns neutral 50 if volume unavailable.
No fragile dependencies; everything is computed in-script (v6).
Intraday uses VWAP anchor; higher timeframes use MA fallback.
Inputs & outputs
Adjustable lengths, thresholds, VWAP/MA anchor, and HTF resolution.
Strong Align plot/alert + optional bar paint for visual cues.
Badge summarizes hits; mini table lists group results.
Use cases
Scan for high-confluence uptrend starts/continuations.
Combine with your entry triggers & risk rules for execution.
Disclaimer
For education only. Not financial advice. Test across markets/timeframes and manage risk.
What it is
A precision uptrend confluence scanner that waits for many popular signals to align before tagging a “Strong Align” setup. It converts 21 yes/no checks into a single Alignment %, so you can see structure, momentum, volume/flow, regime, and (optional) higher-timeframe confirmation at a glance.
How it works
Five groups of checks → Structure (5), Momentum (5), Volume/Flow (4), Regime (4), HTF (3 optional).
Each passed check = 1 point. Alignment % = hits ÷ checks-used.
Strong Align fires when Alignment ≥ threshold (default 75%).
Badge + mini table show group hits and quick notes.
The 21 checks
Structure (5): Close>EMA20, EMA20>EMA50>EMA200, EMA20↑, EMA50↑.
Momentum (5): RSI>50, RSI rising, MACD hist>0, MACD hist rising, Stoch K>D & >50.
Volume/Flow (4): Volume ratio>avg, MFI>50, OBV rising, Close>VWAP (intraday) or >MA.
Regime (4): BB width leaving quiet & widening, ATR rising, BB upper break, true-range expansion.
HTF (3, optional): HTF EMA stack up, HTF RSI>50, HTF MACD line>signal.
Robust design
Works on symbols without volume: uses ATR(1) proxy for volume metrics; custom MFI returns neutral 50 if volume unavailable.
No fragile dependencies; everything is computed in-script (v6).
Intraday uses VWAP anchor; higher timeframes use MA fallback.
Inputs & outputs
Adjustable lengths, thresholds, VWAP/MA anchor, and HTF resolution.
Strong Align plot/alert + optional bar paint for visual cues.
Badge summarizes hits; mini table lists group results.
Use cases
Scan for high-confluence uptrend starts/continuations.
Combine with your entry triggers & risk rules for execution.
Disclaimer
For education only. Not financial advice. Test across markets/timeframes and manage risk.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.