OPEN-SOURCE SCRIPT
Friedrich Indicator

This indicator visualizes trend zones using two Exponential Moving Averages (EMAs) with user-defined lengths (default 32 and 58). It identifies bullish and bearish trends based on the relationship between the shorter and longer EMA and confirms these trends only after they persist for a specified number of bars (confirmBars).
Bullish zone (green): When the shorter EMA remains above the longer EMA for at least the confirmation number of bars, both EMAs and the area between them are colored green, indicating a confirmed upward trend.
Bearish zone (red): When the shorter EMA stays below the longer EMA for at least the confirmation bars, EMAs and the filled zone turn red, signaling a confirmed downward trend.
Neutral zone (white): Before the trend confirmation, the EMAs and the area between are colored white with transparency, representing an unconfirmed or neutral state.
The area between the two EMAs is filled with the respective color, providing an intuitive visual cue of market momentum and trend strength directly on the price chart.
Bullish zone (green): When the shorter EMA remains above the longer EMA for at least the confirmation number of bars, both EMAs and the area between them are colored green, indicating a confirmed upward trend.
Bearish zone (red): When the shorter EMA stays below the longer EMA for at least the confirmation bars, EMAs and the filled zone turn red, signaling a confirmed downward trend.
Neutral zone (white): Before the trend confirmation, the EMAs and the area between are colored white with transparency, representing an unconfirmed or neutral state.
The area between the two EMAs is filled with the respective color, providing an intuitive visual cue of market momentum and trend strength directly on the price chart.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。