Backtesting & Strategies

Larry Williams' 9.1 setup: rules, variations and what to test

The trend setup built on the 9-period exponential moving average, explained step by step with its strengths and weaknesses.

By Equipe TessTradePublished 3 min read
Backtest: teste uma estratégia passo a passo

Watch the lesson: Backtest: teste uma estratégia passo a passo

The 9.1 setup is one of the best-known setups among Brazilian traders. Attributed to American trader Larry Williams and popularized in Brazil by market educators, it uses a single indicator, the 9-period exponential moving average, to identify the moment a trend gains strength. Its simplicity is exactly what makes it so widespread, and also what makes testing it essential before any real use.

The idea behind the setup

The 9-period exponential average reacts quickly to changes in price direction. The 9.1 looks to enter when that average changes slope: if it was falling and starts rising, an upward move may be beginning. The trade follows the trend while the average keeps pointing the same way.

If you are new to the logic of averages, read the article on the moving average first.

Buy rules (most common version)

  1. Trigger: the 9-period EMA, which was falling, turns up at the close of a candle.
  2. Entry: a buy stop one tick above the high of the candle that turned the average.
  3. Initial stop: one tick below the low of that same candle.
  4. Exit: when the average turns down again, closing the trade on a break of the low of the candle that turned the average (or trailing the stop candle by candle, depending on the variation used).
  5. Cancellation: if price does not break the high before the average turns again, the entry is cancelled.

For shorts, the rules are mirrored: the average, which was rising, turns down; entry is below the low of the candle that turned it and the stop above its high.

The variations: 9.2, 9.3 and 9.4

  • 9.2: with the average already rising, enters on continuation when a candle closes below the previous candle's low, buying on a break of that candle's high.
  • 9.3: also a continuation setup, using two closes below a reference close before the new entry.
  • 9.4: handles the average turning against the trade and quickly turning back in its favor, allowing a re-entry without waiting for a full new cycle.

The details of the variations change from source to source. What matters is choosing one version, writing the rules objectively and testing it exactly as it will be traded.

Strengths and weaknesses

  • Strong in trends: when the market moves directionally, the 9.1 usually captures a good part of the move with relatively short stops.
  • Weak in ranges: in directionless markets the average turns up and down repeatedly, producing streaks of small losses.
  • Timeframe-sensitive: the same setup behaves very differently on the 5-minute, 60-minute and daily charts.

A higher-timeframe trend filter (for example, only trading in the direction of a longer average or of ADX) is one of the most common ways to reduce signals in ranging markets. But filters must be tested too: they remove bad signals and some good ones.

What to test before trading it

  • On which instrument and timeframe the setup had positive expectancy, including costs and slippage.
  • The largest drawdown and the longest losing streak.
  • Whether the result depends on a few exceptional trades.
  • How it behaved during long ranging periods.

These are exactly the questions a backtest answers. The step-by-step is in the backtesting guide, and the metrics to judge the result are in the risk management guide. On TessTrade you apply the average and other trend indicators to the chart and test the rules on historical data.

Educational content. Popular setups do not guarantee results; performance varies by instrument, period and execution. Nothing in this article is investment advice.

Educational content. Not investment advice. Trading involves risk of loss, and past results do not guarantee future results.