Skip to content
Wildflower
Join free
The strategy library

Free Trading School · Level 3 · Course 3.2

Putting divergence into rules

Lesson 65 of 179 in The strategy libraryModule 12: RSI divergence

Strategies · The strategy library

Putting divergence into rules

Wildflower Trading School · Lesson 3.2.12.3

Wildflower

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

  1. Write your divergence rule on one page: swing rule, distance, RSI setting and minimum difference, trigger, stop and target.
  2. 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 waitlist

Quick check

  1. 1. Why can't you act on a 3-candle swing high the moment it forms?

  2. 2. Why set a minimum RSI difference, such as 3 points?

  3. 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

Make a free account and we'll remember where you are, so “When it struggles” is waiting next time.

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 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.
  • : 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. : 2 above the second high. : the lowest low between the two highs.
  • Acting before a swing is confirmed uses prices you couldn't have known ().
  • This is the rule for regular bearish ; the bullish rule is the mirror.

Worked example

Made-up numbers

One divergence, checked

Made-up numbers · , $1.25 a tick · RSI 14

  1. Swing highs 5,314.75 and 5,315.75, 17 candles apart; RSI 88.5 then 74.8
  2. Confirmed on a close of 5,312.75, below the swing candle's low 5,314.25: sell
  3. 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

Drill

5-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.