Skip to main content

'Gold Range Breakout' Trading Bot

Gold Range Breakout Bot: trades daily 3–6AM highs/lows on XAUUSD with 1% stop loss, closing at 6:55PM.

Updated over 2 months ago

Mastering the Gold Range Breakout with Profectus.AI

This guide walks you through the Gold Range Breakout strategy, built in Profectus.AI.

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 for the Pro version and 17 blocks for the free version as shown below. Check? Let's continue!

FREE VERSION

PRO VERSION

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 Gold Range Breakout looks at 3:00–6:00 AM server time each day:

  • Detect the highest high and lowest low in that range.

  • As soon as price breaks out of the range, enter a trade.

  • Only one trade per day is allowed (up or down, whichever triggers first).

  • Stop Loss: 1% of the gold price — simple and robust.

  • Take Profit: None. Trade closes at 6:55 PM, capturing the day’s move.

Example Trade (Short):

  • 3:00–6:00 → define the range.

  • Price breaks below → sell.

  • Stop loss = 1% above entry.

  • Position auto-closes at 6:55 PM.

This design protects the downside while leaving upside unlimited.

Step 4: Make It Your Own [10 Min]

You can adjust and experiment:

  • Change the session window (e.g. 2–5 AM instead of 3–6 AM).

    • EXPORT and see the differences.

  • Move the close time earlier/later.

    • EXPORT and see the differences.

  • Swap fixed % risk for lot size or ATR-based SL.

    • EXPORT and see the differences.

  • Add indicators (e.g. moving averages) to filter false breakouts.

    • EXPORT and see the differences.

Profectus.AI Pro users get Inputs & Variables, letting you change session times, risk %, and other settings directly in MetaTrader without editing blocks.

Experiment on different pairs and timeframes to match your personal trading style.

Pro Version

Want even more flexibility? The Pro version of the Gold Range Breakout Bot unlocks powerful Inputs & Variables so you can fine-tune every detail. Adjust the session start and end times, change the closing time, set your risk as a percentage of balance, or swap in a custom stop-loss method like ATR.

These Pro-only settings give you full control in-app and let you backtest and optimize variations of the strategy in minutes instead of hours. Ready to level up your breakout system?

Conclusion

The Gold Range Breakout is a timeless price-action system: simple rules, real profits, and a healthy risk profile. Now it’s your turn — backtest it, tweak it, and evolve it into your own winning system.

👉 Try the free version today, or unlock the Pro version for unlimited exports, full customization, and source code access.

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?