Forex Expert Advisor: What an EA Can and Cannot Do
A forex expert advisor is a program that trades your written rules on MT5. See what it automates, what it cannot judge, and where automated strategies fail.
11 min read
Read more →Lesson 02 of 6 · Strategy and System Building
24 min4 topics
Topic 1 of 4
"Buy the pullback in an uptrend" is not a strategy. It is a description of one, and the difference is that a strategy can be executed identically by someone who was not there when you thought of it. Everything in this track after this lesson — backtesting, forward testing, metrics — requires rules that are written down, and a surprising amount of trading failure is really the absence of that document.
A rule is unambiguous when applying it to a chart cannot produce two answers. The test is not whether it reads clearly; it is whether the words contain any judgement.
| Ambiguous | Unambiguous |
|---|---|
| In an uptrend | The last two swing highs and last two swing lows are both higher, using 3 candles each side |
| A significant level | The previous day's high, or a level touched three or more times in the last 100 candles |
| A strong candle | A body larger than the average body of the last 20 candles |
| Wait for confirmation | A close beyond the level on the H1 chart |
| When momentum fades | RSI(14) closes back below 60 |
| A reasonable stop | 1.5 ATR(14) beyond the entry candle's low |
Every phrase on the left feels perfectly clear while you are writing it. That is the trap: the meaning is in your head, not in the sentence, so the rule can be satisfied by whatever you happen to want at the time.
Good to know
A useful discipline: every rule must be checkable by looking at a chart and reading a number off it. If checking requires an opinion, the rule is not finished.
Four sections. The fourth is the one that gets skipped and the one that saves the most money.
Usually one line, because Track 5 already wrote it: risk a fixed percent of the current balance, derive lots from the stop distance, round down. Add the book-level caps — per currency, total open risk, used leverage — since those constrain whether this trade is allowed at all.
The conditions under which the strategy does not trade, even when a setup appears. This is where a strategy's real edge often lives.
Caution
A strategy with no standing-aside section will be traded in every condition, including the ones it was never meant for. Most of the losses that get blamed on a strategy's edge are really losses from running it where it does not apply.
The test that settles whether the rules are finished: give them to someone else, with a chart, and see whether they reach your decision.
Without a willing person, the next best version is to apply the rules yourself to the same ten charts a week apart, without looking at the first answers. Disagreements with your past self are the same evidence.
Note
Expect to fail this the first time, and expect the failures to cluster in the setup conditions rather than the trigger. The trigger is usually a number; the setup is usually where the adjectives are hiding.
Rules change — they should. What ruins the record is changing them silently, because then the results before and after are being pooled as though they came from the same strategy.
Keep a dated log. Four fields is enough:
| Field | Example |
|---|---|
| Date | 2026-09-24 |
| Version | 1.3 |
| What changed | Stop moved from 1.0 to 1.5 ATR |
| Why | 14 of the last 40 losses were stopped and then reached target |
The log has a second use that emerges after a few months: it shows whether you are developing a strategy or fleeing from drawdowns. A log with one change a quarter, each with a reason drawn from forty-plus trades, is development. A log with a change every week after a losing day is not, and nothing else in your records makes that as visible.
A forex expert advisor is a program that trades your written rules on MT5. See what it automates, what it cannot judge, and where automated strategies fail.
11 min read
Read more →What a fair value gap is, how to mark the three-candle gap on gold, what fill-rate claims do and don't prove, and how to test the zone before you risk money.
11 min read
Read more →Swing trading vs day trading compared with numbers: screen time, account size, spreads and swaps on a $2,400 example, and why neither style is more profitable.
10 min read
Read more →