Skip to main content

The 'Gold Strategy'

Daily Gold breakout bot: 70% return, 15% drawdown, 1:3 R:R. Built in Profectus.AI — free, tweakable, and tested with 99% data quality.

Updated over 2 months ago

Trading Gold with Profectus.AI

The Gold Breakout Bot is built in Profectus.AI and designed to capture daily inside-bar breakouts on XAUUSD (Gold).
Tested on high-quality tick data (99% modeling quality) over 5.5 years, it delivered a 70% return with a max drawdown of 15% — a stable 1:5 return-to-drawdown ratio.

Step 0: Access the Trading Bot Template [1 Min]

Click the button to load the trading bot directly onto your canvas:

Your canvas should display 12 blocks as shown below. Check? Let's continue!

Step 1: Export the Trading Bot [1 Min]

Before diving into customization, export the bot with the upper right export button to download the file.

Step 2: Upload to MetaTrader 5 [4 Min]

Don’t know how? Refer to our help article "Exporting Your First Strategy".

Step 3: Understand the Logic [1 Min]

The logic is simple:

  • Every day at 2 AM, the bot checks for an inside bar (yesterday’s high < the day before’s high, and yesterday’s low > the day before’s low).

  • If an inside bar forms, it places pending orders around the breakout range.

  • Trades run on the daily timeframe, giving stability and avoiding lower-timeframe noise.

This setup wins only about one-third of trades — but the average winner is 3x the size of a loser. By cutting losses early and letting winners run, the system maintains profitability with a smooth equity curve.


How It Works in Profectus.AI

  • Time Check Block → Runs only Mon–Fri, starting at 2:00 AM.

  • Inside Bar Block → Confirms candle structure (yesterday inside the range of the day before).

  • Risk Control Block → Caps open/pending orders at 5 to avoid overexposure.

  • Buy/Sell Pending Orders → Placed at breakout levels.

  • Management Block → Lets trades run with a 1:3 risk-reward by default.

Step 4: Make It Your Own [10 Min]

You can tweak this bot inside Profectus.AI in minutes:

  • Change the timeframe

    • Daily is most stable, but try 4H or Weekly.

    • EXPORT and backtest to see how noise vs. trend affects outcomes.

  • Adjust the risk model

    • Default = fixed lot. Try % of balance or ATR-based stop loss.

    • EXPORT and compare different drawdown profiles.

  • Modify exit logic

    • Stick with the default 1:3 R:R, or reel in profits earlier at 1:1 / 1:2.

    • EXPORT and test which curve feels safer for you.

  • Add filters

    • Layer a Moving Average trend filter to avoid breakouts against the trend.

    • EXPORT and see if false breakouts reduce.

Conclusion

This bot is a ready-to-use, transparent inside-bar breakout system for Gold.
It’s stable, profitable, and built entirely in Profectus.AI’s no-code builder.
You can run it as-is or tweak, export, and optimize to match your trading style.

Templates are for educational purposes only.

Now it's your turn—apply the template, tweak the logic, and make it yours. 🚀

Did this answer your question?