OPEN-SOURCE SCRIPT

Simple Market Structure Highs & Lows

165
🟩 Simple Market Structure Highs & Lows

This indicator identifies basic swing highs and lows based on simple two-candle patterns, giving traders a clean visual view of short-term market structure shifts.

🔹 Logic

A Swing High (H) is marked when an up candle is followed by a down candle.
→ The high of the up candle (the first one) is plotted as a green triangle above the bar.

A Swing Low (L) is marked when a down candle is followed by an up candle.
→ The low of the down candle (the first one) is plotted as a red triangle below the bar.

🔹 Purpose

This tool helps visualize basic market turning points — useful for:

Spotting local tops and bottoms

Analyzing market structure changes

Identifying potential entry/exit zones

Building the foundation for BOS/CHoCH strategies

🔹 Notes

Works on any timeframe or asset.

No repainting — signals appear after the confirming candle closes.

Simple and lightweight — ideal for traders who prefer clean structure visualization.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.