OPEN-SOURCE SCRIPT

Engulfing Candle by Smanov

This custom Pine Script indicator highlights bullish and bearish engulfing candles while ensuring the previous candle is not an inside bar (relative to the candle before it). Engulfing candles are often seen as potential reversal signals. By including an extra filter that excludes so-called “inside bars,” the indicator aims to provide stronger and more reliable signals.

How It Works
Bullish Engulfing Condition

The current candle is bullish (close > open).
The current candle’s low is lower than the previous candle’s low, and the current candle’s high is higher than the previous candle’s high (true “engulfing” from top to bottom).
The current candle closes above the previous candle’s high (confirms a breakout above the previous high).
Bearish Engulfing Condition

The current candle is bearish (close < open).
The current candle’s high is higher than the previous candle’s high, and the current candle’s low is lower than the previous candle’s low.
The current candle closes below the previous candle’s low (confirms a breakdown below the previous low).
Non-Inside-Previous-Bar Filter

The indicator checks the previous candle to ensure it is not an inside bar (where the entire high-low range of the previous candle sits inside the range of the candle before it).
By doing so, the indicator ignores signals where the previous candle is potentially indecisive or “inside.”
When these conditions are met, the indicator plots a triangle above (for bearish) or below (for bullish) the candle. You can also enable alerts to receive notifications each time a valid engulfing candle forms.

Features
Clear Markers on the Chart: Triangles appear near the bars that fulfill the engulfing criteria, simplifying quick identification of potential reversal points.
Non-Inside Bar Filtering: Reduces false signals by ensuring the previous candle range is not contained within the range of the candle before it.
Alert Conditions: Create TradingView alerts to be notified via push messages, email, or pop-ups whenever a bullish or bearish engulfing setup occurs.
Easy Customization: You can tweak the logic for stricter or looser engulfing definitions or add your own additional filters (volume, RSI, etc.) if needed.
How to Trade with It
Reversal Opportunities

Bullish Engulfing: Signals a potential bullish reversal. Traders might look to go long if other supporting factors (support level, bullish divergence, etc.) confirm the trend change.
Bearish Engulfing: Signals a potential bearish reversal. Traders might go short if there is additional confluence (resistance level, overbought conditions, etc.).
Combine with Other Indicators

While an engulfing candle by itself can be meaningful, adding a momentum oscillator (e.g., RSI, MACD) or volume analysis often strengthens confirmation.
Look for bullish engulfing signals near known support levels, or bearish engulfing signals near known resistance levels.
Risk Management

Place stop-loss orders below (for bullish entries) or above (for bearish entries) the engulfing candle to reduce risk.
Use your usual position sizing and money management rules.
Avoid Choppy Markets

Because this indicator focuses on engulfing patterns that break the previous candle’s high or low, it can reduce whipsaws in sideways markets. Still, confirm that the market isn’t in an extended range before acting.
Disclaimer:
This indicator is a technical tool designed to assist traders in identifying potential reversal points. It is not a standalone trading system. Always practice proper risk management, and confirm signals with additional analysis before entering any trade.
Candlestick AnalysisChart patternsPivot points and levels

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname