How to Build a Trading System Around a Single Technical Indicator Like Moving Averages

Listen to this article

Every term I meet a fresh group of traders whose charts look like a child’s crayon drawing: six indicators, three oscillators and a cloud for good measure. When I ask what each one is for, the room tends to go quiet. So this lecture covers something better. We will work through how to build a trading system around a single technical indicator like moving averages, and do it properly.

The problem is not a lack of tools. The problem is a lack of rules. A moving average on its own will not make you rich. A moving average wrapped in clear entry rules, exit rules and risk controls, then tested honestly, gives you a system. A system is something you can measure, improve and trust.

By the end of this article you will know which moving average to choose and why. You will be able to write rules that leave no room for interpretation and size your positions sensibly. You will also know how to test the whole thing without fooling yourself. I have also included the traps that catch most intermediate traders, because knowing where the potholes are is half of driving well.

Table of Contents

  • Why Build a System Around One Indicator?
  • Step 1: Choosing Your Moving Average
  • Step 2: Writing Entry and Exit Rules With No Wiggle Room
  • Step 3: Risk Management and Position Sizing
  • How to Build a Trading System Around a Single Technical Indicator Like Moving Averages: Testing It Properly
  • Critical Warnings: Where Single-Indicator Systems Fail
  • Next Steps for Developing Your System
  • Frequently Asked Questions
  • Conclusion

Why Build a System Around One Indicator?

Let me start with a principle I repeat until students groan: you cannot improve what you cannot isolate. If your trades depend on five indicators agreeing, and your results are poor, which one is at fault? You will never know. With one indicator, every win and loss traces back to a single, measurable cause.

Moving averages are the natural starting point. They are simple to calculate and available on every platform. They also do one job reasonably well, which is to smooth price so the underlying trend becomes visible. If you want the formal definitions, Investopedia’s guide to moving averages is a sound reference.

Key benefits of a single-indicator approach

  • Clarity: every decision has one clear source.
  • Testability: fewer variables mean fewer ways to overfit your backtest.
  • Discipline: simple rules are easier to follow when you are losing money.
  • Speed: you can test variations in hours, not weeks.

Now the honest part. A moving average measures the past. It is a lagging indicator by design, so it will never catch the exact top or bottom. Your system has to accept that cost in exchange for catching the fat middle of a trend. If that trade-off makes you uncomfortable, it is better to find out now than with real money on the line.

A forex trading system's toucan looking at the camera with a smug expression, and a forex trading chart in the background

Step 1: Choosing Your Moving Average

Two decisions matter here: the type of average and the period. Students often treat these as cosmetic. They are not, because together they decide how fast your system reacts and how often it lies to you.

SMA vs EMA: what you are really choosing

A Simple Moving Average (SMA) weights every candle equally. An Exponential Moving Average (EMA) gives more weight to recent prices, so it turns faster. The lag figures make this concrete. A 50-period SMA has an average lag of roughly 24.5 bars, which is (n − 1) ÷ 2. An EMA of the same length reacts noticeably quicker.

  • Choose an SMA if you want fewer, slower signals and less noise.
  • Choose an EMA if you want earlier entries and can tolerate more false signals.

Picking a period that matches your timeframe

There is no magic number, despite what the forums claim. Common choices exist mainly because many traders watch them, such as the 20, 50, 100 and 200 periods. Short periods suit traders who want frequent trades. Long periods suit patient trend followers.

Here is a sensible starting point. On the daily chart, use a 20 EMA and 50 EMA crossover. This is still a single-indicator system, because it is one indicator family viewed at two speeds. The slow line defines the trend and the fast line times the entry. I like it for teaching because the logic is obvious: when short-term momentum overtakes the longer-term average, the trend may be turning.

Ask yourself: what happens to the number of trades if I halve both periods? (Answer: trade frequency rises sharply, and so do spread costs and whipsaws. Test it and see.)

