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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。