OPEN-SOURCE SCRIPT
XAU Micro Scalper

This indicator is designed for short-term price rotation detection on XAUUSD, especially on the 1-minute timeframe.
It combines three momentum components—Stochastic, RSI, and OBV slope—to highlight potential reversal points and short-term scalping opportunities.
Core Logic
The script generates a signal only when multiple conditions align:
1. Stochastic Reversal (Timing Component)
A basic long/short trigger occurs when the Stochastic oscillator exits oversold (long) or overbought (short).
This represents a potential shift in short-term momentum.
2. RSI “Smart Rotation” Filter (Context Component)
Instead of using fixed oversold/overbought thresholds, the indicator checks whether RSI is turning:
Long: RSI is below a contextual ceiling (default 50) and rising
Short: RSI is above a contextual floor (default 55) and falling
This avoids premature entries during strong trending phases and confirms that momentum is actually rotating.
3. OBV Slope Filter (Volume Confirmation)
The On-Balance Volume trend is compared to its previous value:
This helps confirm whether volume pressure is shifting in favor of the trade direction.
Both RSI and OBV filters can be enabled or disabled independently via the indicator settings.
Signals
Small circles mark raw Stochastic reversal points (unfiltered).
Green / red triangles represent validated long/short signals where all active filters agree.
Optional candle coloring highlights confirmed entry signals on the chart.
Use Cases
Customization
Users can adjust:
Activation of RSI and OBV filters
This flexibility allows the indicator to adapt to different market conditions and timeframes.
Disclaimer
This indicator does not provide financial advice or guarantee performance.
Always test any strategy on historical data and use proper risk management.
It combines three momentum components—Stochastic, RSI, and OBV slope—to highlight potential reversal points and short-term scalping opportunities.
Core Logic
The script generates a signal only when multiple conditions align:
1. Stochastic Reversal (Timing Component)
A basic long/short trigger occurs when the Stochastic oscillator exits oversold (long) or overbought (short).
This represents a potential shift in short-term momentum.
2. RSI “Smart Rotation” Filter (Context Component)
Instead of using fixed oversold/overbought thresholds, the indicator checks whether RSI is turning:
Long: RSI is below a contextual ceiling (default 50) and rising
Short: RSI is above a contextual floor (default 55) and falling
This avoids premature entries during strong trending phases and confirms that momentum is actually rotating.
3. OBV Slope Filter (Volume Confirmation)
The On-Balance Volume trend is compared to its previous value:
This helps confirm whether volume pressure is shifting in favor of the trade direction.
Both RSI and OBV filters can be enabled or disabled independently via the indicator settings.
Signals
Small circles mark raw Stochastic reversal points (unfiltered).
Green / red triangles represent validated long/short signals where all active filters agree.
Optional candle coloring highlights confirmed entry signals on the chart.
Use Cases
- Intraday and scalping strategies on XAUUSD
- Identifying short-term momentum reversals
- Filtering noisy signals during high-volatility sessions
- Studying how volume and momentum align around turning points
Customization
Users can adjust:
- RSI contextual thresholds
- Lookback periods
- OBV slope sensitivity
- Stochastic parameters
Activation of RSI and OBV filters
This flexibility allows the indicator to adapt to different market conditions and timeframes.
Disclaimer
This indicator does not provide financial advice or guarantee performance.
Always test any strategy on historical data and use proper risk management.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.