Generation 6 Massive Trend Following for Gold

Apr 27, 2017

Static chart image
Signals
Moving Averages

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 access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.