cTrader

AlgoWay Blog

Guides, manuals and platform references.

Core
JSON & Alerts
MT5 / Expert Advisors
Errors
Integrations
Other Publications
AlgoWay Strategy Lab

MT5 Breakeven Plus Offset: Configure Profit Lock Rules

Published December 6, 2026 · AlgoWay · View Markdown

Separate entry, protected-profit stop and activation threshold on a price ladder

A stop at entry and a stop beyond entry are two different instructions. If you want the second, changing how far price must travel before breakeven activates does not, by itself, create a positive offset.

For MT5 automation through AlgoWay, use the EA's Profit Lock feature when the aim is to move Stop Loss beyond entry after a profit threshold. The current guide distinguishes this from ordinary breakeven, which moves SL to entry. In the EA Inputs, Enable Profit Lock factor switches on the feature, Delta trigger sets the activation distance, and Profit Lock after XX pips sets the profit distance to protect. These are separate choices, as documented in the current AlgoWay MT5 EA guide.

This applies to the EA-managed position controls in the AlgoWay TradingView-to-MT5 workflow. Keep the terminal and EA running and connected. Do not assume another destination exposes the same settings or accepts an invented breakeven-offset JSON field.

Choose the destination of the stop first

Write the desired rule in two parts: when protection becomes eligible, and where the stop should go. For example: after 20 pips of favorable movement, protect 3 pips beyond entry. The 20-pip value describes the trigger. The 3-pip value describes the proposed protection. Swapping them would describe a different trade-management rule.

A positive protected distance also changes direction with the position. For a BUY it lies above entry; for a SELL it lies below entry. It does not mean adding a positive number to every entry price.

Work through both sides in price units

The following is an illustrative calculation, not an execution test or a recommended setting. Assume a pip is 0.0001, the entry is 1.10000, the activation distance is 20 pips and the protected distance is 3 pips.

  • BUY: 20 pips above entry corresponds to 1.10200. A stop protecting 3 pips would be 1.10030.
  • SELL: 20 pips below entry corresponds to 1.09800. A stop protecting 3 pips would be 1.09970.

In both cases the proposed stop is 17 pips behind the illustrative activation price. That arithmetic alone does not establish that the broker will accept it. Current Bid and Ask, minimum stop distance, the tick grid and any freeze restriction still matter at modification time.

Check the EA's pip interpretation for your instrument before copying the example. A gold or index quote is not obliged to share a forex pip convention. The MT5 pip-conversion guide explains how unit mismatches can make the intended distance ten times too large or small.

Configure one rule you can verify

  1. Open Inputs on the AlgoWay EA instance managing the intended demo account. Confirm that your installed build exposes the Profit Lock controls in the current manual.
  2. Enable Profit Lock, enter the intended activation distance and set the smaller protected-profit distance. Record all three values so that the test has an unambiguous expected result.
  3. For the first isolated check, avoid combining several stop-moving rules. If ordinary breakeven or trailing is also enabled, record those settings and test their combined behavior separately rather than assuming a priority order.
  4. Use a broker-valid demo position and observe the actual Stop Loss in MT5 before and after the threshold becomes eligible. Check the EA and trade logs if the expected modification does not appear.
  5. Repeat the observation for the opposite direction and for any symbol with a different pip convention. Verify the resulting stop price, not just the input numbers.

This procedure verifies the configuration you intend to deploy. It does not claim that a particular demo result has already been measured. For help locating and saving Inputs, see changing MT5 EA settings and presets.

Why a positive offset can still fail to protect profit

First, the modification may be rejected. For ordinary Bid/Ask-based instruments, a long position's SL is checked against Bid and a short position's SL against Ask. A proposed stop beyond entry can still be too close to the current closing quote. MetaQuotes explains stop placement and modification in its trade execution guide; use the AlgoWay invalid-stops checklist to diagnose the returned error instead of repeatedly resending the same level.

Second, an accepted stop price is not a guaranteed exit fill. A fast move or gap can change the eventual execution price. Third, a price gain is not necessarily a net account gain after commission and other charges. The cost-adjusted breakeven calculation answers that separate question.

Keep three observations in the test record: the configured activation condition, the stop price the broker actually accepted, and the eventual exit fill if the stop is reached. They answer different questions. A checkbox proves only that you checked a box.

Last updated: December 6, 2026