Step 2: Writing Entry and Exit Rules With No Wiggle Room

This is where most “systems” quietly collapse. A rule such as “buy when the trend looks strong” is a mood, not a rule. A proper rule could be handed to a stranger, or a computer, and it would produce the same trade every time.

A worked example: the EUR/USD daily crossover

  1. Long entry: the 20 EMA closes above the 50 EMA on a completed daily candle. Enter at the next candle’s open.
  2. Short entry: the 20 EMA closes below the 50 EMA on a completed daily candle. Enter at the next candle’s open.
  3. Exit: close the position when the opposite crossover occurs, or when the stop-loss is hit, whichever comes first.
  4. No re-entry in the same direction until a fresh crossover appears.

Notice the phrase “completed candle”. Mid-candle crossovers appear and vanish constantly. If you act on them, you are trading signals that never officially existed. I once had a student whose live results were dreadful compared with his backtest. The cause was that he entered intraday on crosses that had evaporated by the close. Expensive lesson; cheap fix.

Why exits matter more than entries

Entries get all the attention, but exits decide your profit. Trend-following systems commonly win well under half of their trades. They survive because the winners run much further than the losers. If you cut winners early “to be safe”, you remove the one feature that makes the system work.

Step 3: Risk Management and Position Sizing

A signal tells you when to trade. Risk management tells you how much. Get the first wrong and you lose a trade. Get the second wrong and you can lose the account.

Setting the stop-loss

Waiting for the opposite crossover can mean a very large loss in a sharp reversal. So add a protective stop as well. Two clean options are:

  • Place the stop beyond the most recent swing high or low.
  • Use a multiple of the Average True Range, such as 2 × ATR(14). This is a risk tool rather than a signal, so the system stays single-indicator where it counts.

Position sizing: the 1% rule worked through

Risk a fixed percentage of your account per trade, typically 0.5% to 2%. Here is the arithmetic for a $10,000 account risking 1%:

  1. Maximum risk = $10,000 × 1% = $100
  2. Stop distance = 80 pips
  3. Value per pip = $100 ÷ 80 = $1.25
  4. On EUR/USD, one standard lot is roughly $10 per pip, so the position size is 0.12 lots (rounded down).

Why round down? Rounding up is how “1% risk” quietly becomes 1.3%. Over a string of losses, that difference compounds. Mathematics is a patient creditor, and it always collects.

Ask yourself: if your system loses ten trades in a row, which is entirely normal for trend following, how much of your account remains at 1% risk? (Answer: about 90.4%. At 5% risk it would be about 59.9%. Now you see why the percentage matters.)

How to Build a Trading System Around a Single Technical Indicator Like Moving Averages: Testing It Properly

Rules on paper are a hypothesis. Testing turns them into evidence. This stage separates traders from gamblers with nicer charts.

A testing sequence that keeps you honest

  1. Split your data. Use, for example, 2012–2020 to develop the system and keep 2021 onwards untouched for validation.
  2. Include real costs. Add spread, commission and swap. A 1-pip spread looks trivial until a fast system trades 300 times a year.
  3. Record the right metrics: number of trades, win rate, average win versus average loss, profit factor and maximum drawdown.
  4. Test across pairs. A robust idea should behave reasonably on EUR/USD, GBP/USD and USD/JPY, not just one lucky market.
  5. Forward test on a demo account for at least two to three months before committing real capital.

What “good” looks like

Do not chase a high win rate. A trend-following moving average system with a 35% win rate can still be healthy if the average winner is three times the average loser. Profit factor gives you a useful yardstick: gross profit divided by gross loss. Anything consistently above 1.3 after costs, across multiple pairs, is worth pursuing.

Context matters too. The forex market turns over trillions of dollars a day, according to the Bank for International Settlements Triennial Survey. Major pairs are deep and liquid, which helps trend-following systems because spreads stay tight and price data is reliable.

