OPEN-SOURCE SCRIPT
PDHL Sweep + C123 (by Veronica)

The "PDHL Sweep + C123" is an indicator to identify potential reversal or continuation patterns in the market by combining key price levels from the previous day with a custom three-candle pattern analysis.
Key Features:
1. Previous Day High/Low Sweep:
The indicator automatically plots horizontal lines marking the previous day's high and low prices.
If the price crosses these key levels, the lines will change from solid to dashed, indicating a potential sweep or breakout.
2. Three-Candle Pattern Analysis:
The indicator identifies specific three-candle patterns that could signal a bullish or bearish setup. The pattern is validated if certain conditions are met, including the relationship between candle bodies and whether the price has crossed the previous day's high or low.
3. Marubozu Condition (Optional):
Users can enable a condition that checks if the Candle 1 and 3 in the pattern is a Marubozu, with a customizable body size percentage.This adds an extra layer of confirmation to the pattern. Default is switch on for both candle 1 and 3.
4. Customizable Alerts:
Users can set alerts for when a "Buy" or "Sell" signal is triggered, allowing them to stay informed of potential trading opportunities without constantly monitoring the charts.
Callout Signals:
When a valid bullish or bearish pattern is identified, the indicator places a "Buy" or "Sell" callout on the chart for clear visual signaling.
5. Customizable colour and text:
Users can customize the color and text of these callouts to suit their preferences.
How to Use:
Bullish Signal: A "Buy" callout will appear when a valid three-candle bullish pattern is detected and the price has crossed below the previous day's low.
Bearish Signal: A "Sell" callout will appear when a valid three-candle bearish pattern is detected and the price has crossed above the previous day's high.
Customize the appearance of the indicator, including line colors, callout colors, and text colors, to match your charting style.
This indicator is ideal for traders who rely on price action and key levels for their trading decisions. It provides clear signals and alerts, helping you stay on top of potential market reversals or continuations.
Key Features:
1. Previous Day High/Low Sweep:
The indicator automatically plots horizontal lines marking the previous day's high and low prices.
If the price crosses these key levels, the lines will change from solid to dashed, indicating a potential sweep or breakout.
2. Three-Candle Pattern Analysis:
The indicator identifies specific three-candle patterns that could signal a bullish or bearish setup. The pattern is validated if certain conditions are met, including the relationship between candle bodies and whether the price has crossed the previous day's high or low.
3. Marubozu Condition (Optional):
Users can enable a condition that checks if the Candle 1 and 3 in the pattern is a Marubozu, with a customizable body size percentage.This adds an extra layer of confirmation to the pattern. Default is switch on for both candle 1 and 3.
4. Customizable Alerts:
Users can set alerts for when a "Buy" or "Sell" signal is triggered, allowing them to stay informed of potential trading opportunities without constantly monitoring the charts.
Callout Signals:
When a valid bullish or bearish pattern is identified, the indicator places a "Buy" or "Sell" callout on the chart for clear visual signaling.
5. Customizable colour and text:
Users can customize the color and text of these callouts to suit their preferences.
How to Use:
Bullish Signal: A "Buy" callout will appear when a valid three-candle bullish pattern is detected and the price has crossed below the previous day's low.
Bearish Signal: A "Sell" callout will appear when a valid three-candle bearish pattern is detected and the price has crossed above the previous day's high.
Customize the appearance of the indicator, including line colors, callout colors, and text colors, to match your charting style.
This indicator is ideal for traders who rely on price action and key levels for their trading decisions. It provides clear signals and alerts, helping you stay on top of potential market reversals or continuations.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。