Last Kiss - PullBack to TrendLine

So far, various indicators have been published to draw the trend line. There are also indicators to detect trend line breakouts. But in rare indicators, the issue of "pullback to the trend line" has been discussed.
After breaking the trend line, the price usually returns to the trend line, which is called a pullback or the last kiss.
A pullback is a confirmation of the strength of the trend break.
1. Find the trend line
An uptrend line is formed by connecting two low-pivots.
low-pivot is a candle that has a lower low value than the before and after candles.
The pivot period is optional and can be changed from the indicator settings.
A pivot may form trend lines with several pivots before it. One of the important features of the indicator is that it can identify all trend lines.
The maximum number of trend lines for each pivot can be determined from the indicator settings.
It is also possible to determine the minimum and maximum distance between two pivots.
2. Find the trend line breakout
After the formation of the trend line, we wait for the price to return to it and break that line. As soon as the first candle closes after the trend line, the breakout is confirmed.
A trend line is not valid forever. If after a certain number of candles, the price does not move towards the trend line, the trend line becomes invalid.
The allowed distance from the formation of the trend line to the breaking point is optional.
3. Detect the last kiss (pullback)
For a valid pullback, after breaking the trend line, the price should move far enough away from the trend line (minimum distance is an optional factor of ATR) and then return to the trend line range and react to it.
Since the price reaction to the exact value of a trend line seems to be rare, therefore, we define an area parallel and close to the trend line as the range of the trend line.
The range is defined as an optional factor of ATR(50).
Also, the allowed distance between the trend line breakout and the pullback can be changed from the indicator settings.
Some features of indicator:
- Manage pivots and their distance
- Trend-Line detection of live market
- Extend lines from the right side for more clarity
- Detection of trend line breakout with the possibility of displaying on the chart and sending alarms
- Fast changing the color of broken lines
- Follow the broken lines to detect the pullback to the broken trend line
- Find pullback points and show them on the chart and send alarms
- Color management of trend lines, broken lines and pullback
- Instructions for using the indicator in the form of different tooltips.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với kheirandish_v.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với kheirandish_v.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.