Skip to content
Module 1 / 2
  1. What is a chart
  2. Japanese candlesticks
  3. Support and resistance: how to mark zones
  4. Trend, market structure and range

Trend, market structure and range

Trend and market structure: how to label highs and lows from a lookback window, measure range height in ATR, and reject setups that contradict the label.

Why separate trend, structure and range0:00 / 10:00
Illustration for lesson: Trend, market structure and range
4 / 8
Author
Zordon Intelligence Sp. z o.o.
Updated
10 min read
Structure sources
2

Why separate trend, structure and range

This lesson is for someone who already understands candle anatomy and can mark a support and resistance zone, but cannot yet name the environment they are trading in. You will find two things here: a rule for labelling highs and lows from a fixed window, and a way to compare the height of a range with the typical volatility of the instrument. Every threshold given below is a convention you may change — not a law of the market.

Without these two measurements, analysis comes down to adjectives. “The market is trending” says nothing about where to place the invalidation, and “a wide consolidation” says nothing about whether the stop will fit below typical noise. The point of labelling the environment is to reject setups, not to make yourself feel more certain.

How to label highs and lows from a lookback window

A trend label is only useful when two people looking at the same chart reach the same conclusion. That condition is met by a procedure based on a lookback window, not by judging “it is obvious at a glance”. The notation below uses illustrative numbers — the order and the logic matter more than the specific value of n.

n           = lookback window width in candles      (illustrative number: n = 5)
swing_high  = a candle whose high is above the highs of the n candles before and the n candles after it
swing_low   = a candle whose low is below the lows of the n candles before and the n candles after it
HH          = swing_high higher than the previous swing_high
HL          = swing_low higher than the previous swing_low
label       = uptrend when the last two swing highs give HH and the last two swing lows give HL

The steps, in this order:

  1. Choose one timeframe and write it into your plan (illustrative number: H4). A label from H1 and a label from D1 are two different pieces of information, so changing the timeframe in the middle of a series invalidates the comparison.
  2. Fix n before the first measurement. A narrower window catches more swings and more noise; a wider window produces fewer labels, but more stable ones. Changing n after a loss is fitting to the outcome, not calibrating.
  3. Mark the swings from the oldest candle rightwards, comparing each candidate with the neighbourhood on both sides.
  4. Compare each swing with the previous swing of the same type and record the result as HH, HL, LH or LL. The mere presence of a high peak means nothing yet — what counts is its relation to the previous one.
  5. Skip the last n candles. Their extremes are not yet confirmed on the right-hand side, so the label describes the structure from n candles ago, not current price. This is the most common source of the illusion that “the structure just changed”.
  6. Write the label using one of four terms: uptrend, downtrend, no structure or transition phase. No structure is a fully valid outcome, not a failed analysis, and a transition phase is a signal to wait — not to guess the direction.

Add one decision that most plans stay silent about: whether you take extremes from candle closes or from wicks. Both versions are acceptable, but only one may apply throughout the whole test. Mixing the two within a single analysis produces contradictory labels on the same chart.

Four environment labels and the playbooks they allow

LabelMeasurement conditionPlaybook allowed in the plan
Uptrendthe last two swing_high values give HH and the last two swing_low values give HLentries in line with the direction, after a pullback, with invalidation below the last HL
Downtrendthe last two swing_high values give LH and the last two swing_low values give LLas above, in the opposite direction
No structurethe window produces neither a new HH with HL nor a new LH with LLreactions at the range edges or the breakout — one of these rules, chosen in advance
Transition phasemixed structure: a new HH without a new HL, or the reversesmaller position size and waiting for confirmation

The label is a filter, not a forecast. It does not say where price will go — it says which setups you should not consider. If the label does not match your setup, there is no trade; that is the entire operation.

On the Warsaw Stock Exchange, and also on index CFDs, the session context comes into play: an H4 label built in the middle of the European session may describe an impulse that ceases to exist after London closes. That is why you calculate the label after the interval closes, not while it is still running.

Measuring the range: height in ATR units

“Wide” and “narrow” mean different things on WIG20 and on an exotic pair, so a verbal description is not enough. The height of the range is divided by volatility to give a number that travels between instruments. You will find the definitions of True Range and ATR in the lesson Multi-timeframe — top-down analysis; here it is enough that ATR describes the average volatility of a single candle.

range_top    = the highest high in the measurement window
range_bottom = the lowest low in the measurement window
height       = range_top − range_bottom
ATR(n)       = the average True Range of the last n candles
RATIO        = height / ATR(n)

Take n = 14 (an illustrative number) — the same period used by the lessons on indicators and on multi-timeframe analysis. If your instrument has a different session rhythm, record the n you use in your worksheet so that RATIO is always calculated the same way.

The buckets below are an illustrative convention. Recalculate the distribution of RATIO on your own instrument and see where your ranges fall — only then do the thresholds mean anything to you.

RATIOWhat it describesPractical consequence
below 2a range narrower than a few typical candlesprobably noise; do not build a plan with a sensible invalidation on it
2–6a range that is readable relative to volatilitya candidate for playing the edges or the breakout — in line with the label
above 6a range wider than several typical sessionsthe distance to the edge is large; size the position from the stop, not from how pretty the chart looks

Measure RATIO together with the label and at the same moment — after the interval closes. A range measured on a candle that is still forming is understated by all the volatility that has yet to appear.

Worksheet: fill it in with your own data

