OPEN-SOURCE SCRIPT

Gelişmiş Mum Ters Strateji

110
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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.