Indicators
ZigZag Indicator Explained
How the ZigZag indicator filters insignificant moves to expose swings, with the repaint caveat every bot must respect, in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
ZigZag redraws price as its significant swings only: any move smaller than the threshold (percent or ATR-based) is ignored, and what remains is the skeleton — the legs a swing trader actually cares about. It is also the most infamous repainting indicator in existence, which bots must handle correctly.
How It Works
- A new pivot is confirmed only after price reverses by the threshold from an extreme.
- The final, in-progress leg keeps moving with price — that's the repaint.
- Confirmed pivots (all but the last) are fixed history and safe to trade on.
How to Trade It
Build rules on confirmed pivots only: leg-length statistics for projection targets, higher-high/higher-low sequences as trend state, and equal-swing measurements for harmonic or measured-move logic. Never condition on the live leg — that's the backtest lie that never survives live trading.
Building It in Setup.Cash
Add ZigZag in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. See Fractals for the fixed-width, non-repainting alternative. For the full category overview, see the market structure tools guide.
Structure tools define context; your entry logic supplies timing. Backtest both halves together before going live.
Related Posts
View allIndicators
Automated Support & Resistance Zones for Trading Bots
How the Support/Resistance Zones indicator builds zones from swing pivots and ATR, and how to trade zone bounces and breaks in Setup.Cash.
2 min read · 303 words
Indicators
Market Structure Tools: Smart Money Concepts, ZigZag & More
How the SMC, ZigZag, Variable Heat Map, and Archer MA Trends indicators automate market structure analysis in Setup.Cash trading bots.
2 min read · 316 words
Indicators
Smart Money Concepts (SMC) Indicator Explained
How the SMC indicator automates break of structure, change of character, and order blocks for bots in Setup.Cash.
2 min read · 207 words
Indicators
Swing High/Low Detector: Trading Market Structure
How the swing high/low detector finds structural turning points, how bots trade structure breaks, and how to use it in Setup.Cash.
2 min read · 339 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.