mung.daal

Projects Gann Swing

README.mdmung / gann-swing

Gann Swing building

TradingView indicator

W. D. Gann's mechanical swing charts as a TradingView indicator, with a tested Three-Bar Rule on top.

Draws 1-, 2- and 3-bar swing charts by Gann's rules and ignores the noise of inside bars. A Three-Bar Rule overlay marks only the reversals that pass its relevance gates. Pine Script can't be tested locally, so the Three-Bar Rule's defaults were picked with a Python port of the indicator, tested on 15 years of BTC/USD daily bars. It marks reversals worth a look; it is not a trading strategy.

  • 1-, 2- and 3-bar swing charts by Gann's rules, inside bars ignored
  • Three-Bar Rule with four combinable relevance gates
  • Non-repainting by default; the one repainting mode is opt-in and flagged on the chart
  • Trend dashboard, swing bar counts and 7 alerts
TradingView chart of Bitcoin in US dollars, weekly candles from 2023 to November 2026, with the Gann Swing indicator: a grey swing line, small triangles, circles and diamonds above the candles, bar counts from 7 to 9, three red boxes at tops, one teal box under a bottom, and a trend table in the top right corner.
Bitcoin, weekly, 2023 to Nov 2026. The boxes are Three-Bar Rule reversals that passed the gates: three tops, one bottom.
The same weekly chart zoomed in on spring 2025 to November 2026: triangles, circles and diamonds above the candles, the grey swing line through the turns, and a red box at the top in August 2025.
Closer in: triangles for up and down bars, circles for inside bars, diamonds for outside bars, and the swing line.
Two tables cut out of the chart. Left, the weekly trend: 1-bar down, 2-bar down, 3-bar grey (waiting). Right, the Three-Bar Rule: trend up, count 1 of 3, gates A and D off, B and C passed, last swing a bottom with an amplitude of 66,782, passed.
The two dashboards, cut out of the chart: trend per swing type, and the Three-Bar Rule with its gates.
Settings of Gann Swing [Mung], Inputs tab, relevance gates: Gate A off; Gate B on with lookback 50 and mode Non-Repaint; Gate C on with ATR Multiple, multiplier 2, ATR period 14 and minimum amplitude 3 %; Gate D off; gate combination Default.
The relevance gates in the settings: B and C on, A and D off.

Activity

17 commits in the last 20 weeks

New projects by e-mail

Written by me. No tracking pixels, no counted clicks.