OPEN-SOURCE SCRIPT
已更新 Fibonacci Order Blocks [yigdeli]

Fibonacci Order Blocks [yigdeli]
Overview
Fibonacci Order Blocks is a rule-based structural analysis and visualization tool that combines pivot-based Fibonacci mapping with volume-distributed support and resistance zones.
The Fibonacci foundation used in this script was built on auto Fibonacci correction techniques available on TradingView. Thanks to the original technical groundwork and to the TradingView Pine community for the structural ideas that helped shape this project. On top of that base, this script extends the framework with Fibonacci zone boxes, internal buy/sell volume split, right-side information boxes, and support/resistance order block visualization.
This script is designed for structural chart analysis and visual interpretation.
It does not predict future price direction.
It does not provide standalone entry or exit signals.
It does not provide investment advice.
Fibonacci Structure
The script automatically builds a Fibonacci leg between the latest confirmed structural pivots.
Each enabled Fibonacci level can display:
the Fibonacci line itself
a local main zone box
a buy-side sub-box
a sell-side sub-box
This makes each level readable as a price zone rather than as a line only.
Image 1 — Fibonacci Lines

Shows the pivot-based Fibonacci structure used as the main framework of the script.
Image 2 — Fibonacci Level Boxes

Shows the Fibonacci main boxes and the internal buy/sell sub-boxes for enabled levels.
Fibonacci Information Boxes
Each Fibonacci zone can also display separate right-side information boxes.
These boxes are used to show:
total volume for the zone
Fibonacci level value
exact price value
They are separated from the main Fibonacci box to improve readability and make the chart easier to interpret visually.
Image 3 — Fibonacci Info Boxes

Shows the separate total-volume box and the level/price information boxes displayed to the right of Fibonacci zones.
Support and Resistance Zones
The indicator also builds structural support and resistance zones using the active chart context and lookback settings.
Each zone includes:
a main support or resistance box
total zone volume displayed on the main box
internal buy and sell sub-boxes
These zones are intended to help visualize how localized volume is distributed inside broader structural areas.
Image 4 — Support and Resistance Zones

Shows the main support and resistance block structure.
Internal Buy / Sell Volume Split
Both Fibonacci zones and support/resistance zones use internal buy/sell volume distribution logic.
This volume split is derived from historical chart data and internal overlap calculations. It is a chart-based analytical representation, not exchange-native bid/ask data and not a direct order book feed.
The purpose of the split is to provide visual context about how volume is distributed inside each displayed zone.
Image 5 — Support / Resistance Buy-Sell Split



Shows the complete box-based layout of the script, including Fibonacci zone boxes, buy/sell sub-boxes, right-side information boxes, and support/resistance volume blocks.
Customization
The script includes adjustable settings for:
pivot detection behavior
Fibonacci direction and extension
visible Fibonacci levels
line style and colors
support/resistance colors
volume box widths
right-side info box widths
support/resistance lookback behavior
This allows users to adapt the visualization to different chart layouts and analysis preferences.
What This Script Does Not Do
It does not forecast future price levels
It does not guarantee reversals or continuations
It does not generate standalone trading signals
It does not provide broker, exchange, or true order book execution data
It does not provide financial advice or trading recommendations
Notes
All calculations are derived from chart data, user-defined settings, and rule-based internal logic.
This script should be used as a structural and visual analysis tool. It is intended to help users study price structure, Fibonacci mapping, and localized volume behavior inside predefined zones.
Overview
Fibonacci Order Blocks is a rule-based structural analysis and visualization tool that combines pivot-based Fibonacci mapping with volume-distributed support and resistance zones.
The Fibonacci foundation used in this script was built on auto Fibonacci correction techniques available on TradingView. Thanks to the original technical groundwork and to the TradingView Pine community for the structural ideas that helped shape this project. On top of that base, this script extends the framework with Fibonacci zone boxes, internal buy/sell volume split, right-side information boxes, and support/resistance order block visualization.
This script is designed for structural chart analysis and visual interpretation.
It does not predict future price direction.
It does not provide standalone entry or exit signals.
It does not provide investment advice.
Fibonacci Structure
The script automatically builds a Fibonacci leg between the latest confirmed structural pivots.
Each enabled Fibonacci level can display:
the Fibonacci line itself
a local main zone box
a buy-side sub-box
a sell-side sub-box
This makes each level readable as a price zone rather than as a line only.
Image 1 — Fibonacci Lines
Shows the pivot-based Fibonacci structure used as the main framework of the script.
Image 2 — Fibonacci Level Boxes
Shows the Fibonacci main boxes and the internal buy/sell sub-boxes for enabled levels.
Fibonacci Information Boxes
Each Fibonacci zone can also display separate right-side information boxes.
These boxes are used to show:
total volume for the zone
Fibonacci level value
exact price value
They are separated from the main Fibonacci box to improve readability and make the chart easier to interpret visually.
Image 3 — Fibonacci Info Boxes
Shows the separate total-volume box and the level/price information boxes displayed to the right of Fibonacci zones.
Support and Resistance Zones
The indicator also builds structural support and resistance zones using the active chart context and lookback settings.
Each zone includes:
a main support or resistance box
total zone volume displayed on the main box
internal buy and sell sub-boxes
These zones are intended to help visualize how localized volume is distributed inside broader structural areas.
Image 4 — Support and Resistance Zones
Shows the main support and resistance block structure.
Internal Buy / Sell Volume Split
Both Fibonacci zones and support/resistance zones use internal buy/sell volume distribution logic.
This volume split is derived from historical chart data and internal overlap calculations. It is a chart-based analytical representation, not exchange-native bid/ask data and not a direct order book feed.
The purpose of the split is to provide visual context about how volume is distributed inside each displayed zone.
Image 5 — Support / Resistance Buy-Sell Split
Shows the complete box-based layout of the script, including Fibonacci zone boxes, buy/sell sub-boxes, right-side information boxes, and support/resistance volume blocks.
Customization
The script includes adjustable settings for:
pivot detection behavior
Fibonacci direction and extension
visible Fibonacci levels
line style and colors
support/resistance colors
volume box widths
right-side info box widths
support/resistance lookback behavior
This allows users to adapt the visualization to different chart layouts and analysis preferences.
What This Script Does Not Do
It does not forecast future price levels
It does not guarantee reversals or continuations
It does not generate standalone trading signals
It does not provide broker, exchange, or true order book execution data
It does not provide financial advice or trading recommendations
Notes
All calculations are derived from chart data, user-defined settings, and rule-based internal logic.
This script should be used as a structural and visual analysis tool. It is intended to help users study price structure, Fibonacci mapping, and localized volume behavior inside predefined zones.
版本注释
Added a new Box Text Size setting for box-based elements.Text inside the volume and information boxes can now be adjusted with the following options:
Auto, Small, Normal, Large, and Huge
This update improves readability across different chart layouts, screen sizes, and user preferences.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
All scripts & content provided by yigdeli are for informational & educational purposes only.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
All scripts & content provided by yigdeli are for informational & educational purposes only.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。