PROTECTED SOURCE SCRIPT

Doji Finder - Doji Bulucu

275
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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。