All indicators

MACD Volume Strategy for XAUUSD (15m)

Feb 21, 2025

Static chart image
Volume BasedSignalsDrawing ToolMoney ManagementMoving Averages

The MACD Volume Strategy for XAUUSD (15m) tool is a momentum-based trading system that integrates the Moving Average Convergence Divergence (MACD) and a custom volume oscillator to identify and confirm trend shifts on the gold 15-minute timeframe.

Usage

The strategy is designed specifically for XAUUSD on the 15-minute chart. It uses a combination of trend and volume filters to generate entry signals:

  • Long Entry: Occurs when the MACD line crosses above the zero level while the volume oscillator is positive and current volume is at least 50% of the previous candle's volume.
  • Short Entry: Occurs when the MACD line crosses below the zero level while the volume oscillator remains positive (indicating active participation) and current volume is less than 50% of the previous candle's volume.

The script includes visual aids to help analyze performance:

  • Labels: "Buy" and "Close" labels mark the initiation and termination of trades.
  • Visual Boxes: Green or red boxes are drawn over the duration of a trade to highlight profitable or losing trades respectively.
  • Trade Lines: Horizontal lines indicate entry and exit price levels.

Details

The strategy employs a multi-factor approach to improve trade reliability.

  • Volume Oscillator: Calculated from the difference between a short-term (5-period) and long-term (8-period) Exponential Moving Average (EMA) of volume. This ensures trades are only taken when there is sufficient market activity.
  • MACD Filter: Uses standard settings (16, 26, 9) to detect trend shifts relative to the zero line, acting as a momentum gatekeeper.
  • Position Sizing: The strategy calculates quantity based on equity and a customizable leverage factor, allowing for adaptive risk management.
  • Execution: Default commission (0.01%) and slippage (2 points) are integrated into the strategy properties to provide more realistic backtesting results.

Settings

  • Leverage: Determines the multiplier applied to account equity to calculate the trade position size.
  • Short Length: Sets the period for the short-term volume EMA used in the volume oscillator.
  • Long Length: Sets the period for the long-term volume EMA used in the volume oscillator.

FAQ

How do I access MACD Volume Strategy for XAUUSD (15m)?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What timeframe is this strategy optimized for?

This strategy is specifically tuned for the 15-minute (15m) timeframe on XAUUSD (Gold).

Does the strategy include risk management?

Yes, the strategy includes hard-coded exit conditions for take profit and stop loss, as well as customizable leverage settings for position sizing.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.