Generation 6 Massive Trend Following for Gold
Apr 27, 2017

The Generation 6 Massive Trend Following for Gold indicator is a trend-following strategy designed to identify high-probability momentum shifts and trend continuations specifically for the XAUUSD (Gold) pair.
Usage
The strategy utilizes a multi-layered approach to identify entries:
- Trend Establishment: The 600-period Simple Moving Average (SMA) acts as the primary filter. Long positions are only considered when the price is above the SMA 600, while short positions are only considered when the price is below it.
- Trend Confirmation: The relationship between the 15-period SMA and 60-period SMA determines the immediate trend direction.
- Entry Signal: The actual entry trigger occurs when the 20-period SMA crosses over (for longs) or under (for shorts) the 60-period Exponential Moving Average (EMA).
This combination ensures that trades are only taken in the direction of the long-term trend while capturing medium-term momentum shifts.
Details
The script implements a systematic approach to Gold trading by combining different moving average lengths and types to filter noise:
- SMA 600: Used for long-term trend identification.
- SMA 15 & SMA 60: Used for secondary trend confirmation.
- SMA 20 & EMA 60: Used as the crossover trigger mechanism.
The strategy is optimized for XAUUSD and includes predefined commission values to simulate realistic trading conditions, such as spreads. The logic is designed to stay in trends for extended periods, reducing the frequency of whipsaw trades in ranging markets.
Settings
- Initial Capital: Sets the starting balance for the strategy backtest (default is $10,000).
- Commission Value: Set to 0.02 to simulate a standard Gold spread (approximately 50 pips).
- Pyramiding: Controls the number of consecutive entries allowed in the same direction.
- Order Quantity: Defaulted to 1 contract (1.00 lot) per trade.
FAQ
How do I use the Generation 6 Massive Trend Following for Gold?
You can apply the script to a Gold (XAUUSD) chart. It will automatically plot signals when the long-term trend (SMA 600), medium-term trend, and EMA crossover all align.
What timeframe is this strategy best suited for?
While it can be used on various timeframes, trend-following strategies using a 600-period SMA typically perform best on mid-to-high timeframes like the 15m, 1h, or 4h to capture significant market moves.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.