OPEN-SOURCE SCRIPT
EMA9 vs EMA20 (Estilo MACD, eje acotado)

๐ท What does it do?
Plots a moving line that represents the difference between the 9-period EMA and the 20-period EMA.
The zero level acts as the baseline (i.e., EMA20).
Every time the line crosses zero:
๐ Bullish crossover โ EMA9 crosses above EMA20.
๐ Bearish crossover โ EMA9 crosses below EMA20.
๐ Visual clarity:
The chart is locked between -600 and +600, making crossovers easy to see without scaling issues.
Perfect for confirming trend direction or momentum shifts.
๐ Built-in alerts:
You can set alerts for both bullish and bearish crossovers directly in TradingView.
๐ง MACD-inspired, but cleaner:
Instead of multiple lines and a histogram, you get one clean line moving around a fixed axis. Simple and powerful.
โ๏ธ Works with:
โ TradingView (Pine Script v5)
โ Any asset and any timeframe
๐ฉ Want the source code? DM me and Iโll send it to you ๐ง
Let me know if you'd like me to make a flyer or visual version of this too!
Plots a moving line that represents the difference between the 9-period EMA and the 20-period EMA.
The zero level acts as the baseline (i.e., EMA20).
Every time the line crosses zero:
๐ Bullish crossover โ EMA9 crosses above EMA20.
๐ Bearish crossover โ EMA9 crosses below EMA20.
๐ Visual clarity:
The chart is locked between -600 and +600, making crossovers easy to see without scaling issues.
Perfect for confirming trend direction or momentum shifts.
๐ Built-in alerts:
You can set alerts for both bullish and bearish crossovers directly in TradingView.
๐ง MACD-inspired, but cleaner:
Instead of multiple lines and a histogram, you get one clean line moving around a fixed axis. Simple and powerful.
โ๏ธ Works with:
โ TradingView (Pine Script v5)
โ Any asset and any timeframe
๐ฉ Want the source code? DM me and Iโll send it to you ๐ง
Let me know if you'd like me to make a flyer or visual version of this too!
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.