PROTECTED SOURCE SCRIPT

Doji Finder - Doji Bulucu

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。