OPEN-SOURCE SCRIPT
Cập nhật Wake Up, Neo - Gold/DXY Confluence

🇮🇹 ITALIANO
🔴 Wake Up, Neo — Gold/DXY Confluence
Questo indicatore individua opportunità di trading su XAUUSD (oro) sfruttando la relazione inversa tra il prezzo dell'oro e l'indice del dollaro (DXY), confermando ogni segnale con due filtri di trend indipendenti prima di mostrarlo a grafico.
Come funziona
Filtro di correlazione (Gold/DXY) — calcola la correlazione rolling tra il prezzo dell'oro e il DXY. Quando la correlazione è sufficientemente negativa (relazione inversa attiva), un incrocio dell'RSI genera un segnale grezzo di BUY o SELL.
Conferma con Supertrend — il segnale grezzo viene validato solo se il Supertrend conferma la direzione opposta attesa (es. BUY solo se il Supertrend è in trend ribassista, coerentemente con una view contrarian/di inversione).
Conferma con Gann HiLo Activator — se al momento del segnale il Gann HiLo è già allineato, il segnale scatta subito. Se invece è ancora contrario, l'indicatore attende pazientemente la prima candela chiusa in cui il Gann HiLo si allinea, e solo a quel punto — ricontrollando che il Supertrend sia ancora coerente — genera il segnale finale BUY o SELL.
Questo meccanismo a "attesa di conferma" riduce i falsi segnali rispetto a un semplice incrocio isolato.
Filtri opzionali (disattivati di default)
Per chi vuole affinare ulteriormente il win rate, sono disponibili quattro filtri aggiuntivi attivabili singolarmente: trend EMA, volatilità ATR, fascia oraria di sessione (Londra/New York) e conferma RSI.
Backtest integrato
Include un motore di backtest visivo: ogni segnale apre un trade virtuale alla candela successiva, con zone TP/SL disegnate a grafico, label di entrata/uscita e un pannello riepilogativo con numero di operazioni, TP/SL presi, rapporto rischio/rendimento e win rate.
⚠️ Questo indicatore è uno strumento di analisi tecnica e non costituisce consulenza finanziaria. Testare sempre su demo prima di un uso reale.
Autore: KalTony
🇬🇧 ENGLISH
🔴 Wake Up, Neo — Gold/DXY Confluence
This indicator spots trading opportunities on XAUUSD (gold) by exploiting the inverse relationship between the gold price and the US Dollar Index (DXY), confirming every signal with two independent trend filters before it prints on the chart.
How it works
Correlation Filter (Gold/DXY) — calculates the rolling correlation between the gold price and the DXY. When the correlation is negative enough (inverse relationship active), an RSI crossover generates a raw BUY or SELL signal.
Supertrend Confirmation — the raw signal is only validated if Supertrend confirms the expected opposite direction (e.g. BUY only if Supertrend is in a downtrend, consistent with a contrarian/reversal view).
Gann HiLo Activator Confirmation — if the Gann HiLo is already aligned at the moment of the signal, it fires immediately. If it's still opposed, the indicator patiently waits for the first closed candle where the Gann HiLo aligns, and only then — after re-checking that Supertrend is still consistent — does it generate the final BUY or SELL signal.
This "wait for confirmation" mechanism reduces false signals compared to a simple isolated crossover.
Optional Filters (disabled by default)
For those who want to further refine the win rate, four additional filters are available and can be toggled individually: EMA trend, ATR volatility, session time filter (London/New York), and RSI confirmation.
Built-in Backtest
Includes a visual backtest engine: every signal opens a virtual trade on the next candle, with TP/SL zones drawn on the chart, entry/exit labels, and a summary panel showing number of trades, TP/SL hits, risk/reward ratio, and win rate.
⚠️ This indicator is a technical analysis tool and does not constitute financial advice. Always test on a demo account before live use.
Author: KalTony
🔴 Wake Up, Neo — Gold/DXY Confluence
Questo indicatore individua opportunità di trading su XAUUSD (oro) sfruttando la relazione inversa tra il prezzo dell'oro e l'indice del dollaro (DXY), confermando ogni segnale con due filtri di trend indipendenti prima di mostrarlo a grafico.
Come funziona
Filtro di correlazione (Gold/DXY) — calcola la correlazione rolling tra il prezzo dell'oro e il DXY. Quando la correlazione è sufficientemente negativa (relazione inversa attiva), un incrocio dell'RSI genera un segnale grezzo di BUY o SELL.
Conferma con Supertrend — il segnale grezzo viene validato solo se il Supertrend conferma la direzione opposta attesa (es. BUY solo se il Supertrend è in trend ribassista, coerentemente con una view contrarian/di inversione).
Conferma con Gann HiLo Activator — se al momento del segnale il Gann HiLo è già allineato, il segnale scatta subito. Se invece è ancora contrario, l'indicatore attende pazientemente la prima candela chiusa in cui il Gann HiLo si allinea, e solo a quel punto — ricontrollando che il Supertrend sia ancora coerente — genera il segnale finale BUY o SELL.
Questo meccanismo a "attesa di conferma" riduce i falsi segnali rispetto a un semplice incrocio isolato.
Filtri opzionali (disattivati di default)
Per chi vuole affinare ulteriormente il win rate, sono disponibili quattro filtri aggiuntivi attivabili singolarmente: trend EMA, volatilità ATR, fascia oraria di sessione (Londra/New York) e conferma RSI.
Backtest integrato
Include un motore di backtest visivo: ogni segnale apre un trade virtuale alla candela successiva, con zone TP/SL disegnate a grafico, label di entrata/uscita e un pannello riepilogativo con numero di operazioni, TP/SL presi, rapporto rischio/rendimento e win rate.
⚠️ Questo indicatore è uno strumento di analisi tecnica e non costituisce consulenza finanziaria. Testare sempre su demo prima di un uso reale.
Autore: KalTony
🇬🇧 ENGLISH
🔴 Wake Up, Neo — Gold/DXY Confluence
This indicator spots trading opportunities on XAUUSD (gold) by exploiting the inverse relationship between the gold price and the US Dollar Index (DXY), confirming every signal with two independent trend filters before it prints on the chart.
How it works
Correlation Filter (Gold/DXY) — calculates the rolling correlation between the gold price and the DXY. When the correlation is negative enough (inverse relationship active), an RSI crossover generates a raw BUY or SELL signal.
Supertrend Confirmation — the raw signal is only validated if Supertrend confirms the expected opposite direction (e.g. BUY only if Supertrend is in a downtrend, consistent with a contrarian/reversal view).
Gann HiLo Activator Confirmation — if the Gann HiLo is already aligned at the moment of the signal, it fires immediately. If it's still opposed, the indicator patiently waits for the first closed candle where the Gann HiLo aligns, and only then — after re-checking that Supertrend is still consistent — does it generate the final BUY or SELL signal.
This "wait for confirmation" mechanism reduces false signals compared to a simple isolated crossover.
Optional Filters (disabled by default)
For those who want to further refine the win rate, four additional filters are available and can be toggled individually: EMA trend, ATR volatility, session time filter (London/New York), and RSI confirmation.
Built-in Backtest
Includes a visual backtest engine: every signal opens a virtual trade on the next candle, with TP/SL zones drawn on the chart, entry/exit labels, and a summary panel showing number of trades, TP/SL hits, risk/reward ratio, and win rate.
⚠️ This indicator is a technical analysis tool and does not constitute financial advice. Always test on a demo account before live use.
Author: KalTony
Phát hành các Ghi chú
Nuova funzione Modalità Alternativa (ignora Modulo 1 — solo Trend + Attivatore)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.