← All scripts

Zigzag Trend/Divergence Detector

by Trendoscope · Indicator · Pine Script v5 · 7,100 likes

Verifiedbit-exact

Zigzag Trend/Divergence Detector by Trendoscope, a Pine Script v5 indicator, converted with PyneComp and run with PyneCore on BINANCE:BTCUSDT 30m: 28,887 plotted values compared with TradingView, every one bit-identical.

Plot match vs TradingView100%

Accuracy

  • Plots compared1
  • Plotted values compared28,887
  • Identical to the bit100%
  • Worst gapsame double
  • Pearson correlation (min)1.000000

Run

  • Bars executed28,924
  • Run time2.51 s CPU
  • Per-bar time0.09 ms/bar CPU (per chart bar)

Data window

  • SymbolBINANCE:BTCUSDT
  • Timeframe30 min
  • From2025-01-01 00:00
  • To2026-08-26 13:30
  • Bars28,924

Source

  • Pine versionv5, converted to v6 by PyneComp
  • Script revisionv7
  • LicenseMPL-2.0

SHA-256132ce2d00bd2e6713478d0952f4c6d0b0195d59162ab21357bdb6a24e42d1221

View on TradingView Permalink: Zigzag Trend/Divergence Detector

Measured 2026-09-27 · How this is measured · All scripts