OPEN-SOURCE SCRIPT
Gelişmiş Mum Ters Strateji

Advanced Candle Reversal Strategy Overview
This TradingView PineScript indicator detects potential reversal signals in candlestick patterns, focusing on a sequence of directional candles followed by a wick-based reversal candle. Here's a step-by-step breakdown:
User Inputs:
candleCount (default: 6): Number of consecutive candles required (2–20).
wickRatio (default: 1.5): Minimum wick-to-body ratio for reversal (1.0–5.0).
Options to show background colors and an info table.
Candle Calculations:
Computes body size (|close - open|), upper wick (high - max(close, open)), and lower wick (min(close, open) - low).
Identifies bullish (close > open) or bearish (close < open) candles.
Checks for long upper wick (≥ body * wickRatio) for short signals or long lower wick for long signals.
Sequence Check:
Verifies if the last candleCount candles are all bearish (for long signal) or all bullish (for short signal), including the current candle.
Signal Conditions:
Long Signal: candleCount bearish candles + current candle has long lower wick (plotted as green upward triangle below bar with "LONG" text).
Short Signal: candleCount bullish candles + current candle has long upper wick (plotted as red downward triangle above bar with "SHORT" text).
Additional Features:
Alerts for signals with custom messages.
Optional translucent background color (green for long, red for short).
Plots tiny crosses for long wicks not triggering full signals (yellow above for upper, orange below for lower).
Info table (top-right): Displays strategy summary, candle count, and signal explanations.
Debug label: On signals, shows wick/body ratio above the bar.
The strategy aims for reversals after trends (e.g., after 6 red candles, a red candle with long lower wick signals buy). Customize via inputs; backtest for effectiveness. Not financial advice.
This TradingView PineScript indicator detects potential reversal signals in candlestick patterns, focusing on a sequence of directional candles followed by a wick-based reversal candle. Here's a step-by-step breakdown:
User Inputs:
candleCount (default: 6): Number of consecutive candles required (2–20).
wickRatio (default: 1.5): Minimum wick-to-body ratio for reversal (1.0–5.0).
Options to show background colors and an info table.
Candle Calculations:
Computes body size (|close - open|), upper wick (high - max(close, open)), and lower wick (min(close, open) - low).
Identifies bullish (close > open) or bearish (close < open) candles.
Checks for long upper wick (≥ body * wickRatio) for short signals or long lower wick for long signals.
Sequence Check:
Verifies if the last candleCount candles are all bearish (for long signal) or all bullish (for short signal), including the current candle.
Signal Conditions:
Long Signal: candleCount bearish candles + current candle has long lower wick (plotted as green upward triangle below bar with "LONG" text).
Short Signal: candleCount bullish candles + current candle has long upper wick (plotted as red downward triangle above bar with "SHORT" text).
Additional Features:
Alerts for signals with custom messages.
Optional translucent background color (green for long, red for short).
Plots tiny crosses for long wicks not triggering full signals (yellow above for upper, orange below for lower).
Info table (top-right): Displays strategy summary, candle count, and signal explanations.
Debug label: On signals, shows wick/body ratio above the bar.
The strategy aims for reversals after trends (e.g., after 6 red candles, a red candle with long lower wick signals buy). Customize via inputs; backtest for effectiveness. Not financial advice.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.