Trend Magic is originally a MT platform (MetaTrader) indicator and it can be used with any forex trading systems / strategies for additional confirmation of trading entries or exits. Converted the MT platform code to TradingView Pine version 4. Also you can use Multiple Time Frame .

It also works well with Crypto and Stock Markets.


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


Enjoy
Kıvanç Özbilgiç

Twitter: @kivancozbilgic

YouTube (Turkish): http://youtube.com/c/kivancozbilgic

YouTube (English): http://youtube.com/c/AlgoWorld
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?