Risk management

Stop loss, take profit and break-even: how a trading robot protects every trade

Published September 21, 2026 · By the AUREUM team · 9 min read

A stop loss is the order that closes a trade on its own when the loss reaches a limit you set in advance, and a take profit is the one that closes it when it reaches the profit you’re aiming for. Moving to break-even means shifting that stop to your entry price once the trade is already in profit, so you exit with no loss on price if the market turns. Here you’ll see all three on a gold trade worked out in dollars and in points.

What is a stop loss and what is a take profit?

In MetaTrader 5, every trade can carry two exit levels. The stop loss (SL) is the price at which the position closes on its own if the market goes against you: below the entry on a buy and above it on a sell. The take profit (TP) is the price at which it closes on its own if the market goes your way: exactly the other way around.

Neither one is mandatory, but without a stop loss your maximum loss isn’t decided by you. It’s decided by the market.

A gold example with numbers

Say you buy gold (XAU/USD) at $3,300.00, with a stop loss at $3,270.00, a take profit at $3,360.00 and 0.05 lots. It’s an illustrative example, not a recommendation.

On gold, 1 lot is 100 ounces: every dollar the price moves is worth $100 per lot and, with 0.05 lots, $5. And since most brokers quote gold with two decimals, 1 point is $0.01: every dollar of price movement is 100 points.

Stop lossTake profit
Level$3,270.00$3,360.00
Distance in dollars$30$60
Distance in points3,0006,000
Result with 0.05 lots−$150+$300

The math is distance in dollars × 100 ounces × lots: 30 × 100 × 0.05 = $150 of loss and 60 × 100 × 0.05 = $300 of profit, before costs. On a $5,000 account, hitting the stop would cost 3%. The 0.05 lots also happens to be the size the AUREUM guide gives for a 5,000 balance; the stop distance in the example, on the other hand, is made up and doesn’t describe how AUREUM places its own stops.

The risk-reward ratio of this trade

You risk $30 of price movement to go after $60: the risk-reward ratio is 1:2. One winner makes up for two losers, so, before costs, you don’t lose money as long as you’re right on more than one in three trades (33.3%). How win rate and ratio combine, and why you can make money while being right less than half the time, we explain with numbers in win rate and risk-reward ratio.

Stop loss on the broker’s server vs mental stops

A stop can live in three places. If it’s sent with the order, it’s registered on the broker’s server, which closes the trade when the price touches it. A mental stop only exists in your head. And a virtual stop lives inside a program that watches the price and sends the close order when it gets there; some robots use it so they don’t reveal their levels to the broker.

The difference shows when something goes wrong. The server-side stop keeps protecting you even if your computer shuts down, your internet drops or MetaTrader 5 closes; the mental one depends on you being at the screen and not hesitating, and the virtual one on the program staying on and connected.

A robot has an edge here: it can send the stop and the target with the same entry order, so the trade is protected from the moment it opens.

The AUREUM guide puts it in writing: open trades keep their stop loss and their target on the broker’s server, not on your computer, and a dropped connection doesn’t leave them unprotected. If you disable the robot, it stops opening trades and managing the open ones, but those don’t close on their own: they carry on “with the fixed stop loss and take profit they have at the broker.” That’s why the guide advises that, if you’re going to pause for a few days, you do it when there are no open trades, or close them yourself first.

How to check it in MT5

In the Trade tab of the Toolbox (Ctrl+T), each position shows the S/L and T/P columns. If you see a price there, that level is registered with the broker; if the cell is empty, there’s no stop on the server.

Where to put your stop loss: four ways to set the distance

There are four common approaches, and they all try to keep the stop outside the normal noise of the price and within what you’re willing to lose.

Fixed in points. Always the same distance, for example 3,000 points ($30). As a percentage of price. With 1% and gold at $3,300, the stop would sit $33 from the entry. Both are simple, but neither looks at whether the market is calm or choppy.

By volatility: what ATR is

ATR (Average True Range) measures how much the price moves on average in each candle, usually over the last 14, also counting the jumps between one candle and the next. If it reads $10 on the one-hour chart, a stop “at 2 ATR” would sit $20 from the entry; if the market gets choppy and ATR rises, the stop moves further away with it.

By structure. The stop goes behind a level the market has respected: below the last relevant low on a buy, or above the last relevant high on a sell. If the price breaks it, the idea behind the trade probably no longer holds.

MethodProsCons
Fixed in pointsSimple and predictableToo tight on choppy days, too loose on calm ones
Percentage of priceAdjusts to the price level of goldAlso ignores current volatility
Volatility (ATR)Adapts to market noise on its ownThe loss in money changes: you have to recalculate the lot size
Structure (highs and lows)Exits when the idea stops making senseMore subjective; stops pile up at the obvious levels

Whatever the method, first decide where the stop makes sense, then how much money that represents, and only then what lot size makes it affordable (the formula, with worked examples, is in how to calculate lot size in gold). Moving the stop closer so you can open a bigger lot is the fastest way to get shaken out by noise.

Break-even in trading: when to move your stop to entry

Moving to break-even means shifting the stop loss to the entry price once the trade has moved in your favor. In the example: gold rises to $3,330 and you move the stop up from $3,270 to $3,300. If the price turns, you exit with no loss on price instead of losing $150. A robot can do this on its own when the trade reaches a certain distance in profit.

When it helps and when it hurts

It helps when the trade has already covered a good part of the way and you don’t want to keep risking money on it. It hurts if you do it too early, because price rarely moves in a straight line. Imagine gold reaches $3,330, pulls back to $3,299.50 (stopping you out at your entry) and then climbs to $3,360: without break-even you’d have made $300; with it, nothing. Repeated many times, it cuts exactly the winners a 1:2 ratio relies on to make up for the losers.

Why break-even isn’t exactly zero

A stop at the entry price leaves the trade at zero on price, not in your account. The commission is still charged (with the $7 per lot round turn from the example in our costs article, that’s $0.35 on 0.05 lots) and, if the trade has stayed open overnight, so is the swap. That’s why some traders leave the stop a few points in profit: with 0.05 lots, 7 points ($0.07 of price movement) cover that $0.35.

The spread matters too: if it widens in the middle of the night or on a news release, the stop can trigger earlier than the chart suggests and close a few points worse. We break it down in spread, slippage and commissions.

Break-even and trailing stop aren’t the same thing

Break-even is a one-time move: the stop jumps to the entry and stays there. A trailing stop follows the price at a set distance while the trade is in profit, locking in a growing share of the gain until the market pulls back by that distance. If break-even is a single step, a trailing stop is a staircase. More in what is a trailing stop.

What a stop loss can’t guarantee: gaps and slippage

A stop loss sets the level that triggers the close, not the price at which it’s filled: when the price touches it, it becomes a market order and fills at the first available price. That difference is slippage, which we break down in the article on trading costs. On gold it’s usually just a few points, but it grows around major economic releases, such as US inflation or jobs data, and at the Monday gap, the jump with which the market reopens after the weekend.

The gap has a simple explanation: the gold market closes on Friday night and doesn’t reopen until Sunday night, so whatever happens in between shows up all at once in the first price. With numbers: on Friday gold closes at $3,290 and on Sunday it reopens at $3,262. Your stop at $3,270 can’t be filled at 3,270, because that price never existed: it triggers near $3,262. That’s $8 worse and $40 more in losses with 0.05 lots, $190 in total instead of $150. The same thing happens on a smaller scale with news: the price jumps several dollars in seconds and the stop fills wherever it finds a counterparty.

That doesn’t make the stop useless: without it, the loss would stay open and keep growing. But when you work out how much you’re risking, think of the distance to the stop plus a margin for slippage, which no broker eliminates completely.

Common stop loss mistakes when trading gold

Almost every bad experience with stop losses on gold comes from the same four decisions:

Stop loss, take profit and break-even aren’t there to make you more money, but to give every trade a known worst case: they don’t remove risk, but they make it measurable.

Risk warning

A stop loss limits the planned loss, but it doesn’t guarantee the exit price or prevent losing streaks. Leveraged gold trading carries a high risk and you can lose the capital you deposit. The examples in this article are illustrative, and the AUREUM figures we quote come from a simulation (backtest), not a live account. This content is educational and is not financial advice.

AUREUM: stop and target on the broker’s server

Software for MetaTrader 5 that trades gold in your own account. According to its guide, open trades keep their stop and target at the broker even if the connection drops. Its 2020–2026 backtest is published with its drawdowns included: a maximum drawdown of 21.84% over 439 trades. It’s a simulation, not a live account.

See the full report →