Critical Warnings: Where Single-Indicator Systems Fail

I would be doing you a disservice if I only showed you the brochure. Here are the hazards I see most often, in rough order of how much money they cost.

  • Whipsaws in ranging markets. When price chops sideways, moving averages cross back and forth, producing loss after loss. This is not a bug; it is the price of admission. Budget for it.
  • Over-optimisation. Testing every period from 5 to 200 and picking the best is curve-fitting. If 21/55 works brilliantly but 20/50 and 22/56 fail, you have found noise, not an edge.
  • Ignoring costs. Many “profitable” short-timeframe systems become losers once spread and slippage are included.
  • Abandoning the system mid-drawdown. Most traders quit at the bottom of a losing streak, just before the next trend pays for it.
  • Adding indicators to “fix” losses. Every filter you add removes some bad trades and some good ones. Test each addition separately, or you are back to the crayon drawing.

One eccentric habit of mine is worth sharing. I keep a “boredom log” for sideways periods, noting every trade I wanted to take outside the rules. Reviewing it is humbling. It shows that most of my urges to override a system would have cost money.

Next Steps for Developing Your System

Once your base system is built and tested, you can develop it methodically. Change one thing at a time and retest each change.

  1. Test a trend filter: only take longs when price is above the 200 SMA. Measure whether drawdown falls more than profit does.
  2. Experiment with exits: compare the opposite-crossover exit with a trailing stop based on the 20 EMA.
  3. Try different timeframes: run the same rules on H4 and weekly charts and compare the stability of results.
  4. Automate it: code your rules into an Expert Advisor so emotion cannot touch execution.
  5. Keep a trading journal: record each live trade against what the backtest predicted.

A question to take away: if your system works on daily charts but fails on hourly charts, what does that tell you? Usually, it means costs and noise overwhelm the signal at lower timeframes. That is valuable knowledge, not failure.

Frequently Asked Questions

Can a single moving average system really be profitable?

Yes, but only with strict rules, sensible position sizing and realistic costs. Moving average systems tend to profit in trending markets and give some of it back in ranges. Over a long sample, the large trend winners need to outweigh the many small whipsaw losses.

Which is better for forex, the EMA or SMA?

Neither is universally better. EMAs react faster and suit traders wanting earlier entries. SMAs are smoother and produce fewer false signals. Test both on your chosen pair and timeframe, then pick the one whose results hold up across several markets.

What timeframe works best for a moving average crossover strategy?

Daily and H4 charts are good starting points for most intermediate traders. Lower timeframes generate more signals, but spread costs and market noise rise sharply. Higher timeframes produce cleaner trends with fewer trades.

How many trades do I need in a backtest?

Aim for at least 100 trades, and ideally several hundred across multiple pairs. Fewer than that and your results may simply reflect luck. Always validate on data you did not use during development.

Should I add more indicators if my system loses money?

Not automatically. First check whether costs, poor exits or position sizing are the real problem. If you do add a filter, test it on its own so you can measure its true contribution.

Conclusion

Learning how to build a trading system around a single technical indicator like moving averages teaches you the whole craft of system design in miniature. You choose the indicator for clear reasons and write rules a stranger could follow. You size every position with arithmetic rather than hope, and you test with honest data and real costs.

The moving average itself is not the edge. The edge comes from disciplined, consistent application of rules you have measured and understood. So open your platform, set up a 20/50 EMA crossover on a demo account, and write your rules down before you place a single trade. Keep a record of the results and judge your system by evidence rather than how you feel about it.

Test Your Knowledge
1. According to the article, why should you only act on moving average crossovers that occur on a completed candle?
2. Using the article's 1% risk example on a $10,000 account with an 80-pip stop on EUR/USD, what position size is recommended?
3. What does the article identify as the sign of over-optimisation when testing moving average periods?


Take a Random Walk
Not sure what to read next? Pick a level for a random article you haven't seen yet.