Copy the table into a spreadsheet and update it after every closed interval. The columns are empty on purpose — only what you measure on your own instrument has value. You fill in the last two columns after exiting a position; without them you cannot check whether the label filter changes anything at all.

DateInstrumentTimeframeMeasurement window (candles)Structure labelRange heightATR(n)RATIOAllowed playbookSetup in line with the label (yes/no)Result (R)

After a dozen rows, compare two groups: trades that agreed with the label and trades that contradicted it. Record the result in R-multiples so that rows from different instruments can be compared. This is not a test of how effective the strategy is — it is a test of whether your label genuinely filters out worse conditions, or merely sounds reasonable.

When structure says “do not trade”

Four conditions, each stated as a rule. Meeting any one of them means skipping the setup or postponing the analysis — not “entering with a smaller size”.

  1. No confirmed swing high or swing low in the window. If the last n candles allow you to confirm neither an HH nor an HL, you have no label. Without a label you have no criterion for agreement, so there is nothing to compare after the fact.
  2. The label contradicts the direction of the setup. Going long where the last two swing_high values give LH and the last two swing_low values give LL is trading against the structure. That is not “a better price”, it is a different distribution of outcomes.
  3. RATIO below the threshold in your plan (illustrative number: 2.0). With a range that tight, the stop sits close to the entry and the cost of spread and slippage eats the reward-to-risk relationship. Measure that cost before you decide the range is “tight but reliable”.
  4. Changing the timeframe, n or the source of extremes during the test. If the label does not fit an open position and you “switch over” to another chart, you are already measuring something else. Record it as a process violation and go back to the parameters you wrote down at the start of the series.

The order of operations is the opposite of intuition: you reject first, then you plan. Record your rejections too — without them you cannot tell discipline from fear of entering.

Common mistakes when reading structure and range

  • Labelling a trend from two or three candles instead of a sequence of swings within a fixed window.
  • Confusing a correction with the end of a trend — a correction does not break the structure; only the absence of a new HH together with a new lower HL does.
  • Playing the range edges where structure is producing new HH and HL — in a trend the edge often fails to hold, and the stop sits exactly where the market comes back to.
  • Changing the definition after a losing streak — that is fitting the process to the outcome, not “adapting to the market”.
  • Measuring range and ATR on an incomplete session — the first and last minutes of trading distort both the height and the volatility.
  • Treating “no structure” as an absence of information — it is a fully valid label that rules out an entire family of setups.

Measurable exercise

Choose one instrument and one timeframe. Decide and write down n, and whether you take extremes from closes or from wicks. For 20 sessions, after the last candle of the day closes, fill in a row of the table above: the structure label, the height of the most recent range, the ATR and the RATIO.

After 20 rows, calculate three numbers: how many times the label changed between two consecutive measurements, how many times the setup contradicted the label, and how many times RATIO fell below your plan’s threshold. If the label changes almost every other day, the n window is too narrow for that instrument, or you are measuring on too low a timeframe. It is better to fix the definition now than after twenty trades; the lesson journal and review describes how to keep such metrics.

What distinguishes a trend label based on measurement from one drawn by eye?

Common questions

Is a range always the same thing as a consolidation?

In everyday language, often yes. In measurement, a range means no new confirmed high and low within the window, while consolidation is sometimes used more broadly to include structures that are narrowing. What matters is that one definition applies throughout the test — otherwise you are comparing two different phenomena.

How long should the lookback window be?

Whatever you write in your plan and keep unchanged. The n = 5 given in this lesson is an illustrative number. On a higher timeframe a smaller window is usually enough; on a lower one you need a larger window to filter out noise. Check on your own sample at which n the labels stop jumping between consecutive measurements.

Is a trend line mandatory?

No. A trend line is an optional visual description; what carries weight is the swings, the label and the range measurement. A line drawn backwards so that it fits the last wick is a fit to history, not analysis.

Why divide range height by ATR when the height is visible on the chart?

Because judging something as wide or narrow depends on the instrument and on your mood, while a quotient does not. Dividing range height by ATR brings different instruments into a single unit of volatility, so you can compare them with each other and across sessions. Only from that number can you work out whether your setup rejections were accurate or merely cautious — without a recorded value there is nothing to compare, and a 'narrow range' stays an impression you cannot improve.

Advertisement

Key takeaways

  • A trend is a sequence of confirmed higher highs and higher lows, while a range is the absence of that sequence within a fixed window. The lesson gives you a rule for labelling structure from a lookback window and a way to measure range height in ATR units. Four labels — uptrend, downtrend, no structure and transition phase — determine which playbooks you are allowed to consider. Every threshold is a convention you can change, not a law of the market.

Structure sources

The material is based on source documents. Variable values — fees, limits, regulatory figures — are worth checking at the source before making a decision.

Disclaimer

  • Educational material. Not investment advice or a recommendation. Trading involves the risk of losing capital.
  • The materials are educational. They are not investment advice or a recommendation within the meaning of financial instruments trading regulations. Numbers in examples are illustrative unless a measurement date and source are given.

Who writes this and how we check it

The materials are written and verified by Redakcja Kurs Tradera — the rules are described on about the site: every number has a source, and we show gaps openly. Report a factual error via contact — corrections are described in the content.

Course progress 0 / 8
Next →

Progress is stored only in this browser (localStorage) — there is no account and no copy on the server. Clearing site data will remove it. Manage your data