Home / Guides / Gold trading bot
Gold trading bot, tested before it trades
Gold is not only for long term savers. With M Alpha Core you scan gold on the 1 hour chart, read a report with every number and let your own bot trade it on your own exchange account, day and night.
Last updated:

Real scan: gold on the 1 hour chart
These are the numbers from one of our own scans of gold: the scan of November 12, 2026 on the gold perpetual contract XAUUSDT, 1 hour chart, with data from December 11, 2025, when Binance listed the contract, to November 12, 2026 (336 days). The scan searched for settings on the first 65 % of the test period and then checked them on the last 35 %, which the search never saw.
| Trades in the test period | 153 |
| Profit factor on the searched data (65 %) | 2.53 |
| Profit factor on data the search never saw (35 %) | 2.81 |
| $1,000 without leverage | $2,446 |
| $1,000 at 3x leverage | $11,993 |
| $1,000 at 5x leverage | $46,664 |
| $1,000 at the recommended 9x leverage | $387,217 |
| Highest leverage the worst trade would have survived | 18.2x |
Profit factor means dollars won for every dollar lost. The amounts are compounded over the test period in the backtest, which is why they grow so fast with leverage. The same compounding works against you in a losing phase.
Two things stand out. First, the profit factor on the unseen part (2.81) did not fall below the searched part (2.53). That is the most important check in the whole report, because it shows the settings were not just fitted to the noise of the searched months. Second, the worst trade of the year would have survived up to 18.2x leverage. The report recommends 9x, roughly half of that limit, to leave room for a move that is worse than anything in the test period.
What you trade when you trade gold
Gold is quoted in US dollars per troy ounce, usually under the symbol XAU or XAUUSD. It reacts to interest rates, the strength of the dollar, inflation data and fear in other markets. That mix makes gold move in waves that can last hours or days, and it is one reason why a trend following strategy on the 1 hour chart can work on gold at all.
A bot does not buy physical gold. It trades a perpetual contract that follows the gold price. Several crypto exchanges list such contracts, and they can be traded with margin and with leverage, long or short. You never take delivery of metal. You only gain or lose the price difference between entry and exit, minus fees and funding.
Why a bot for gold?
Gold reacts to news at any hour. A rate decision in the United States, a weak jobs report or a sudden crisis can move it while you sleep. A person cannot watch the chart all day, and most people who try end up trading on impulse. A bot follows the same rules on every candle, without fear and without boredom.
The rules are what matters. A bot with bad rules simply loses money faster. That is why M Alpha Core starts with the test, not with the bot. You only switch on a bot after you have seen how its exact settings would have performed on a full year of gold data, and how they held up on the part of the year the search never saw.
How the gold scan works
M Alpha Core has one built in strategy, M Alpha Signal. The scan does not invent a new strategy for every market. It searches for the settings of that one strategy that fit gold best. That keeps the search honest: fewer moving parts mean fewer ways to fit noise.
- You type the symbol, choose the 1 hour chart and a date range of about one year.
- The scan server loads the market data and tests thousands of settings on the first 65 % of that year.
- The best settings are then run on the last 35 %, without any further changes. This is the unseen part.
- For every result the report calculates the profit with and without leverage, the worst move against a single trade and the highest leverage that move would have allowed.
If the unseen part looks much worse than the searched part, the settings probably found patterns that were pure chance. You then do not trade them. If the unseen part holds up, as it did in the gold example above, the settings have passed the hardest part of the test. Read more about this split on backtest on unseen data and in the guide to out of sample testing.

Leverage on gold, in plain numbers
Gold moves less in percent than most coins. That makes leverage tempting. The report answers the question that matters before you choose any leverage: how far did the price ever move against a single trade during the test period? From that move it calculates the highest leverage the trade would have survived without being liquidated. For the gold example this limit was 18.2x.
The limit is not a target. A future move can be larger than anything in the test period. The report therefore suggests a leverage well below the limit, and you decide. The difference in the table above shows how much leverage changes the outcome: $2,446 without leverage, $46,664 at 5x. In a bad phase the same factor works in the other direction. If you want to try the arithmetic yourself, use the leverage and liquidation calculator.
Where your gold bot trades
Gold trades as a perpetual contract on several of the ten exchanges M Alpha Core supports, for example Binance, Bybit, Bitget, OKX, Gate and MEXC. The app shows which exchanges list a market. Which products you may trade in your country is decided by the exchange, so please check its terms before you start.
Your bot runs on your own small server, not on ours. It trades with your own API key on your own account, and every bot uses its own sub account. Our server only runs the scan and calculates the signal with exactly the settings from your scan.
Set up a gold trading bot step by step
- Install the app. M Alpha Core runs on Windows 10 and 11, on macOS 11 or newer (Apple Silicon and Intel) and on Android 10 or newer. Get it on the download page. One Standard license covers one computer and one phone, Pro covers three devices in any mix.
- Scan gold. Type XAU or the gold symbol of your exchange in the scan screen. Pick a time frame and a date range, then start the scan. It runs on our scan server, so you can close the app or put your phone away while it works.
- Read the report. Look at the number of trades, the profit factor on the searched part and on the unseen part, the result with and without leverage, the worst move against a single trade and the leverage that move would have allowed. Open the chart and look at every trade, the losers included. The methodology page explains how each figure is calculated.
- Rent a small server and start your bot. The app walks you through renting a small server for about $12 a month and sets it up for you. Your bot first runs as a dry run: it only writes down what it would do and sends every step to your Telegram.
- Connect your exchange with a trading only key. Open the API settings of an exchange that lists gold, for example Binance, Bybit, Bitget or OKX. Create an API key that may trade but may not withdraw. The key is stored in the protected vault of your device and on your own server. Our scan server never sees it. The security page explains how keys, servers and the control panel are protected.
- Go live when you are ready. A practice bot stays a practice bot, so for real money you set the bot up once more without the dry run tick. From then on it trades on your own account, and you can set it to long, short, reverse or stop with one tap in the app or in the control panel in your browser.
Most people need one afternoon for the whole setup. The app shows one screen per step and always shows what comes next. The built in assistant explains every screen if you get stuck.

