Market structure: highs, lows and trend explained
By Oalgo · Last reviewed
Market structure is the pattern of a chart's swing highs and swing lows. Higher highs and higher lows show an uptrend, lower highs and lower lows show a downtrend, and a close beyond the last swing level against that pattern is read as the structure changing.
How do you read market structure?
#Start from the swings. A swing high is a candle whose high is not lower than the highs of the N candles on each side, and a swing low is the mirror. Support and resistance shows how to find them and why each one is known only N candles late. Then compare each swing with the one before it of the same kind.
| Swing | Kind | Price | Compared with the swing before of the same kind | Label |
|---|---|---|---|---|
| 1 | Low | 100 | First low | – |
| 2 | High | 110 | First high | – |
| 3 | Low | 104 | Above 100 | Higher low |
| 4 | High | 115 | Above 110 | Higher high |
| 5 | Low | 108 | Above 104 | Higher low |
| 6 | High | 121 | Above 115 | Higher high |
| 7 | Low | 112 | Above 108 | Higher low |
| 8 | High | 118 | Below 121 | Lower high |
| 9 | Low | 109 | Below 112 | Lower low |
Swings 3 to 7 are higher highs and higher lows, which is an uptrend by this definition. Swing 8 is the first lower high. Swing 9 goes below the last swing low (112), the first lower low. A candle that closes below 112 is the break that many people call a change of character.
What are a break of structure and a change of character?
#- A swing level is broken when a candle closes beyond it. A level that has been broken once is not counted again.
- Break of structure (BOS): a break in the direction of the current trend, such as a close above the last swing high while the trend is up.
- Change of character (CHoCH): a break against the current trend, such as a close below the last swing low while the trend is up.
- In the version Oalgo AI builds, the trend is set by the last break: up after a close above a swing high, down after a close below a swing low. Counting higher highs and lower lows, as in the table, can give a different answer.
The names are used by many people with slightly different definitions. Always ask how a chart or a rule defines a swing and a break.
How do people use market structure in rules?
#- A trend condition: take long entries only while the last break was up, and short entries only while it was down.
- An entry on a break, such as a close above the last swing high, as in a trend following strategy.
- An exit or a smaller position when a break goes against the trade.
- Both parts together: a higher high and a higher low in a row before a rule counts the trend as up.
What can market structure not tell you?
#Structure describes the past swings. It does not say where the next one will be. In a sideways range, swings alternate and breaks flip the trend again and again. A different N gives a different set of swings, so the same chart can show an uptrend with one N and a range with another. Labelling swings on a chart you already know uses what happened later, which is lookahead bias.
In Oalgo you can tell Oalgo AI your market structure rule in your own words, 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
- What are support and resistance levels?Support is a price level where a fall has stopped before, resistance one where a rise has. Learn how to define a level so a rule can use it, and its limits.
- False breakout: what it is and how to define oneA false breakout is a move past a level that does not hold. Learn two exact definitions a rule can use, a worked example, and why it is only known afterwards.