Concept
Trend Magic
Trend Magic is a Trend concept. The Library holds 2 implementations, each one a working definition you can pull into Quant.
Top Trend Magic indicators
2 total
What is Trend Magic?
Trend Magic is a trailing trend line that takes its direction from momentum rather than from price alone. It computes a CCI and an ATR: while the CCI is at or above zero the line is drawn below price (typically the low minus an ATR-based offset) and only ratchets upward; when the CCI drops below zero the line jumps above price (high plus the offset) and only ratchets downward. The line's color flips with the CCI's sign, giving a two-state long/short regime.
That construction places it in the same family as Supertrend and other stop-and-reverse trailers, with one distinction: the flip is decided by the oscillator crossing zero, not by price piercing the band, while ATR only sets the line's distance from price. Like every trailing regime tool it trends well and chops badly; sideways markets produce clusters of false flips that no parameter choice fully removes.
How traders use it
- As a regime filter: long setups are taken only while the line sits below price in its bullish state, shorts only in the opposite state, with other tools handling entries.
- As a trailing stop reference: the ratchet never gives ground within a trend, so the line (or a buffer beyond it) serves as an exit level that tightens as the move extends.
- As a flip-signal generator: color changes mark state transitions, usually traded only with confirmation because flips cluster in ranges.
Related concepts · Trend-following systems
Concept family
Trend
100 concepts mapped · 88 in the Library
Trend Magic FAQ
How is Trend Magic different from Supertrend?
Both draw an ATR-offset line that trails price and flips between long and short states. Supertrend flips when price itself crosses the band; Trend Magic flips when its CCI crosses zero, with ATR only setting the line's distance from price. In practice the two often agree in trends and disagree at turns, where the CCI condition can trigger earlier or later than a price cross.
What are the best settings for Trend Magic?
There is no single best. Ports differ in their CCI lookback and ATR settings, and every combination faces the same trade-off: shorter inputs flip sooner and whipsaw more, longer inputs lag turns. Settings that look ideal on one symbol and timeframe rarely transfer unchanged, so test on the market you trade and expect false flips in ranges regardless.
Build Trend Magic your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.

