Trading rule builder with instant backtest
Pick an instrument, combine up to 4 conditions from 18 indicators and see at once how the rule would have traded the daily history.
For education and research. A signal is the output of a fixed rule applied to past prices, not advice, and every result here is before spreads, fees and slippage.
Build a rule
Conditions (all must hold, up to 4)
Save as an alert
Members can save a rule and get a message when it fires after a daily close. Sign in
A saved rule is checked after every daily close on the chosen instrument; when it fires you get a message through your notification settings (Telegram or e-mail).
The five setups written as rules
| Setup | Rule (long side) | |
|---|---|---|
| Trend following | Exponential moving average (50) crosses above Exponential moving average (200) and ADX (14) is above 20 | -0.12R |
| Trend pullback | Close is above Exponential moving average (200) and RSI (14) crosses above 40 | +0.08R |
| Donchian breakout | Close crosses above Donchian high (55) | -0.02R |
| Mean reversion | ADX (14) is below 20 and Close is below Lower Bollinger Band (20) and RSI (14) is below 30 | +0.01R |
| MACD momentum | MACD line crosses above MACD signal line and MACD line is above 0 | 0.00R |
Backtest figures are the setups' own, both sides, pooled over all instruments. Load one into the builder:
Indicators you can use
| Indicator | What it measures |
|---|---|
| Close | The daily close. |
| Simple moving average | Average of the last n closes: trend direction and a common support or resistance. |
| Exponential moving average | Average that weights recent closes more, so it reacts faster than the simple one. |
| RSI | Momentum on a scale of 0 to 100; above 70 is often called overbought, below 30 oversold. |
| MACD line | Difference between the 12- and 26-day exponential averages. |
| MACD signal line | 9-day exponential average of the MACD line. |
| MACD histogram | MACD line minus its signal line. |
| Upper Bollinger Band | The n-day average plus two standard deviations. |
| Lower Bollinger Band | The n-day average minus two standard deviations. |
| Bollinger middle band | The n-day average at the centre of the bands. |
| ADX | Trend strength from 0 to 100, without direction; above 25 usually counts as a trend. |
| ATR in % of price | Average true range as a share of the close: how far the price moves in a day. |
| Stochastic %K | Where the close sits in the high-low range of n days, from 0 to 100. |
| Stochastic %D | 3-day average of %K. |
| CCI | Distance of the typical price from its average, in units of mean deviation. |
| Rate of change | Percent change over n days. |
| Donchian high | Highest high of the n days before the current one. |
| Donchian low | Lowest low of the n days before the current one. |
Source: European Central Bank, MetalpriceAPI, Binance. Updated Nov 26, 2026. End-of-day price. Daily closes from the sources above; setups, backtests and results calculated by Investember. All sources and their status
How a rule is tested
A rule fires on the daily close where all of its conditions, up to 4, hold together after not holding on the close before. The entry is that close; a trigger while a trade is open is ignored.
Each trade has a stop at the chosen multiple of the 14-day ATR and a profit level at the chosen multiple of that risk; a trade that reaches neither closes after 60 bars. On coins the levels can be reached inside the day, on currencies and metals only by a close.
The test uses the full daily history the site holds and no trading costs. A rule tuned until it looks good on the past usually does worse afterwards; the simpler the rule and the more instruments it holds up on, the more its record says.
About the rule builder
The builder keeps apart three things that are often mixed up: the idea, the rule and the result. The idea is yours. The rule is a precise list of up to 4 conditions on 18 common indicators with fixed exits, so anyone could apply it to a chart and reach the same trades. The result is what that rule did on the daily history of the chosen instrument, one of 42 here.
Two habits make backtests misleading. One is tuning: trying periods and thresholds until the past looks good, which rarely survives the future. The other is judging by hit rate alone: with a profit level at twice the risk, 33.3% is enough to break even, and a rule that wins more often can still lose money if its wins are small.
Each trade exits at its stop, at its profit level or after 60 bars, and costs are not counted. Read the trade list as well as the totals: a result carried by two lucky trades is weaker than one spread over many years. The setups on the signals page show what fixed, untuned rules look like across all instruments.
Questions and answers
Is the backtest free?
Yes. The builder and the backtest work without an account on all 42 instruments, with up to 60 tests an hour from one address. Saving a rule as an alert needs a free account, and the AI suggestion counts against a monthly allowance for members. The test runs on the site's own stored prices, so nothing is sent to an outside service.
Which indicators can a rule use?
18 of them: the close, simple and exponential moving averages, RSI, the MACD line, signal and histogram, the three Bollinger Bands, ADX, ATR as a share of the price, the stochastic %K and %D, CCI, the rate of change and the Donchian channel high and low. Periods can be set within the ranges in the table; MACD keeps its standard 12, 26 and 9.
When does a rule fire?
On the daily close where all of its conditions hold together after not holding on the close before, so a rule that stays true for weeks fires once. A cross is true only on the day of the cross. A rule has at most 4 conditions. A saved rule is checked once a day after the close, and a new rule is first checked on the next close.
What hit rate does a rule need?
It depends on the profit level. A trade that can win twice its risk breaks even at a hit rate of one in three (33.3%); one that wins as much as it risks needs one in two. That is why the average result per trade in R says more than the hit rate alone. Spreads and fees are not included in either figure.
Which rules suit today's markets?
At the latest close, 16 of the instruments here are trending and 12 are ranging, according to the regime table on the signals page. Trend rules tend to do better in the first group and mean reversion rules in the second, but a backtest over many kinds of markets says more than the regime of one day.