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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.