indicator · on price · open source

Swing High/Low Markers indicator

Swing High/Low Markers is a free open-source indicator. Swing High / Low Markers — minimal labels on every confirmed pivot, no structure… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What Swing High/Low Markers does

Swing High / Low Markers — minimal labels on every confirmed pivot, no structure classification, no step line.

  • Cleanest possible swing visualisation — just H/L labels.
  • Use when your chart is already busy with other overlays and you only want the raw swings.
  • Same swing engine as the structure indicators above.
  • Default swing = 5; tweak to 3 for noisy markets and 10+ for clean charts.
  • The markers are intentionally delayed swing bars — no repaint mid-bar.
  • The 'tight swings' alert fires when both a swing high and low confirm within 5 bars of each other — strong compression.
  • Use the marker-shape input to switch between circle, diamond, and xcross for different visual styles.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Swing High/Low Markers", overlay=true)
swing = input.int(5, "Swing Length", minval=2, maxval=50)
hiColor = input.string("color.green", "High Marker Color")
loColor = input.string("color.red", "Low Marker Color")
markerStyle = input.string("circle", "Marker Shape (circle/diamond/xcross)")
alertHi = input.bool(true, "Alert on Swing High")
alertLo = input.bool(true, "Alert on Swing Low")
alertTight = input.bool(false, "Alert on Tight Swings")
markerText = input.string("", "Marker Text Override")
markerSize = input.string("small", "Marker Size (tiny/small/normal/large)")
ph = ta.pivothigh(high, swing, swing)
pl = ta.pivotlow(low, swing, swing)
plotshape(not na(ph), "Swing High", style=shape.circle, location=location.abovebar, color=hiColor)
plotshape(not na(pl), "Swing Low", style=shape.circle, location=location.belowbar, color=loColor)
alertcondition(not na(ph), "Swing High", "New swing high confirmed")
alertcondition(not na(pl), "Swing Low", "New swing low confirmed")
alertcondition(not na(ph) and not na(pl) and bar_index - ta.barssince(not na(ph)) <= 5 and bar_index - ta.barssince(not na(pl)) <= 5, "Tight swings", "Swing high and low confirmed close together — compression")

Comments

No comments yet.

Sign in to comment.