Market structure: uptrend, downtrend and range
Recognize higher highs and higher lows, lower highs and lower lows, and sideways ranges.
Define swings
A swing high or low is a local turning point. Use a consistent rule, such as a high surrounded by two lower highs on each side. That definition requires future bars to confirm a swing, so do not mark it as known prematurely in a backtest.
Three market states
An uptrend is a sequence of higher swing highs and higher swing lows. A downtrend reverses that sequence. A range lacks sustained directional progression and often oscillates between boundaries.
Worked example
Swings at 100, 110, 104, 115 and 108 show rising highs and lows. A move below 108 may invalidate that particular higher-low structure, but it does not alone establish a downtrend.
Timeframe and ambiguity
M5 may be trending while H1 is ranging. Define which timeframe supplies context and which supplies observations. A structure break can be temporary; record ambiguous cases rather than retrospectively forcing labels.
