ZenAndTheArtOfTrading

S&R Zone Signals

This indicator allows you to specify price zones in which to detect basic candlestick patterns.

In the example above, I have specified the most immediate support and resistance zones on GBP/USD and set the script to detect engulfing candles. If a bearish engulfing candle occurs within the resistance zone a signal will be generated; likewise for bullish engulfing candles within the support zone .

The purpose of this indicator is to generate trading alerts when these patterns occur in order to reduce the screen-time required to monitor setups. This indicator is intended for structure traders primarily, although it could be used by anyone who uses zones and candlestick patterns to enter trades.

If you leave either zone set to 0 then that zone will not be used, meaning that you can use this to detect both support and resistance signals, or only signals at support, or only signals at resistance.

Settings:
R1: First Resistance Price
R2: Second Resistance Price
S1: First Support Price
S2: Second Support Price

Draw Signals: Enable/Disable Visual Signals
How Far To Look Back: Used For Detecting Fractal Highs/Lows
Doji Size (in pips): This Changes the Size of Detected Doji Candles
Hammer Wick Size: This Changes the Size of Detected Hammers/Shooting Stars
Engulf Wick: If Enabled, Only Engulfing Candles That Engulf the Wick Will Be Valid

Show Engulfing Candles: Enable/Disable Visual Signals For Engulfing Candles
Show Doji Candles: Enable/Disable Visual Signals For Doji Candles
Show Hammer Candles: Enable/Disable Visual Signals For Hammer/Shooting Star Candles

Source Code:
Go to zenandtheartoftradin...stance-zone-signals/ for the source code – it’s free!
Phát hành các Ghi chú:
- Updated to PSv4
Phát hành các Ghi chú:
Several small optimizations and improvements
Phát hành các Ghi chú:
-
- Improved settings interface & info
- Improved hammers & stars detection
- Added stop loss plots (ATR-based)
- Fixed deprecated "transp" parameters
Phát hành các Ghi chú:
Updated to Pine Script v5
Phát hành các Ghi chú:
Accidentally reverted some code to an old version in the v5 update. Fixed now. Also added confirm parameter to S&R zones.

My Resources Hub: theartoftrading.com
FREE YouTube Lessons: rebrand.ly/zyt
FREE Pine Script Basics Course: rebrand.ly/zpsbc
Pine Script MASTERY Course: rebrand.ly/zpsmc
My Indicators & Strategies: rebrand.ly/zmisc
Mã được bảo vệ
Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ. Bạn không thể xem hoặc sửa đổi mã nguồn.
Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?