Skip to main content

Research method

Rule-based entry: conditions you can write down and test

A rule-based entry states, before the bar arrives, exactly which conditions must be true to open a trade and which order opens it. 292 readings in the TradersWeek archive use the idea, most often inside a full mechanical system and beside moving averages and stop-losses.

Output
Signal
Input
Closed price bars, volume and any indicator the conditions read
Horizon
Any bar interval; set by the bars the conditions are evaluated on
Best use
Turning a chart idea into an entry that can be coded, backtested and followed without reinterpretation

The archive describes how entry rules are written, confirmed and paired with orders and exits across 292 readings from the 1980s to the 2020s. TradersWeek has not attached its own reproducible backtest to this card, so nothing here is a performance claim.

  • An entry is rule-based when every condition can be answered yes or no from bars already closed, so two people reading the same chart open the same trade on the same bar.
  • Conditions combine with AND (all must hold) or OR (any may hold); each AND removes trades and each OR adds them, so the combination is a design choice, not wording.
  • A setup grants permission, a trigger picks the bar, a confirmation must also hold; keeping the three separate shows which one is doing the work.
  • The order type belongs to the rule: a market order at the signal close, a limit below it or a stop beyond it produce different fills and different trade lists.
  • In the archive rule-based entries sit most often beside mechanical trading systems (56 readings), moving averages (40) and stop-losses (39).

The graph · 8

How the method is built, and where it has been read

Depends on

Read in the archive24 of 292 readings

1985Evaluating ARIMA envelopes as entry, exit and stop rulesTime series and forecasting1987What crossover and directional entry rules actually compareEntry and exit rules1988Visual trend rules need one testable procedureTrend and mean reversion1988Early entry as the session switch for an opening-range breakoutEntry and exit rules1988Half-day bars, a midpoint gate, and a bar-based trailEntry and exit rules1989Evaluating inside-day filters on opening-range breakoutsEntry and exit rules1989A joint contraction setup as the arming switch for an opening-range breakoutEntry and exit rules1989Point-and-figure setup and session-average entry windowsEntry and exit rules1989Next-session opening-range rules after a bear hookEntry and exit rules1989Same-session exits from multi-day open-close codesEntry and exit rules1989Packaging two-bar reversals into testable entry and exit rulesEntry and exit rules1989A close-to-close sequence is a bias label, not a triggerEntry and exit rules1989Inside-day contraction as a same-session open-to-close ruleEntry and exit rules1989Even-number first penetration as a construction problemEntry and exit rules1990Policy-auction spread as a weekly equity regime filterIntermarket and spreads1990Staged sleeves from one equity forecastPortfolio construction1990Moving-average direction, range penetration, and a dollar stopEntry and exit rules1990Evaluating five-day soybean open-to-close rulesEntry and exit rules1990Slow stochastic construction for index pullback entriesEntry and exit rules1990Rally and reaction day signals as a mechanical stock systemEntry and exit rules1990Constructing three-session rally and reaction volume signalsChart patterns1991Constructing steppable currency games with stop alertsSystem design1991Write a staged RSI exit book with trailing stopsEntry and exit rules1991Half-cycle average contact as an amplitude-ratio testCycles and spectral analysis

What makes an entry testable

A discretionary entry says "buy when the pullback looks finished". A rule-based entry says which bars count as the pullback, what "finished" means as a comparison, and on which bar and at which price the order goes in. The test is simple: given the same data, would a second person, or a program, open the same trade on the same bar? If the answer depends on judgement, part of the rule is still in the trader's head.

Each condition is a comparison that returns yes or no: the close is above the 200-bar average, RSI crosses above 50, volume is higher than its 20-bar average, the ADX has risen for three bars. Conditions are then combined. With AND all of them must be true on the same bar; with OR any one of them is enough. Groups can be nested: a trend condition AND (an oscillator cross OR a break of the prior high).

Setup, trigger and confirmation

Most written entries have three parts. The setup grants permission: trend direction, a quiet range, an oversold reading. The trigger picks the bar: a cross, a break of a level, a reversal bar. The confirmation is a further condition that must also hold, such as volume, a second timeframe or a close beyond the level rather than a touch. Kept separate, each can be removed in a test. Confirmation has a cost: a later entry at a worse price, and some valid trades dropped with the false ones. Breakout rules have their own card.

Two pitfalls

Rules that cannot be coded. "Strong volume", "a clean pattern" or "the market feels heavy" have to become numbers and comparisons before they can be tested. If a condition cannot be written down, the backtest of the rest of the rule says nothing about the trades you actually take.

