Prior swing highs and lows
Flat lines drawn from earlier turning points and extended to the right, to show where price may react to old levels.
What it shows
Each swing high and swing low is a place where price once changed direction. If you extend a flat line from that point, you see whether price later returns to the same level.
Our code draws lines from the most important recent turning points. It skips old levels that price has already traded far through.
How we find it
The same code that draws it on your chart follows these steps, with the same result every time.
- Find swing highs and swing lows.
- Rank them by how far price moved away after the swing.
- Draw a flat line from each of the top ones to the right edge.
- Drop a line once price has closed beyond it by more than the margin.
Starting values: Swing size 3 bars each side (daily), 2 (weekly); Levels shown up to 4; Margin 1.0% of price. These are proposed and will be tuned on real price data before launch.
How to read it
- Red dashed lines come from highs. Teal dashed lines come from lows.
- A line that price has tested again is more meaningful than one never revisited.
- Nearby lines can be treated as one zone.
Status labels you may see
| Label | What it means |
|---|---|
| Between levels | The last close is between two lines. |
| At a level | Within 1% of a line. |
| Beyond all levels | Above the highest or below the lowest line. |
What cancels it
A close beyond the level by more than the margin removes it.
What traders check next
- Which levels price has revisited.
- Whether levels cluster close together.
- The age of each level.
Limits
- Every swing creates a level, so there are many candidates.
- The ranking is our own choice.
- A level can matter only for a while.
Try it in forecastviz
- Open any ticker and choose Support and resistance → Prior swing highs and lows in the left menu.
- Switch between 3M, 6M, 1Y to see how the picture changes.
- Compare with Horizontal support and Horizontal resistance on the same chart.
Questions
How are these different from support and resistance?
They are the same idea in a simpler form: a flat line from one earlier turning point, without needing repeated touches.
Which swings matter most?
Our ranking prefers swings that were followed by a large move.
Related trends
Further reading
- Murphy, Technical Analysis of the Financial Markets
- Edwards and Magee, Technical Analysis of Stock Trends
Educational only. Not financial advice, and not a price forecast. Charts are drawn by code from past price data, which may be delayed.