OPEN-SOURCE SCRIPT
Supertrend + QQE MOD Combined

I've combined the Supertrend and QQE MOD scripts into a unified trading system. Here's what the combined indicator does:
Dual Signal System:
1. buy/sell labels show every Supertrend reversal
2. Strong Buy/Strong Sell labels only appear when both Supertrend AND QQE MOD align
Signal Logic:
1. Continuous Alignment Check:
alignedBullish - TRUE whenever both Supertrend is bullish AND QQE is bullish
alignedBearish - TRUE whenever both Supertrend is bearish AND QQE is bearish
2. Signal Triggers:
BUY Signal - Fires when alignment FIRST becomes bullish (wasn't aligned before, now is)
SELL Signal - Fires when alignment FIRST becomes bearish (wasn't aligned before, now is)
Alert System:
1. Individual alerts for Supertrend reversals and QQE signals
2. Combined alerts (most important): Fire only when both indicators align
"Any Combined Signal" alert catches both buy and sell alignments
Dashboard:
1. Shows individual status of Supertrend and QQE MOD
2. "Alignment" row shows if both are bullish/bearish
3. "Signal" row highlights actual entry signals
Optional Features:
1. Trading session filter (enable/disable)
2. Background highlighting on signals
3. Toggle individual Supertrend labels
4. Toggle combined signal labels
What This all Means:
Now you'll get signals in these scenarios:
1. Supertrend reverses and QQE is already aligned ✓ (original behavior)
2. QQE crosses threshold while Supertrend is already in the right direction ✓ (NEW!)
Both align simultaneously ✓
Visual Feedback:
Large BUY/SELL labels - Appear when alignment FIRST occurs (entry point)
Background color - Stays highlighted continuously while aligned (shows you're in a good trade zone)
Dashboard - Now shows "Hold Long" or "Hold Short" when aligned but no new signal
This gives you more entry opportunities while maintaining the requirement that both indicators must agree!
Dual Signal System:
1. buy/sell labels show every Supertrend reversal
2. Strong Buy/Strong Sell labels only appear when both Supertrend AND QQE MOD align
Signal Logic:
1. Continuous Alignment Check:
alignedBullish - TRUE whenever both Supertrend is bullish AND QQE is bullish
alignedBearish - TRUE whenever both Supertrend is bearish AND QQE is bearish
2. Signal Triggers:
BUY Signal - Fires when alignment FIRST becomes bullish (wasn't aligned before, now is)
SELL Signal - Fires when alignment FIRST becomes bearish (wasn't aligned before, now is)
Alert System:
1. Individual alerts for Supertrend reversals and QQE signals
2. Combined alerts (most important): Fire only when both indicators align
"Any Combined Signal" alert catches both buy and sell alignments
Dashboard:
1. Shows individual status of Supertrend and QQE MOD
2. "Alignment" row shows if both are bullish/bearish
3. "Signal" row highlights actual entry signals
Optional Features:
1. Trading session filter (enable/disable)
2. Background highlighting on signals
3. Toggle individual Supertrend labels
4. Toggle combined signal labels
What This all Means:
Now you'll get signals in these scenarios:
1. Supertrend reverses and QQE is already aligned ✓ (original behavior)
2. QQE crosses threshold while Supertrend is already in the right direction ✓ (NEW!)
Both align simultaneously ✓
Visual Feedback:
Large BUY/SELL labels - Appear when alignment FIRST occurs (entry point)
Background color - Stays highlighted continuously while aligned (shows you're in a good trade zone)
Dashboard - Now shows "Hold Long" or "Hold Short" when aligned but no new signal
This gives you more entry opportunities while maintaining the requirement that both indicators must agree!
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.