Look-ahead. A condition that uses information not yet available when the order would be sent tests a rule nobody can trade: an average that includes the unfinished bar, or a swing low confirmed three bars later but marked on the bar itself. A smaller relative: filling a market order at the very close that produced the signal, which in live trading is known only once the bar has finished.

Parameter set

The choices that change the entry

combine
Combination

Whether all conditions must hold on the same bar (AND) or any one is enough (OR), and how groups are nested.

Default: All conditions (AND)Each AND removes trades and each OR adds them; with many conditions the sample of trades can become too small to judge.
confirm
Confirmation

A further condition beyond the trigger: volume above average, agreement on a higher timeframe, a close beyond the level.

Default: None — a separate conditionConfirmation arrives later and at a worse price; filters added after looking at the chart fit the past.
evaluation
Evaluation bar

When the conditions are checked: on the closed bar, or intrabar while the bar is still forming.

Default: Closed barIntrabar conditions can be true and then false within the same bar; a test on closed bars does not describe them.
order
Entry order

Market at the signal, a limit order below a long signal (above a short), or a stop order beyond it, with a distance and an expiry.

Default: Market at the signal closeA limit misses the moves that never pull back; a stop buys strength and can fill on a gap; an order with no expiry fills long after the setup is gone.

What 292 readings in the archive do with rule-based entries

The TradersWeek research archive links rule-based entries to 292 readings: 14 in the 1980s, 84 in the 1990s, 72 in the 2000s, 108 in the 2010s and 14 in the 2020s. In 14 of them the entry rule itself is the main subject; elsewhere it is the part of a system, a pattern or a checklist that turns a view into an order.

The most frequent companions are mechanical trading systems (56 readings), moving averages (40), stop-losses (39), breakout systems (23), trailing stops (20), the stochastic oscillator (16), candlestick patterns (16), trend following (15), RSI (15), opening-range breakouts (14) and checklists (11).

The readings return to four themes:

  • Separate gates. Readings from 1989 to 2020 split the entry into a setup that arms it, a trigger that fires it and a confirmation that can still refuse it: an inside day arming an opening-range break, an oversold screen waiting for a weekly confirmation, a crossover that only assigns a trend until a second pullback fires.
  • The order is part of the rule. Readings from 1996 to 2020 write the fill path out: a buy stop above a narrow bar instead of entering on it, a delayed stop with a limited life, one-triggers-the-other pairs that place the entry and the first stop together, and a reminder from 2008 that an unfinished bar is not yet a bar.
  • An entry is unfinished without its exit. Readings from 1989 to 2020 hold that an entry rule is complete only when the stop, the target or time exit and the case for standing aside are written with it, so a blank scan becomes a planned decision to stay in cash.
  • Written rules can be audited. Readings from 1987 to 2012 restate published entries as inequalities and code: shared terms cancel and show what a crossover actually compares, a recoded timing system reproduces its published signals plus extra ones, and an incompletely coded confirmation produces a different trade list from the same rule.

Where it fits in a workflow

Write the setup, trigger and confirmation as separate conditions on closed bars, choose the combination and the entry order, and write the stop and the exit in the same pass. Test the rule, then remove one condition at a time to see what each adds. Pre-trade questions belong to the checklist card; testing the whole procedure out of sample, to the mechanical trading system card.

On the TradersWeek chart

Strategy Builder, part of the Pro plan at $30/month, has separate condition groups for long entry, short entry and their exits. A group is set to ALL conditions must be true (AND) or ANY condition can be true (OR), and groups can be nested inside groups. A condition can compare two values, detect a cross above or below, test a threshold or a range, check that a value has been rising or falling for a set number of bars, read the SuperTrend or Parabolic SAR direction, or mark a window around FOMC, CPI, NFP, GDP, ECB or BoJ releases. The inputs are price, volume and indicators with fixed lookbacks, such as SMA(200), RSI(14) or ADX(14). There is no NOT switch; an opposite comparison does that job.

Conditions are checked on closed bars. A market entry fills at the close of the signal bar, the optimistic case described above. A limit entry rests below a long signal close (above a short one) and a stop entry above it (below a short one), at a distance set in ATR, and can be cancelled after a set number of bars or left open; if the market gaps through the price, the fill is the bar's open. Only one pending entry per direction rests at a time, and new signals are ignored until it fills or expires.

The signal scanner, also Pro, works the other way round: its rules are fixed, and a signal needs at least 2 of them to fire together, a built-in form of confirmation.

Not investment advice. Historical behaviour of an entry rule does not guarantee future results.