← All guides

How to find a gold trading strategy with a strategy generator

Let XauLab search many rule combinations for you, then check the best candidates properly before trading them.

5 min read · Updated 5 November 2026

What the Strategy Generator does

The Strategy Generator builds and tests many combinations of indicators, entry rules and exits on gold prices, then keeps the ones that pass your filters. It saves hours of manual trial and error.

Part of the data is held back as an out-of-sample period: candidates are judged on prices they were not built on, which helps filter out strategies that only fit the past by chance.

Step by step

  1. Open the Strategy Generator, choose XAUUSD, a timeframe and buy, sell or both.
  2. Set your filters, for example a minimum number of trades and a maximum drawdown.
  3. Start the run. It takes a few minutes and keeps going on the server even if you close the page; XauLab emails you when a long run finishes and shows the results when you come back.
  4. Sort the accepted strategies and open the best ones in a full backtest over a long period.
  5. Save the ones you like, then test them on a demo account before going live.

Check before you trust

  • Prefer strategies with many trades and steady monthly returns.
  • Run the full backtest on your broker's candles.
  • Avoid near-duplicates of the same idea; pick a few different ones.
  • Remember that a strategy found by searching the past can still fail in the future.

Ready to try it on XauLab?

Open the Strategy Generator

Educational content, not financial advice. Trading gold with leverage carries a high risk of loss, and past results do not guarantee future returns. Read the risk disclosure.