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

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.