OPEN-SOURCE SCRIPT
已更新 CFR - Candle Formation Ratio

Description
This indicator is designed to detect candles with small bodies and significant wick-to-body ratios, often useful for identifying doji-like structures and potential accumulation areas.
Features
⚠️ Note: The settings of this version are currently in Turkish. An English version of the settings will be released in the future.
This indicator is designed to detect candles with small bodies and significant wick-to-body ratios, often useful for identifying doji-like structures and potential accumulation areas.
Features
- Filter candles by maximum body size (% of the total candle range).
- Require that wicks are at least X times larger than the body.
- Define the position of the body within the candle (e.g., body must be between 40% and 60% of the candle height).
- Visual output: a single arrow marker when conditions are met.
- Fully customizable marker color and size.
⚠️ Note: The settings of this version are currently in Turkish. An English version of the settings will be released in the future.
版本注释
DescriptionThe CFR - Candle Formation Ratio is a powerful, flexible tool for detecting highly specific candle structures — including small-body candles, dojis, and accumulation-type formations.
With the latest update, you can now track up to three completely different candle formation types simultaneously, each with its own independent configuration.
This indicator helps traders identify candles that signal indecision, absorption, or localized accumulation/distribution behavior — often useful in market structure and volume context.
🧭 Key Features
✅ Multi-Formation System
- You can now define up to three separate candlestick formations at once.
- Each formation has its own customizable settings for body size, wick ratio, and body position.
- Instantly visualize multiple structure types on the same chart, each with a different color.
✅ Doji-Logic Enhancement
- Candles with a body size of zero (open = close) are now properly detected.
- Even if a candle has no body, it will be recognized if its midpoint lies within your defined body-position range.
- This enables precise detection of pure doji and spinning-top structures.
✅ Cleaner English Interface
- All settings, tooltips, and group labels are now in English, improving usability.
- Each formation is separated by a clear section line in the settings panel, making configuration intuitive.
✅ Advanced Body & Wick Filtering
- Filter by maximum body size (as a % of total candle height).
- Require that upper or lower wicks are at least X times larger than the body.
- Define where the body must be located within the candle — for example, between 40 % and 60 % of the full range.
✅ Visual Output
- Displays a single arrow marker below the candle when conditions are met.
- Each formation can have its own color, making multiple pattern types easy to distinguish
🧩Use Cases
- Identifying accumulation or distribution phases.
- Spotting reversal points (hammer / shooting star / doji zones).
- Filtering market structure signals based on precise candle shape.
- Combining with volume or trend context for high-probability setups.
⚠️ Notes
- This version is fully English-translated, including tooltips and section names.
- Future updates may include formation grouping logic and built-in alerts.
- For users of the earlier Turkish version: settings are now equivalent, but translated and reorganized for clarity.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。