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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน