4.1.2Entry, Exit and Filter Rules
Module 4.1 · Lesson 2 of 5Trading System Development

Entry, Exit and Filter Rules

What closes a trade that hits neither its stop nor its target?

You’ll be able to write the seven parts of a trading system, with loss, profit and time exits.

  • 4 min
  • 4 quick questions
  • Up to 40 XP
  • 9 animated cards
  • A worked example, step by step
  • A common myth, busted

Part of Module 4.1 · Trading System Development · Level 4 · Professional Practice · See the full course

Key takeaway

  • A complete trading system has seven parts: market and data, filter, setup, entry, exits, size and account limits.
  • Every trade needs a loss exit, a profit exit and a time exit.
  • Every part must earn its place in a test.
Lesson notesRead the whole lesson as text

The lesson in full

  1. Ana's exact rules say when to buy. A friend asks one question. What if a trade hits neither its stop nor its target for three months? Her rules have no answer. A complete system answers that question before it comes. In this lesson, you'll write the entry, exit and filter rules of a complete system. Then you'll measure what each part adds on real prices.

  2. A complete trading system has seven parts, each written as a rule. Market and data: which market, which chart and which prices. Filter: when the system is switched off. Setup: the conditions that must be true. Entry: what starts a trade. Exits: what ends it. Size: how much to risk. Account limits: when to stop for the day, the week or the month. Part seven holds the loss limits from Module 3.10.

  3. A filter is a condition that blocks trades in markets the system isn't built for. Ana tries “no buys while the price is below its 200-day moving average”. On EUR/USD daily prices from 2012 to 2021, her complete system took 71 trades. With the filter, it took 55.

    1. Trades removed: 71 − 55 = 16.
    2. Share removed: 16 ÷ 71 ≈ 23%.

    Fewer trades. But is the system better?

  4. An execution rule says when and how the order is placed. It can be the close, the next open or a limit order. A signal made by today's close can only be traded after it. So Ana buys at the next open.

    1. Say that's 3 pips worse on average.
    2. Her 0.02 lots pay US$0.20 a pip.
    3. 71 trades × 3 × 0.20 = US$42.60.

    A test priced at the close misses this: more than two US$20 losses.

  5. Every trade needs three exits. A loss exit: the stop, at the price that proves the idea wrong. Ana's is 2 ATRs below the entry. A profit exit: Ana's target at twice the stop distance. Module 4.2 adds a stop that follows the price. And a time exit: what closes this trade if nothing happens? Ana's answer is 20 trading days. In her test, 3 of 71 trades ended that way.

  6. Now measure what the filter adds. Same 10 years, same cost of 2 pips a trade.

    1. Without the filter: 71 trades, 38% won, −0.04 per US$1 risked.
    2. With the filter: 55 trades, 36% won, −0.11 per US$1 risked.

    The filter removed trades and made the result worse. A filter must improve the result and still leave enough trades. This one didn't, so Ana drops it. And neither version made money after costs.

  7. Professionals know that systems often lose money in the rules nobody wrote. Examples are the weekend gap, the trade that goes nowhere and a release the news rule forbids. A complete system answers every “what if” before it happens. And every filter also removes good trades. A filter chosen by looking at the losers of the same data is fitting the past. Choose it for a reason first, then test it once.

  8. Common mistake

    Myth: “Find a great entry, and the exits take care of themselves.” Truth: Ana's own test says otherwise. She kept her entry and tried 10 pairs of stop and target on the same years. The results ran from −0.15 to +0.18 per US$1 risked. So the entry alone says little about the result. And those 10 tries count as 10 versions.

  9. Key takeaway

    A complete trading system has seven parts: market and data, filter, setup, entry, exits, size and account limits. Every trade needs a loss exit, a profit exit and a time exit. Every part must earn its place in a test. Open your System page and add page 2. Write your filter, entry, three exits, size and limits, each as a yes or no line.

Quick check

  1. Eva's system takes 40 trades a year. Its next-open price is about 2 pips worse than the signal close. She trades 0.05 lots, US$0.50 a pip. What does that cost her in a year?
    1. US$40
    2. US$4
    3. US$80
    40 trades × 2 pips × US$0.50 = US$40. That's almost one of her US$50 losses each year, a cost the test must count.
  2. Ana's trade has been open for 20 trading days. It hasn't reached its stop or its target. What does her system say?
    1. Close it, as the time exit has come
    2. Hold it until the target is reached
    3. Move the stop closer to lock it in
    Her time exit closes any trade after 20 trading days. It answers the “what if nothing happens?” question before it comes.
  3. Leo copies a famous entry rule and says the exits hardly matter. What did Ana's test of one entry with 10 exits show?
    1. Results ran from losses to gains
    2. Results stayed almost the same
    3. Only the entry changed the result
    With her entry fixed, 10 pairs of stop and target ran from −0.15 to +0.18 per US$1 risked. The entry alone says little about the result.
  4. A test report reads: without the filter, 80 trades at +0.10 per US$1 risked. With it, 30 trades at +0.12. How should Ana read it?
    1. It earns less in total, from far fewer trades
    2. It earns more per trade, so the filter stays in
    3. It doubles the profit, so it has clearly worked
    Totals: 80 × 0.10 = 8.0 and 30 × 0.12 = 3.6 times the money risked. Per trade it's a little better, but the total falls by more than half. A filter must improve the result and still leave enough trades.

Words in this lesson