Kyadav

Custom Engulfing Pattern

Kyadav Zaktualizowano   
This script identifies bullish and bearish engulfing candlestick patterns based on user-defined criteria. It highlights the engulfing patterns on the chart for easy visualization. The script allows for customization of certain parameters to fine-tune the engulfing pattern detection according to the user's preferences.

Features:

Wick Ratio: Define a ratio to ensure that the body of both the current and previous candles comprises a significant portion of the total candle range.
Opposite Candle Condition: Ensures that the current and previous candles are of opposite types (one bullish and one bearish).
Body Size Relative to Previous Candles: Ensures that the body of the current candle is larger than the average body size of a specified number of previous candles.
Body Size Comparison: Ensures that the body of the engulfing candle is not more than 150% of the body of the previous candle.
Color Highlighting: Highlights bullish engulfing patterns in green and bearish engulfing patterns in red on the chart for easy identification.
Parameters:

tolerance (default: 0.0001): A tolerance value to account for minor price discrepancies when comparing candle open and close prices.
wick (default: 0.5): A ratio to define the significance of the candle body relative to the total candle range.
prevCandles (default: 6): Specifies the number of previous candles to consider when calculating the average body size for the body size relative condition.
Usage:
Adjust the tolerance, wick, and prevCandles parameters as needed to fine-tune the engulfing pattern detection to suit your trading style or the specific characteristics of the asset being analyzed. The script will highlight engulfing patterns on the chart, allowing for quick visual identification of potential trading opportunities based on these classic candlestick patterns.

Please note that this script is intended for educational and illustrative purposes. It should not be used as financial advice. Always conduct your own analysis and consult with a financial advisor before making any trading decisions.
Informacje o Wersji:
Added input to parameters

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?