Building a Rule-Based Trading Setup
By Chad Smith, Director of Research & Analysis · Updated
On this page
In this lesson you will learn
- Explain why objective rules matter more than chart opinions
- Write rules for context, setup, trigger, stop, target and management
- Test that a rule is specific enough to apply consistently
- Build a complete example setup from earlier lessons
The earlier lessons gave you tools: support and resistance, trends, patterns, moving averages, oscillators, volatility, Fibonacci and multiple timeframes. Tools are not a strategy. This lesson shows how to combine a few of them into a written, rule-based setup that you can follow consistently and test.
Why rules beat opinions
Looking at a chart and deciding "this looks like a good buy" feels like analysis, but it changes with your mood, your last trade and the news you just read. Two traders, or the same trader on two days, will reach different conclusions.
Clear rules fix that. They let you:
- Take the same trade every time the same conditions appear.
- Measure results, because every trade followed the same logic.
- Find what to improve, because you can change one rule and compare.
- Reduce emotional decisions during the trade.
The six parts of a setup
A complete setup answers six questions:
- Context: in which market conditions does the setup apply?
- Setup: what has to happen before you look for an entry?
- Trigger: exactly what event opens the trade?
- Stop-loss: where is the trade idea wrong?
- Target: where, or how, do you take profit?
- Management: what, if anything, do you do while the trade is open?
Add a size rule linked to your risk plan, and a list of conditions when you do not trade, such as major news.
The specificity test
Every rule should pass a simple test: could another trader, reading only your rule, find exactly the same trades on the same chart?
- "Buy in an uptrend" fails. What defines the uptrend?
- "Buy when price is above the 200-period SMA on the daily chart and the 50 SMA is above the 200 SMA" passes.
- "Enter on a strong candle" fails.
- "Enter on the close of a 1-hour candle that closes above the previous candle's high" passes.
Some judgment is fine, for example in drawing a support level, but keep it as small as possible and describe how you make the judgment.
Keep it simple
Each tool you add is another rule, and each rule is another chance to fit the past rather than find something that works going forward. This problem is called overfitting. A setup with three or four clear conditions is easier to follow and test than one with ten.
Choose tools that measure different things. One trend tool, one level tool and one timing tool cover more ground than three oscillators, as the oscillators lesson explained.
A complete example setup
Example setup (illustrative rules, not a recommendation): a trend pullback setup for major pairs, swing trading.
Context
- Daily chart: price above the 200-period SMA, and the 50-period SMA above the 200.
- No high-impact news for either currency within the next 4 hours.
Setup
- 4-hour chart: price pulls back to touch or come within 10 pips of the 50-period EMA.
- The pullback reaches at least the 38.2% Fibonacci retracement of the last swing up.
Trigger
- 4-hour candle closes above the high of the previous candle.
- Enter with a market order at the open of the next candle.
Stop-loss
- 5 pips below the lowest low of the pullback, or 1.5 × the 4-hour ATR below the entry, whichever is further.
Target
- Close half at a 1:1.5 risk/reward ratio.
- Move the stop on the remaining half to the entry price, and close it at the previous swing high or if a 4-hour candle closes below the 50 EMA.
Size
- Risk 1% of the account, calculated with the position size calculator.
No-trade conditions
- Friday after 16:00 UTC, the week of major holidays, and spreads above 2 pips.
Each line is specific. A different trader could apply it and find the same entries.
Walking through a trade
Worked example (illustrative numbers): EUR/USD on the daily chart is above the 200 SMA and the 50 SMA is above it. On the 4-hour chart, price pulls back from 1.0980 to 1.0905, near the 50 EMA at 1.0900, which is about a 50% retracement. The next candle closes at 1.0928, above the previous high of 1.0921. Entry at the next open, 1.0929.
The pullback low is 1.0895, so the structure stop is 1.0890, 39 pips away. The ATR is 22 pips, so 1.5 × ATR is 33 pips. The structure stop is further, so it is used. Half the position targets 1.0929 + (39 × 1.5) pips, about 1.0988. The rest aims for the swing high at 1.0980, which is slightly below the first target, so in this case the trader simply exits the whole position near 1.0980. Rules like this sometimes need a tie-breaker, and finding those cases is part of refining a setup.
Write it down and keep a checklist
Turn the rules into a pre-trade checklist with tick boxes. Before each trade, tick every line. If any box is empty, there is no trade. This simple habit is one of the most effective ways to stop impulsive entries.
Record each trade in a journal, with a screenshot, so you can later check whether you followed the rules. The risk course explains this in the lesson on a trading journal.
Rules are a hypothesis
A written setup is not proof of anything. It is a hypothesis that this combination of conditions has positive expectancy. The next lesson shows how to test that hypothesis on past data before you risk money on it.
Key takeaways
- Rules make trades consistent, measurable and less emotional.
- A complete setup defines context, setup, trigger, stop, target, management, size and no-trade conditions.
- Every rule should be specific enough for another trader to find the same trades.
- Keep rules few and choose tools that measure different things to avoid overfitting.
- A written setup is a hypothesis to test, not a proven strategy.
Check your understanding
1. Which rule is specific enough to test?
- A. Buy when the trend looks strong
- B. Buy when the 4-hour close is above the 50 EMA and the RSI crosses back above 40
- C. Buy when it feels like the bottom
- D. Buy on good news
Show answer
B. Buy when the 4-hour close is above the 50 EMA and the RSI crosses back above 40
2. What is the purpose of a context filter?
- A. To decide whether the market conditions suit the setup
- B. To choose the broker
- C. To set the spread
- D. To make every trade a winner
Show answer
A. To decide whether the market conditions suit the setup
3. Why should a setup have few rules?
- A. More rules always improve results
- B. Each extra rule adds a chance of fitting the past instead of finding a real edge
- C. Brokers limit the number of rules
- D. Rules are not needed at all
Show answer
B. Each extra rule adds a chance of fitting the past instead of finding a real edge
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit