OPEN-SOURCE SCRIPT
Gold Smart Scalper AI V2

1. The "Red Zone" (News Management)
The strategy logic does not "know" when the Federal Reserve is speaking.
Rule: Disable the strategy or stop taking signals 15 minutes before and after high-impact news (CPI, NFP, FOMC).
Why: During these times, Gold can move $30 in seconds. Slippage will cause your $1.50 Stop Loss to execute much further away, leading to massive drawdown.
2. Session Selection
Gold "Scalping" requires high liquidity and tight spreads.
Discretionary Filter: Only trade during the London/New York overlap (13:00 – 17:00 UTC).
Avoid: The late Asian session or Sunday market open. Spreads often widen to $0.50–$1.00, meaning you are already down 30-50% of your Stop Loss the moment you enter.
3. Market "Mood" (Trend vs. Range)
Trend Context: If the 50 EMA (the White line) is completely flat, the market is in a "Bracket." In this state, EMA crossovers generate many false signals.
The Adjustment: Discretionary traders wait for the 50 EMA to show a clear slope (up or down) before trusting the 9/21 crossover signals.
The strategy logic does not "know" when the Federal Reserve is speaking.
Rule: Disable the strategy or stop taking signals 15 minutes before and after high-impact news (CPI, NFP, FOMC).
Why: During these times, Gold can move $30 in seconds. Slippage will cause your $1.50 Stop Loss to execute much further away, leading to massive drawdown.
2. Session Selection
Gold "Scalping" requires high liquidity and tight spreads.
Discretionary Filter: Only trade during the London/New York overlap (13:00 – 17:00 UTC).
Avoid: The late Asian session or Sunday market open. Spreads often widen to $0.50–$1.00, meaning you are already down 30-50% of your Stop Loss the moment you enter.
3. Market "Mood" (Trend vs. Range)
Trend Context: If the 50 EMA (the White line) is completely flat, the market is in a "Bracket." In this state, EMA crossovers generate many false signals.
The Adjustment: Discretionary traders wait for the 50 EMA to show a clear slope (up or down) before trusting the 9/21 crossover signals.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.