OPEN-SOURCE SCRIPT

Custom Candlestick Pattern Indicator

Custom Candlestick Pattern Indicator - Buy Signal Based on Green Candles Breaking Previous Lows
Overview:

This custom candlestick pattern indicator is designed to highlight potential buy opportunities based on a simple yet powerful candlestick pattern. The indicator identifies green candles that break below the low of the previous candle. This combination may signal a potential market reversal or a bullish continuation after a pullback, depending on the market context. Traders can use this indicator to detect areas where prices may be bouncing from recent lows, indicating a potential buying opportunity.

Pattern Explanation:

The strategy underlying this indicator is a two-part condition that must be met before a buy signal is generated:

Green Candle: A green candle forms when the closing price of the current candle is higher than its opening price. This visually represents bullish momentum as buyers have taken control, closing the price higher than where it opened.

Breaking the Previous Low: The low of the current candle must be lower than the low of the previous candle. This suggests that, despite initial bearish pressure during the candle formation (which drove the price below the previous candle's low), buyers stepped in to push the price higher by the candle’s close. This pattern can signify a potential reversal or bullish continuation, as it demonstrates that buyers are overcoming initial selling pressure.

When the Pattern Occurs:

This pattern is particularly interesting to traders who look for potential reversal signals after a brief decline in price.
It may also work well in markets where pullbacks are common, as this pattern could mark the end of a retracement and the resumption of the bullish trend.
How the Indicator Works:

Green Candle: The indicator first identifies a green candle, where the close of the candle is greater than its open (close > open). This signals that the current period closed higher than it opened, which is generally a bullish sign.

Breaking Previous Low: The indicator checks if the current candle's low is below the low of the previous candle (low < low[1]). If this condition is met, it means the price dropped below the previous candle's low but was still able to close higher (green candle), signaling a potential reversal or buying opportunity.

Buy Signal: If both conditions are true (green candle + breaking previous low), the indicator plots a buy signal below the candle in the form of an upward-facing triangle labeled "Buy" in green. This serves as a visual cue for traders to consider entering a buy position.

Optional Previous Low Plot: For added reference, the indicator plots the previous candle's low as a red step-line on the chart. This helps traders visualize when the price has dipped below the prior candle's low, making it easier to spot instances where the pattern is forming.

How to Use:

This indicator can be used across multiple timeframes, whether you’re trading short-term intraday patterns or longer-term swing trades.
It works well in markets that experience pullbacks or minor retracements, as the pattern it identifies suggests a rejection of lower prices followed by a push higher.
Traders can combine this indicator with other technical analysis tools (such as moving averages, support/resistance levels, or momentum oscillators) to strengthen the buy signals and add more context to the trading decision.
Example Scenarios:

Reversal Signal: Suppose a market has been in a minor downtrend, and suddenly a green candle forms after a low that breaks the previous day’s low. This indicator would generate a buy signal, suggesting the downtrend may be losing strength and that buyers are taking control. This could be an early indication of a reversal.

Bullish Continuation After Pullback: Imagine a market in a steady uptrend experiences a temporary pullback. The price breaks the previous candle’s low, but the current candle closes higher (green candle). This buy signal could indicate that the pullback is over, and the uptrend is likely to continue.

Advantages:

Simplicity: This indicator relies on basic price action (green candles and lows) without requiring complicated indicators or oscillators, making it easy to understand and use.

Visual Alerts: The plotted buy signals and previous lows provide a clear, visual representation on the chart, simplifying decision-making for traders.

Versatility: It can be applied across different timeframes and asset classes (stocks, forex, crypto, etc.), making it a versatile tool for all kinds of traders.

Limitations:

As with any single indicator or pattern, this should not be used in isolation. It is important to incorporate broader market context, support/resistance levels, and other forms of analysis to avoid false signals.
The pattern tends to be more effective when there’s sufficient market liquidity and may perform better in trending or volatile markets compared to sideways or flat markets.
Bill Williams IndicatorsCandlestick analysisChart patterns

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal