Vwap Pin Xau
- Experts
-
Ignacio Agustin Mene Franco
My name is Ignacio, I have more than 5 years of experience in the market, both forex and synthetic indices, I program indicators to provide the user with a better trade! - Version: 1.0
- Activations: 5
VWAP Pin Xau: EA for XAUUSD (M5)
VWAP Pin Xau is an Expert Advisor for MetaTrader 5 designed to trade gold (XAUUSD) on the M5 timeframe, utilizing two strategies based on reversals and bounces from technical levels. Every trade is opened with predefined Stop Loss and Take Profit levels. It does not employ martingale, grid, or loss-averaging techniques.
Strategies
1. Reversion to the Session VWAP
The EA calculates the session VWAP, weighted by tick volume, which resets at a user-defined time. When the price moves significantly away from the VWAP and a confirmation candle appears in the direction of the VWAP, the EA opens a trade toward the mean. The Stop Loss is placed beyond the recent extreme, while the Take Profit is set at the VWAP level—or at a specific percentage of the distance toward it.
2. Pin Bar at Support and Resistance
This strategy identifies swing highs and lows as key levels. When a candle—characterized by a long wick, a small body, and a short opposite wick—touches one of these levels and closes on the appropriate side, the EA waits for a breakout of that candle to enter a trade. If the price breaks through the opposite end of the pin bar before an entry occurs, the signal is canceled. The Take Profit is set at the next opposing level or based on a specific risk/reward ratio.
Risk Management
Configurable risk per trade: fixed lot size, percentage of account balance, or percentage of equity.
Daily loss limit, as well as limits on the number of open positions and total volume.
Monitoring of used margin and minimum free margin.
Maximum spread filter and an optional time-based filter.
Break-even and trailing stop functions, with checks for broker-imposed stop levels and "freeze" levels.
Optional trend filters: ADX for the VWAP reversion strategy and EMA for the pin bar strategy.
Automatic distance scaling: measured in pips for gold, and based on the ATR (Average True Range) for other symbols. Control Panel
Includes an on-chart panel displaying the EA status, VWAP and price deviation, detected levels, the latest signal (entry, SL, TP, and risk/reward ratio), account balance, equity, daily P/L, open positions, and margin used.
Recommended Settings
Symbol: XAUUSD
Timeframe: M5
Recommended Capital: 500 to 1000 USD
Recommended Broker: Fusion Markets (offers low spreads)
Platform: MetaTrader 5
VPS: Recommended, for continuous trading
