OPEN-SOURCE SCRIPT
Cập nhật 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
Phát hành các Ghi chú
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)
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.