You can spot divergence by eye. To test it, you need rules that pick out the same divergences every time. By the end of this lesson, you'll have a written answer to four questions. Which swings count, and how far apart can they be? Which RSI setting, and how big a difference? And what triggers the trade? Then we'll check one divergence against the whole rule. As always, every number here is an example of a choice.
1 of 8
What you'll learn
- Define the swings. A swing high is known only 3 candles later.
- Set the distance. Compare swings a set number of candles apart.
- Fix the RSI setting. Use one length and a minimum difference in points.
- Add a trigger, stop and target. Write each as a price rule before you look.
- Act only on confirmed swings. Earlier action uses prices you couldn't have known.
Exercise
- Write your divergence rule on one page: swing rule, distance, RSI setting and minimum difference, trigger, stop and target.
- Use it on two sessions of the 5-minute practice chart in Wildflower, or any platform, and list every divergence it finds.
Practise this on Wildflower's free practice chart. It needs a free account.
Join waitlistQuick check
1. Why can't you act on a 3-candle swing high the moment it forms?
2. Why set a minimum RSI difference, such as 3 points?
3. For a bearish divergence, where does the example rule put the stop?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
To put divergence into rules, define which swings count and how far apart, the RSI setting and minimum difference, and the trigger, stop and target.
- Swings: a A peak on the chart: a candle whose high is above the highs of the candles on both sides of it.More in the glossary is higher than the 3 candles on each side, so it's only known 3 candles later. Compare each swing high with the one before, 5 to 30 candles apart.
- An indicator from 0 to 100 that compares the size of recent gains with recent losses.More in the glossary: one setting (here 14, on the closes). Read it on the two swing candles. The second must be at least 3 points lower (Indicator settings and why defaults are not magic).
- Trigger: once the swing is confirmed, a close below the low of the second swing-high candle, within 5 candles. An order that closes a trade if price reaches a level you set against it. It aims to limit the loss, but in a fast market it can fill at a worse price.More in the glossary: 2 The smallest step a price can move. On many stock index futures that’s 0.25 of a point.More in the glossary above the second high. An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary: the lowest low between the two highs.
- Acting before a swing is confirmed uses prices you couldn't have known (A backtest mistake: using a price the strategy couldn’t have known yet at the moment it made its decision.More in the glossary).
- This is the rule for regular bearish When price and an indicator such as the RSI disagree: price makes a new low or high and the indicator doesn’t.More in the glossary; the bullish rule is the mirror.
Worked example
Made-up numbersOne divergence, checked
Made-up numbers · A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary, $1.25 a tick · RSI 14
- Swing highs 5,314.75 and 5,315.75, 17 candles apart; RSI 88.5 then 74.8
- Confirmed on a close of 5,312.75, below the swing candle's low 5,314.25: sell
- Stop 5,316.25: 14 ticks = $17.50 (1R). Target 5,308.50: 17 ticks, about 1.2R
Before costs. The entry came 3 points below the high: the price of acting only on what could be known.
Your turn
Drill5-minute candles · a swing high needs 3 candles after it
Read more
Swing highs and swing lows, Turning a feeling into a rule, and the trading guide RSI divergence and MACD divergence.
Trading is risky. You can lose money. This lesson explains how a strategy is built and tested. It isn't advice, and it doesn't say the strategy works.