OPEN-SOURCE SCRIPT
已更新 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
發行說明
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)
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。