OPEN-SOURCE SCRIPT

EMA Multi Cross

Telah dikemas kini
This is just a very simple EMA indicator that shows the 20, 50, 100, and 200 Exponential Moving Averages and plots some shapes when the lines cross from the 20 & 50, the 50 & 200, and the 100 & 200.

I know there are many EMA indicators out there, but I couldn't find one that let me edit the colors, values, and toggle the crossings. Maybe some of you will find usefulness in having some of these extra options too.

I use this occasionally on the Bitcoin 1 hour charts to see how the long-term trend is going.

Here are some ways to read EMA lines:
Slope: A rising moving average generally reflects a rising trend, while a falling moving average points to a falling trend.
Crosses: Seeing when a slower moving average crosses over/under a faster moving average can be an indication of a trend. If a shorter moving average remains above the longer moving average after they cross, the uptrend is considered intact. The trend is seen as down when the shorter moving average is below the longer moving average.

I prefer the slope of the two since crosses can cause some false positives if you are relying on it for trades.
Nota Keluaran
Added bar coloring as requested.

20 crossing with 50 shows a purple candle.
50 crossing with 200 shows an aqua candle.
100 crossing with 200 shows an orange candle.
crossExponential Moving Average (EMA)Technical AnalysisTrend Analysis

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian