OPEN-SOURCE SCRIPT
Updated

KJ Magic

9 601
Trend Magic consists of two main calculation parts as momentum and volatility:

First part is ATR based (like ATR Trailing Stop) logic, second part is all about CCI which also determines the color of Trend Magic.
Blue: when CCI is positive
Red: when CCI is negative

Also added alert condition regarding price crosses :
when LOW CrossesAbove TM
and HIGH CrossesBelow TM

Release Notes
Trend Magic consists of two main calculation parts as momentum and volatility:

First part is ATR based (like ATR Trailing Stop) logic, second part is all about CCI which also determines the color of Trend Magic.
Blue: when CCI is positive
Red: when CCI is negative

Also added alert condition regarding price crosses :
when LOW CrossesAbove TM
and HIGH CrossesBelow TM

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.