What are support and resistance levels?

By Oalgo · Last reviewed

Support is a price level where a fall has stopped before, and resistance is a level where a rise has stopped before. People draw both by eye, so two people can draw different levels on the same chart. For a rule to use a level, the level needs an exact definition.

Chart: the highs of sixteen example candles as a line. The swing highs are ringed, and a level starts at the candle where each one became known. Levels found with N = 2 are solid, the one found with N = 3 is dashed.HighN = 2N = 3Swing highKnown here
Example prices, made up for this page.

How do you define a level so a rule can use it?

#

One exact way uses swings. A swing high is a candle whose high is not lower than the highs of the N candles on each side of it. A swing low is the mirror: a low that is not higher than the lows of the N candles on each side. The last swing high is the resistance level and the last swing low is the support level. N is a setting you choose.

A swing can only be confirmed N candles after it happened, because the rule has to see that the next N candles did not go higher. A level therefore appears N candles late.

What does a worked example look like?

#

These are the highs of sixteen example candles: 100, 102, 104, 105, 107, 104, 105, 106, 103, 102, 104, 103, 101, 100, 99, 98.

SettingSwing highs found (candle: high, known at candle)Resistance level at candle 16
N = 25: 107, known at 7 · 8: 106, known at 10 · 11: 104, known at 13104
N = 35: 107, known at 8107

The same sixteen candles give a resistance level of 104 or of 107, depending on N. A seventeenth candle that closes at 105.5 closes above the level with N = 2 and below it with N = 3.

Why do two people draw different levels?

#
  • Line or zone: one person draws an exact price, another a band, such as 104 to 106.
  • Wicks or closes: a level can sit at the highest wick or at the highest close.
  • How many candles make a swing, which is the N above.
  • How many touches make a level: one, two or three.

How do people use support and resistance in rules?

#
  • Enter when a candle closes above the last swing high, which is the idea behind a breakout strategy.
  • Treat a candle that goes past the level and closes back inside as a false breakout.
  • Enter after a candle touches the last swing low and closes above it, with a stop just below the level.
  • Use a level from a fixed window instead of swings, such as the highest high of the last 20 candles, which is what Donchian Channels draw.

What can support and resistance not tell you?

#

A level describes where price has stopped before. It does not say that price will stop there again, and every level breaks at some point. A level that looks clear on a chart you already know was chosen with hindsight, which is lookahead bias. Levels drawn by eye cannot be tested, a definition can. Choose the definition first and test it on past prices.

In Oalgo you can tell Oalgo AI your support and resistance rule in your own words, with the N you want, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next