OPEN-SOURCE SCRIPT
Actualizado SMA+ADX Filter[yusufk]

A simple SMA 25 cross indicator with optional ADX filter for momentum confirmation. BUY and SELL signals are generated on candle close to help reduce false signals in sideways market conditions.
Thanks,
yusufk
Thanks,
yusufk
Notas de prensa
Title : Dynamic MA Crossover with ADX & Trend FiltersDescription:
This indicator is a highly customizable trend-following tool designed to capture momentum while filtering out false signals in ranging markets. It generates buy and sell signals based on price crossing a primary Moving Average, backed by two powerful optional filters to ensure high-probability entries.
Key Features:
Dynamic Main MA: Choose between SMA or EMA for your primary signal line. Signals are triggered when the price crosses over (Buy) or under (Sell) this Moving Average.
Trend Strength Filter (ADX): An optional ADX filter ensures you only take trades when the market has sufficient momentum, avoiding choppy or sideways price action.
Macro Trend Filter (Long Period MA): Filter out counter-trend setups by aligning your trades with a longer-term Moving Average. You can fully customize the length (default is 100) and type (SMA or EMA). Buys are only allowed above this line, and sells only below it.
Built-in Alerts: Includes ready-to-use alert conditions for confirmed Buy and Sell signals (triggers on candle close) for easy automation.
How to Use:
Enable the Long Period MA to establish the overall market direction, and use the ADX filter to confirm trend strength. Once the conditions align, wait for the price to cross the Main MA to pinpoint your entry. This script is ideal for Forex, Gold (XAUUSD), and Crypto traders looking to build automated strategies or optimize manual trading.
Best Regards,
yusufk/iping99 (indonesia)
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.