By hand, own script or M Alpha Core
There are three common ways to trade gold with rules. None of them is right for everyone. This table shows the practical differences.
| What matters | By hand | Own script | M Alpha Core |
|---|---|---|---|
| Testing many settings | Slow, a few settings per evening | Possible, if you write and maintain the code | Thousands of settings per scan on our scan server |
| Test on unseen data | Rarely done | Only if you build the split yourself | In every report: search on 65 %, test on the last 35 % |
| Leverage risk in numbers | Guesswork | Only if you calculate it | Worst move inside a trade and the leverage that would have survived it |
| Trading around the clock | Only while you watch the screen | Needs your own server and monitoring | Your bot on your own server, checked every minute by a watchdog |
| Programming needed | No | Yes | No, you tap through the app |
| Who holds the exchange key | You | You | You, in the vault of your device and on your own server |
| Cost | Your time | Your time plus a server | From $49 a month plus a small server for about $12 a month |
If you are weighing M Alpha Core against other bot tools, our side by side pages cover M Alpha Core vs 3Commas, M Alpha Core vs Pionex, M Alpha Core vs Cryptohopper and M Alpha Core vs Gainium.
Risks and limits
- A backtest is history. The gold numbers above describe one past year. Gold can behave differently next year, for example in a long sideways phase.
- Leverage cuts both ways. Compounding with leverage grows fast in good phases and shrinks just as fast in bad ones.
- Gaps and weekends. The underlying gold market pauses at the weekend. A contract that follows it can jump when trading resumes, and a stop cannot always be filled at the price you set.
- Fees and funding. Every trade costs fees, and perpetual contracts charge or pay funding. Many small trades can eat a thin edge.
- Exchange rules. Whether you may trade gold contracts, and with which leverage, is set by your exchange and your country.
The app helps with these limits. A watchdog checks every bot every minute and restarts one that stops. If a position runs toward liquidation, you get a warning at half the way and a critical one at three quarters. Every Sunday the app compares what the bot would have made on its own with what really happened on your account.
What a gold bot costs
The app costs $49 a month in the Standard edition. You also need a small server for about $12 a month, a free Telegram account for your trade messages and about $5 of credit for the built in assistant, which lasts around a year with normal use. There is no contract: you can cancel the license and the server every month. Your trading money stays on your own exchange account.
Frequently asked questions
Can a trading bot trade gold?
Yes. Gold trades as a perpetual contract on several crypto exchanges. M Alpha Core scans it like any other market, and your bot trades it on an exchange that lists it.
Do I buy real gold with the bot?
No. The bot trades a contract that follows the gold price. You gain or lose the price difference, and no metal is delivered.
Which time frame did the gold scan use?
The example on this page used the 1 hour chart and all the data Binance had for the contract, 336 days up to November 12, 2026. You can choose other time frames and ranges in the scan.
What does a profit factor of 2.81 mean?
In that part of the test, the strategy won 2.81 dollars for every dollar it lost. It was measured on the 35 % of the year the search never saw.
Is the gold result a promise?
No. All figures come from a backtest on past market data. They show how the settings would have performed, not how they will perform.
Which leverage should I use on gold?
The report shows the highest leverage the worst trade of the test would have survived, 18.2x in this example, and suggests a value well below it. You decide.
Can my bot go short on gold?
Yes. The strategy trades long and short, and you can also switch a bot to long, short, reverse or stop by hand.
Which exchanges offer gold contracts?
The app shows it per market. Examples are Binance, Bybit, Bitget, OKX, Gate and MEXC. Availability in your country is set by the exchange.
Can the bot withdraw money from my account?
No. The bot only needs an API key with the right to trade. Withdrawals stay switched off.
Do I need to keep my computer on?
No. Your bot runs on your own small server around the clock, so your computer and phone can stay off.
Related pages
All figures come from backtests on past market data. No result is a promise of future profit. Trading, especially with leverage, involves high risk. M Alpha Core is a software tool, not investment advice.