OPEN-SOURCE SCRIPT
Cập nhật 30m Rolling IB & Extensions

Overview
The 30m Rolling IB & Extensions indicator is designed for day traders and scalpers who monitor short-term price action and structure on intraday timeframes. Instead of using a traditional daily or session-long Initial Balance, this script continuously tracks and projects a rolling 30-minute Initial Balance. It measures the High and Low of a 30-minute interval and projects those levels—along with precision extensions—onto the following 30-minute period.
How It Works
Time-Restricted Tracking: The indicator actively monitors price action during a specific, user-defined intraday session (defaulting to 19:00 - 16:00 EST). During this time, it tracks the Highest High and Lowest Low of every 30-minute block.
Rolling Projections: Once a 30-minute block closes, its High and Low are established as the new "Initial Balance" (IB). These levels are then plotted forward over the current 30-minute candle(s) to act as immediate support and resistance references.
Fibonacci-Style Extensions: Beyond the core IB High and Low, the indicator calculates the range of that previous 30-minute block and plots micro-extensions (0.1, 0.2, 0.3, 0.4, and 0.5) above the High and below the Low.
Trading Application
Range Breakouts & Fades: The plotted IB High and Low serve as immediate, short-term battlegrounds. A strong break beyond the IB can signal a short-term trend continuation into the extension levels, while failures at the IB edges can offer quick mean-reversion (fade) opportunities.
Targeting & Stop Placement: The 0.1 through 0.5 extensions act as dynamic, volatility-adjusted price targets or areas to scale out of positions.
Market Context: Because it resets every 30 minutes, this indicator adapts incredibly fast to intraday volatility compared to static daily levels, keeping you focused strictly on the most recent short-term market structure.
Features
Dynamic labels that display exactly on the current price scale for quick reference.
Customizable active tracking session (Input your own preferred start/stop times and timezone).
Clean, non-intrusive linebr plots that only show up during active periods and don't muddy up your chart with connecting lines during the inactive hours.
The 30m Rolling IB & Extensions indicator is designed for day traders and scalpers who monitor short-term price action and structure on intraday timeframes. Instead of using a traditional daily or session-long Initial Balance, this script continuously tracks and projects a rolling 30-minute Initial Balance. It measures the High and Low of a 30-minute interval and projects those levels—along with precision extensions—onto the following 30-minute period.
How It Works
Time-Restricted Tracking: The indicator actively monitors price action during a specific, user-defined intraday session (defaulting to 19:00 - 16:00 EST). During this time, it tracks the Highest High and Lowest Low of every 30-minute block.
Rolling Projections: Once a 30-minute block closes, its High and Low are established as the new "Initial Balance" (IB). These levels are then plotted forward over the current 30-minute candle(s) to act as immediate support and resistance references.
Fibonacci-Style Extensions: Beyond the core IB High and Low, the indicator calculates the range of that previous 30-minute block and plots micro-extensions (0.1, 0.2, 0.3, 0.4, and 0.5) above the High and below the Low.
Trading Application
Range Breakouts & Fades: The plotted IB High and Low serve as immediate, short-term battlegrounds. A strong break beyond the IB can signal a short-term trend continuation into the extension levels, while failures at the IB edges can offer quick mean-reversion (fade) opportunities.
Targeting & Stop Placement: The 0.1 through 0.5 extensions act as dynamic, volatility-adjusted price targets or areas to scale out of positions.
Market Context: Because it resets every 30 minutes, this indicator adapts incredibly fast to intraday volatility compared to static daily levels, keeping you focused strictly on the most recent short-term market structure.
Features
Dynamic labels that display exactly on the current price scale for quick reference.
Customizable active tracking session (Input your own preferred start/stop times and timezone).
Clean, non-intrusive linebr plots that only show up during active periods and don't muddy up your chart with connecting lines during the inactive hours.
Phát hành các Ghi chú
bug fixPhát hành các Ghi chú
made the ib lines and extensions 10 bars ahead of pricePhát hành các Ghi chú
added 25%/50%/75% lines to IBPhát hành các Ghi chú
added better filtering for more accurate s/r lines. Phát hành các Ghi chú
changed time frame to 5m by default and changed the logic to detect extreme swing pointsPhát hành các Ghi chú
updateMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.