OPEN-SOURCE SCRIPT

Magic Trend By Market Mindset - Zero To Endless

Updated
Magic Trend indicator is an indicator combining the Commodity Channel Index (CCI) and the Average True Range (ATR) indicators.

The indicator is represented by a line that turns red when CCI readings are below 0 and converts to blue when CCI reaches above 0.

Color of the line can be treated as a trend indicator.
When CCI > 0 (Blue Color), price is assumed to be in uptrend and a buying momentum could be seen.
When CCI < 0 (Red Color), price is assumed to be in downtrend and a selling pressure could be seen.

Two Multipliers of ATR have been used. Default values for multiploier are : 1.5 and 3.0
It tells about the volatality in the price and also helps in deciding Entry poits, Stop loss points and sometimes Exit points.

If trend magic lines are not straight and moving upward/downward, continuition of the trend is expected and so Holding the position is adviced.
If the farther line (line with multiplier 3.0) is broken, a trend reversal can be seen soon.
In this case, squaring off and making reverse position is adviced near the other (1.5 mult) line.

If price is revolving in between these two lines... a sideways movement is expected.

Happy Trading
Market Mindset
Release Notes
Magic Trend indicator is an indicator combining the Commodity Channel Index (CCI) and the Average True Range (ATR) indicators.

The indicator is represented by a line that turns red when CCI readings are below 0 and converts to blue when CCI reaches above 0.

Color of the line can be treated as a trend indicator.
When CCI > 0 (Blue Color), price is assumed to be in uptrend and a buying momentum could be seen.
When CCI < 0 (Red Color), price is assumed to be in downtrend and a selling pressure could be seen.

Two Multipliers of ATR have been used. Default values for multiploier are : 1.5 and 3.0
It tells about the volatality in the price and also helps in deciding Entry poits, Stop loss points and sometimes Exit points.

If trend magic lines are not straight and moving upward/downward, continuition of the trend is expected and so Holding the position is adviced.
If the farther line (line with multiplier 3.0) is broken, a trend reversal can be seen soon.
In this case, squaring off and making reverse position is adviced near the other (1.5 mult) line.

If price is revolving in between these two lines... a sideways movement is expected.

Happy Trading
Market Mindset
Release Notes
Added Magic Fill
Changed default Line Width
Release Notes
Bug Fixes
Release Notes
ChangeLog :
1. Added functionality to change the calculation mode.
Available modes are :
EMA
RMA (Default)
SMA
VWMA and
WMA

2. Added option to choose High/Low based values.
Default is (high+low)/2

3. Added Buy/Sell Signal Labels
Release Notes
ChangeLog :
1. Added functionality to pick the colors for Bullish and Bearish trends
2. Added functionality to select - Whether one wish to use a Single Magic Trend Line or a Double Magic Trend Lines
Note : Buy/Sell Signals will be changed based on Calculation Mode and Single/Double Magic Trend Lines.
Release Notes
Changed Default Settings
Release Notes
ChangeLog :
1. Simplified the UI (Input Panel)
2. Introduced RSI for trend identifying
Release Notes
Bug Fixes.
Release Notes
Simolified settings
Release Notes
Simplified Settings
ATRCCI-EMAmarketmarketmindsPivot points and levelssentimentTrend Analysistrendmagic

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?


Also on:

Disclaimer