Most traders have a gold trading plan in their head: “buy the dips in an uptrend, cut losers fast, don’t trade the news”. It sounds fine until you try to give it to an EA, and the EA asks questions you never answered. Which dip? How fast? Which news? A gold trading plan you can automate is just a plan with every one of those answers written down.
Writing it is useful even if you never automate it: the vague parts are exactly where manual traders lose money. Here’s what has to be in it, a template you can fill in, and a plan that’s already written. Not financial advice.
Why most trading plans can’t be automated
An EA can’t interpret. Every rule has to be a yes or no it can check on a chart: a price, a time, an indicator value, a number of trades. “Strong trend” isn’t a rule. “Price above the 200-period moving average on H1” is. “Small risk” isn’t a rule. “0.5% of the balance per trade” is. If you can’t write a rule so that two people would apply it the same way, an EA can’t apply it either.
The 10 rules an automatable gold trading plan needs
- Market and timeframe. XAUUSD, and the chart the rules are read on (for example H1).
- Direction. Buys only, sells only, or both. Some gold strategies are long-only on purpose.
- Entry. The exact condition that opens a trade, and whether it’s a market order or a pending one.
- Stop loss. Where it goes, set when the trade opens. A fixed distance or one based on volatility, like a multiple of ATR.
- Exit. Take profit, trailing stop, time-based exit, or a mix.
- Position size. In money at risk, not in lots: the lot comes from the stop distance and the risk.
- Trading hours. When it can open trades and when it must not, including Fridays and the daily rollover.
- Maximum trades. Per day and open at the same time. This one rule alone stops a strategy from turning into a grid.
- Account limits. A daily loss limit and a drawdown level where everything stops.
- Review. When you look at the results and what would make you switch it off. Decided before you start, not during a losing streak.
From vague to automatable
| Rule in your head | Rule an EA can follow |
|---|---|
| “Trade with the trend” | Only buys while price is above the 200-period moving average on H1 |
| “Don’t risk too much” | 0.5% of the balance at risk per trade, from the stop distance |
| “Cut losers fast” | Stop loss at 2 × ATR from the entry, set when the trade opens |
| “Avoid crazy times” | No new trades between 23:00 and 01:30 server time, close everything Friday evening |
| “Don’t overtrade” | Maximum 2 trades a day, 1 open at a time |
| “Stop if it goes wrong” | Stop trading for the day after −2% and review after a 10% drawdown |
The numbers in the right-hand column are examples to show the format, not a recommendation. The point is that each one can be checked.
A template you can fill in
- Market / timeframe: ____
- Direction: buys / sells / both
- Entry condition: ____
- Stop loss: ____ (set at entry)
- Exit: take profit ____ / trailing ____ / time exit ____
- Risk per trade: ____% of balance
- Hours: opens between ____ and ____; flat before the weekend: yes / no
- Max trades: ____ a day, ____ open at once
- Daily loss limit: ____%; full stop at ____% drawdown
- Review: every ____ weeks; switch off if ____
Then backtest it before you trust it. Here’s how to backtest an EA on MT5 without fooling yourself, and if you’re new to gold on MT5, start with how to trade gold on MT5.
What a written plan stops you from doing
The rules that matter most are the boring ones: maximum trades, stop at entry, flat before the weekend. They’re what stop a reasonable strategy from turning into a grid or martingale on a bad day, and what stop you from “giving it a bit more room” after three losses. A plan written before the losing streak is the only one you’ll follow during it.
One gold plan that’s already written
If you’d rather start from a plan that’s already automated, here’s mine, with every one of the ten rules decided. It’s the gold slot of my portfolio EA, and it’s free as the DoIt Gold Portfolio Module:
- Market and direction: XAUUSD on H1, buys only.
- Stop and exit: an automatic stop loss and take profit on every trade, with a trailing stop.
- Size: fixed lot, fixed money risk or percent of balance; percent of balance is the default.
- Hours and limits: at most two trades a day, no new trades in the quiet hours around the daily rollover, closed at the end of the day and on Friday evening.
- Account limits: daily loss and drawdown guards at account level.
At 0.01 lots its average stop is around $18 and its worst historical losing streak around $138, which is why I’d run it with $1,000 or more, or on a cent account.
Timing is part of any gold plan; I wrote about why in session-based gold trading.
Why a plan you don’t change is worth more than a clever one: in Darwinex Zero Is My #1. I Still Wouldn’t Start There. I explain why the programs that pay you over years reward a strategy you leave alone.
Backtest your plan on the data you’ll trade. I use Axi‘s XAUUSD history for my tests. Affiliate link; I may earn a commission if you open an account through it. And if your plan is good enough to grow with allocated capital, read the rules first: Axi Select allows your own system, but a third-party EA only for generating signals, with trades placed manually.
I write my plans down, test them and share what breaks. Join the DoItTrading newsletter to get the next one.
The rule values in the examples are illustrations, not recommendations. Trading gold involves a high risk of loss. This is not financial advice.
Frequently Asked Questions
What should a gold trading plan include?
Ten things: market and timeframe, direction, entry, stop loss, exit, position size in money at risk, trading hours, maximum trades, account loss limits and when you’ll review it. Each one written so it can be checked as yes or no.
Can I automate my own gold trading strategy?
Yes, if every rule is exact enough that two people would apply it the same way. Vague rules like “strong trend” or “small risk” have to become numbers before an EA can follow them.
What is a good risk per trade for gold?
It depends on your account and how many strategies you run, but decide it in money at risk, not lots, and let the stop distance set the lot. Many traders use well under 1% per trade on gold because it moves fast.
Why does a trading plan need a maximum number of trades?
Because it stops a strategy from adding trade after trade on a bad day. Without that limit, a reasonable plan can behave like a grid or martingale exactly when the market goes against it.
Is there a free gold EA with a written plan?
Yes. The DoIt Gold Portfolio Module trades XAUUSD on H1, buys only, with an automatic stop loss and take profit on every trade, at most two trades a day, and daily loss and drawdown guards. It’s free on doittrading.com and on the MQL5 Market.