OPEN-SOURCE SCRIPT

Trend-Filtered Blue Diamond

55
To make sure the Blue Diamond only appears during a confirmed uptrend and stays hidden during a downtrend, we need to add a "Trend Filter."

The best way to do this is by using a long-term Moving Average (like the 200 EMA). This ensures that even if you get a small bullish crossover, the diamond won't show up unless the overall market direction is positive.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.