OPEN-SOURCE SCRIPT
WPNR + ATR Bands + MACDAS Strategy

This indicator is a hybrid approach that blends momentum, volatility, and trend following into one. It's designed to filter out market "noise" and capture high-probability turning points.
Components Used: Williams %R (WPNR): Captures moments when the price crosses above the oversold (below -80) region (Long) or below the overbought (above -20) region (Short).
ATR Bands: Measure price volatility. They prevent spurious breaks by ensuring signals only activate when the price is within a reasonable range (within the bands).
MACDAS: This is a MACD-based trend filter. It only allows trades to be opened in the direction of the main trend (Buy when above the MACD signal line, Sell when below).
How to Use? Buy (Long): W%R must cross above the 80 level, the price must hold above the lower ATR band, and MACD must be in the positive zone (bullish).
Sell (Short): W%R should cross below the 20 level, price should remain below the upper ATR band, and MACD should be in the negative (bearish) zone
Note: This strategy is optimized for 15-minute and 1-hour charts. Always remember to use a stop-loss order.
Components Used: Williams %R (WPNR): Captures moments when the price crosses above the oversold (below -80) region (Long) or below the overbought (above -20) region (Short).
ATR Bands: Measure price volatility. They prevent spurious breaks by ensuring signals only activate when the price is within a reasonable range (within the bands).
MACDAS: This is a MACD-based trend filter. It only allows trades to be opened in the direction of the main trend (Buy when above the MACD signal line, Sell when below).
How to Use? Buy (Long): W%R must cross above the 80 level, the price must hold above the lower ATR band, and MACD must be in the positive zone (bullish).
Sell (Short): W%R should cross below the 20 level, price should remain below the upper ATR band, and MACD should be in the negative (bearish) zone
Note: This strategy is optimized for 15-minute and 1-hour charts. Always remember to use a stop-loss order.
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.