OPEN-SOURCE SCRIPT
JL - EMAs (2 Adjustable Length EMAs, Shorter Changes Color)

This indicator has 2 user-adjustable EMAs, initially set to 20 and 221 (lengths are based on BPA / Brooks Price Action / Al Brooks methodology).
The faster EMA (20) changes color from a 'Bullish' color (Blue by default) to a 'Trading Range' color (Black by default) to a 'Bearish' color (Red by default) when there are X number of consecutive closes above or below the shorter / faster EMA (default input is set to 20).
For example, if there are 3 consecutive closes below the faster EMA (20) then the faster EMA will change color to Red, and vice versa to Blue when there are 3 consecutive closes above the EMA.
When neither of those conditions is true, the EMA is Black, representing a transition period or small trading range at a minimum.
I hope you find this indicator helpful for your work, take care
The faster EMA (20) changes color from a 'Bullish' color (Blue by default) to a 'Trading Range' color (Black by default) to a 'Bearish' color (Red by default) when there are X number of consecutive closes above or below the shorter / faster EMA (default input is set to 20).
For example, if there are 3 consecutive closes below the faster EMA (20) then the faster EMA will change color to Red, and vice versa to Blue when there are 3 consecutive closes above the EMA.
When neither of those conditions is true, the EMA is Black, representing a transition period or small trading range at a minimum.
I hope you find this indicator helpful for your work, take care
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.