OPEN-SOURCE SCRIPT

Trend-Filtered Blue Diamond

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

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.