OPEN-SOURCE SCRIPT
מעודכן Banks Order Blocks

Banks Order Blocks (BOB) with Dynamic Volume Tracking
Overview
The Banks Order Blocks (BOB) indicator is a highly advanced price action and volume analysis tool designed to identify significant supply and demand zones where institutional players (banks, market makers) are likely stepping into the market. Unlike traditional order block indicators that merely draw static boxes, BOB dynamically tracks market volume inside the order block zones bar-by-bar, giving you a real-time visualization of buying and selling pressure exactly where it matters most.
Key Features & The Core Mechanic
Dynamic Volume Bars: Whenever an order block is active or price returns to it, volume bars are drawn directly attached to the block. This allows you to visually gauge whether the market is defending the zone with high volume or abandoning it.
Smart State Management: The indicator intelligently manages "Active" and "Passive" blocks. When a new Bullish block forms, it becomes the Active one. If price action later dips back into an older, Passive block, the indicator instantly clears the old, cluttered volume data of that passive block and starts printing fresh volume bars from the exact candle that re-entered the zone. This is the core mechanic—you only see the volume that is relevant right now during a retest of conflicting zones.
Built-in Alerts: Stay informed with automated alerts for new order block formations, price re-entering a block, and high-volume directional candles forming inside a block.
Mid-line (0.5 Level) Tracking: Each block includes a dynamically drawn 50% (Equilibrium) dotted line, a critical level often defended by institutions.
How to Trade with BOB (Setup Guide)
1. The Primary Setup (Trend Continuation / Reversal)
Wait for a New Order Block to form (Green for Bullish/Demand, Red for Bearish/Supply).
Watch for the price to retrace and re-enter the active zone.
Confirmation: Look at the volume bars generating inside the block. A successful defense of a Bullish Order Block should show green volume bars heavily outweighing red ones, especially crossing above the local volume moving average (indicated by solid, non-transparent colors).
Entry: Enter on a high-volume directional candle closing inside or pushing away from the order block.
Invalidation: If a candle closes below the bottom of a Bullish block (or above a Bearish block), the thesis is invalidated, and the indicator will automatically delete the block.
2. The Clashing Zones Setup (Advanced Tactics)
Sometimes price action escapes an Active Bullish block and enters a higher, older Bearish block.
Because of BOB's Smart State Management, as soon as the price enters the opposing older block, fresh volume bars will start generating inside that specific zone.
Confirmation: You now have a real-time tug-of-war. Watch the volume bars forming in both the active and the passive block. Enter in the direction of the block that is printing aggressive, high-volume (solid color) bars, confirming institutional defense.
Customization
Pivot Length: Adjust the sensitivity of order block detection.
Optional Overlays: Easily toggle VWAP or various Moving Averages (SMA, EMA, WMA, RMA) directly from the settings to add confluence to your entries.
Disclaimer
The information and tools provided by this script are for educational and informational purposes only and do not constitute financial or investment advice. Trading in financial markets involves a high degree of risk and may not be suitable for all investors. Past performance is not indicative of future results. Always conduct your own research and consult with a certified financial advisor before making any trading decisions. The author is not responsible for any financial losses incurred while using this indicator.
Overview
The Banks Order Blocks (BOB) indicator is a highly advanced price action and volume analysis tool designed to identify significant supply and demand zones where institutional players (banks, market makers) are likely stepping into the market. Unlike traditional order block indicators that merely draw static boxes, BOB dynamically tracks market volume inside the order block zones bar-by-bar, giving you a real-time visualization of buying and selling pressure exactly where it matters most.
Key Features & The Core Mechanic
Dynamic Volume Bars: Whenever an order block is active or price returns to it, volume bars are drawn directly attached to the block. This allows you to visually gauge whether the market is defending the zone with high volume or abandoning it.
Smart State Management: The indicator intelligently manages "Active" and "Passive" blocks. When a new Bullish block forms, it becomes the Active one. If price action later dips back into an older, Passive block, the indicator instantly clears the old, cluttered volume data of that passive block and starts printing fresh volume bars from the exact candle that re-entered the zone. This is the core mechanic—you only see the volume that is relevant right now during a retest of conflicting zones.
Built-in Alerts: Stay informed with automated alerts for new order block formations, price re-entering a block, and high-volume directional candles forming inside a block.
Mid-line (0.5 Level) Tracking: Each block includes a dynamically drawn 50% (Equilibrium) dotted line, a critical level often defended by institutions.
How to Trade with BOB (Setup Guide)
1. The Primary Setup (Trend Continuation / Reversal)
Wait for a New Order Block to form (Green for Bullish/Demand, Red for Bearish/Supply).
Watch for the price to retrace and re-enter the active zone.
Confirmation: Look at the volume bars generating inside the block. A successful defense of a Bullish Order Block should show green volume bars heavily outweighing red ones, especially crossing above the local volume moving average (indicated by solid, non-transparent colors).
Entry: Enter on a high-volume directional candle closing inside or pushing away from the order block.
Invalidation: If a candle closes below the bottom of a Bullish block (or above a Bearish block), the thesis is invalidated, and the indicator will automatically delete the block.
2. The Clashing Zones Setup (Advanced Tactics)
Sometimes price action escapes an Active Bullish block and enters a higher, older Bearish block.
Because of BOB's Smart State Management, as soon as the price enters the opposing older block, fresh volume bars will start generating inside that specific zone.
Confirmation: You now have a real-time tug-of-war. Watch the volume bars forming in both the active and the passive block. Enter in the direction of the block that is printing aggressive, high-volume (solid color) bars, confirming institutional defense.
Customization
Pivot Length: Adjust the sensitivity of order block detection.
Optional Overlays: Easily toggle VWAP or various Moving Averages (SMA, EMA, WMA, RMA) directly from the settings to add confluence to your entries.
Disclaimer
The information and tools provided by this script are for educational and informational purposes only and do not constitute financial or investment advice. Trading in financial markets involves a high degree of risk and may not be suitable for all investors. Past performance is not indicative of future results. Always conduct your own research and consult with a certified financial advisor before making any trading decisions. The author is not responsible for any financial losses incurred while using this indicator.
הערות שחרור
Release Notes (Update):Fixed Volume Bar Disappearance: Resolved an issue where volume bars inside an active order block would unexpectedly clear or disappear when price fluctuated near the zone boundaries or when a smaller block formed nearby. Active volume bars will now persist reliably until the zone is fully invalidated.
Added Smart Volume Lock (Anti-Overlap System): Addressed the "box-inside-a-box" overlapping issue. If multiple order blocks of the same direction stack or overlap, the indicator's engine will now intelligently select only the most recent/relevant block to draw volume bars. This prevents overlapping visuals and keeps the chart clean and easy to read.
Improved State Management: Enhanced the logic for how passive blocks "wake up" when price re-enters them, ensuring smooth and accurate volume tracking during clashing zone scenarios.
הערות שחרור
Release Notes (Update):Volume Bars Toggle Added: Based on user feedback, a new "Show Volume Bars" option has been added to the settings. You can now easily toggle the dynamic volume bars on or off depending on your visual preference. By default, the volume bars remain enabled. For those who prefer a minimalist chart with just the order block zones and equilibrium lines, you can now turn the volume bars off with a single click.
הערות שחרור
Added - Volume Bar Height Multiplierהערות שחרור
BOB (Banks Order Blocks) + BLVL Integration1. Seamless BLVL (Market Structure) Integration
Fully merged the BLVL (BOS/CHoCH) engine with the BOB script.
Breakout candidates are now clearly visible as dashed lines (Green for Up BOS, Red for Down BOS) extending from pivots, with a thickness of 2 for better visibility.
The default Fractal Length for BLVL has been set to 10 (independent of BOB's pivot settings) for faster reaction times.
2. Smart Chart Cleanup & Fading System
No More Overlapping Clutter: When a new Bullish or Bearish Order Block forms, the older blocks of the same direction are no longer deleted but are gracefully faded (transparency increased).
Faded blocks automatically lose their text labels and internal volume bars to keep your chart incredibly clean. Only the most recent (fresh) 1 Bullish and 1 Bearish box will display full details.
Aggressive Reversals (Opposite Box Fading): Added an option (enabled by default) where if a Bullish box forms inside an active Bearish box, the Bearish box immediately fades out. This visually confirms aggressive buyer takeovers (and vice versa for sellers).
3. Dynamic Box Re-activation
Old, faded order blocks still act as powerful points of interest. If price re-enters an older faded box, its color immediately re-activates to full opacity, signaling that the zone is currently being tested as a support/resistance area.
4. Breakout Reaction Markers (Arrows)
Added tiny Triangle Up/Down markers on the specific candles that cause a structural breakout (BOS) after an order block has formed.
First Reaction Toggle: Added an optional toggle in the settings: "Show Only First Breakout per Box (First Reaction)". When enabled, it only marks the very first breakout from a box to prevent an "arrow dump" in choppy markets. (Disabled by default to show all breakout candles).
5. Revamped Alert System
Stripped away the noisy old alerts and replaced them with a highly precise, context-aware alert system based on structural breakouts.
New Alerts: "Bullish BOS after Bullish Box" and "Bearish BOS after Bearish Box". Alerts trigger exactly when the breakout marker arrows appear on the chart, giving you high-probability confirmation signals.
הערות שחרור
Box Overlap Logic Enhancement: Added a new setting, "Delete Old Box if New Forms Inside". When enabled, if a newly formed Order Block appears completely inside an older Order Block, the older box is now entirely deleted to keep the chart clean, rather than just being faded.Custom Volume Bar Colors: Added full color customization for the Volume Bars inside the settings. You can now independently set the colors for High/Low volume for both bullish and bearish bars.
Contextual Volume Focus: Improved the volume bar visibility logic inside the Order Blocks to help traders focus on the dominant side. Inside Bullish (Green) boxes, bullish volume bars remain prominent while bearish volume bars are rendered highly transparent. Conversely, inside Bearish (Red) boxes, bearish volume bars take focus while bullish volume bars are faded into the background.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.