Gold Scalping EA v2
- Experts
- Versione: 2.0
- Attivazioni: 10
XAUUSD Sniper V2 is a MetaTrader 5 Expert Advisor designed for gold scalping. It looks for buy and sell opportunities across four entry setups. Each mode can be enabled or disabled in the inputs.
Entry modes
- Momentum — looks for a sequence of directional M1 candles, expanding Bollinger Bands and a break of a recent level, with confirmation from the M5 context. This setup is evaluated first.
- Breakout — looks for an M5 close beyond recent support or resistance, followed by an M1 continuation signal.
- Trend — looks for a pullback toward the M5 middle Bollinger Band, then an M1 move in the direction confirmed by the trend indicators.
- Range — looks for rejection of an outer band or horizontal level when the market is classified as consolidating. The target is based on the middle band.
Order selection and position management
The Expert Advisor assigns each setup a score based on its technical rules. Before submitting an order, it checks the minimum score, spread, reward-to-risk ratio and available margin. Stop-loss and take-profit levels are calculated using the entry setup and volatility.
Break-even management and the trailing stop can be enabled independently. An optional setting can close the Expert Advisor’s positions that are opposite to a detected momentum bias.
Main inputs
- LotSize — fixed order volume. Adjust it to the symbol specifications and account size.
- EnableBuy , EnableSell — enable buy and sell entries independently.
- EnableMomentum , EnableBreakout , EnableTrend , EnableRange — select the active strategy modes.
- MinSignalScore , MaxSpreadPrice , MinRewardRisk — set the minimum signal score, maximum spread and minimum reward-to-risk ratio.
- MinTP , MaxTP — set the minimum and maximum target distances in the symbol’s price units.
- MomentumBars , MomentumMinCandles , MomentumMinATR , MomentumTPATR , MomentumHoldBars — configure momentum detection, its target and how long the bias is held in M1 bars.
- EnableBreakEven , EnableTrailingStop , CloseOnReversal — configure position management.
- MaxOpenPositions , MaxTradesPerDay — limit the Expert Advisor’s concurrent positions and daily entries on the symbol.
- EnableDailyLossStop , MaxDailyLossPercent — set an optional equity-loss threshold that blocks new entries. This control is disabled by default.
- Magic , DeviationPoints — set the order identifier and allowed price deviation in points.
Setup. Attach the Expert Advisor to an XAUUSD M1 chart in MetaTrader 5. It reads M5 and M15 data automatically. Check the order volume, spread and position management settings on a demo account before live use.
