OPEN-SOURCE SCRIPT

Trend Magic

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ç
ATRCommodity Channel Index (CCI)FR3762kivancozbilgicOscillatorstrendTrend AnalysistrendmagicVolatility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Telegram t.me/AlgoRhytm

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

YouTube (English): youtube.com/c/AlgoWorld
Also on:

Disclaimer