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
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。