OPEN-SOURCE SCRIPT

Friedrich Indicator

156
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.

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.