OPEN-SOURCE SCRIPT
Mis à jour EMA Crosses with Independent Fading Background

1. Overall Purpose
The script is an EMA crossover indicator with the following features:
Calculates four EMA pairs: 5/13, 21/50, 20/200, 50/200.
Plots optional EMA lines.
Shows fading background highlights for bullish/bearish crosses.
Places labels at the points of crossover.
Provides a price source input, so EMAs can be based on close, hl2, ohlc4, etc.
2. Strengths
Flexible inputs: Users can change EMA lengths, choose a price source, enable/disable plots, adjust background highlight duration and fade.
Independent fading: Each EMA pair has its own counter for background highlights, preventing overlaps from canceling each other.
Clear labeling: Crosses are labeled distinctly with different colors.
Overlay: Works directly on the chart with overlay=true.
The script is an EMA crossover indicator with the following features:
Calculates four EMA pairs: 5/13, 21/50, 20/200, 50/200.
Plots optional EMA lines.
Shows fading background highlights for bullish/bearish crosses.
Places labels at the points of crossover.
Provides a price source input, so EMAs can be based on close, hl2, ohlc4, etc.
2. Strengths
Flexible inputs: Users can change EMA lengths, choose a price source, enable/disable plots, adjust background highlight duration and fade.
Independent fading: Each EMA pair has its own counter for background highlights, preventing overlaps from canceling each other.
Clear labeling: Crosses are labeled distinctly with different colors.
Overlay: Works directly on the chart with overlay=true.
Notes de version
Update 2.0* 50/200 EMA fix Correct slow EMA length ✅
* Custom EMA colors Choose each EMA’s color independently 8 color inputs
* Background fade Independent, customizable fade per crossover 4 fade styles
* Label toggle Option to disable crossover labels ✅
* Clean structure Fully modular, readable, future-proof ✅
* Added Alert grouping mode so you can choose between:
“One alert per pair” (current behavior), or
“Single combined alert” (fires on any crossover)?
Notes de version
Update 3.0 * Added optional VWAP with selectable anchor period (Session, Daily, Weekly, Monthly)
* VWAP color changes dynamically: green if price ≥ VWAP, red if price < VWAP.
* VWAP line style options (Solid / Dashed / Dotted).
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Want to join a safe community full of like-minded individuals that work together, not against each other? Join Xtrader! Link for more amazing indicators and support.
discord.gg/NHjztdYv6U
discord.gg/NHjztdYv6U
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Want to join a safe community full of like-minded individuals that work together, not against each other? Join Xtrader! Link for more amazing indicators and support.
discord.gg/NHjztdYv6U
discord.gg/NHjztdYv6U
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.