PROTECTED SOURCE SCRIPT

Doji Finder - Doji Bulucu

195
English;
A Doji is a candlestick pattern where the opening and closing prices are very close to each other, and this code detects such candles, marking them on the chart and drawing lines. Here’s a step-by-step explanation of how the code works:
User Input:
Doji Ratio: The user can adjust the Doji ratio (default 10%). This ratio is the difference between the opening and closing prices relative to the candle range (high - low). A smaller value means a stricter Doji definition.
Doji Detection:
It checks whether a candle is a Doji. If the difference between the opening and closing prices is less than the candle range (high - low) multiplied by the dojiRatio, the candle is considered a Doji.
Line Drawing:
Horizontal lines are drawn at the high (red), low (green), and mid (blue) levels of each Doji candle. These lines extend to the next Doji candle or the current bar (if it’s the last Doji).
Doji Marking:
Doji candles are marked on the chart with small yellow triangles (optional).

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.