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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.