OPEN-SOURCE SCRIPT
Initial Balance

Initial Balance is a clean session tool that tracks and visualizes the opening range for your chosen time window.
This indicator:
- Captures Initial Balance High and Low during the selected IB session
- Draws optional 1.5x and 2.0x range extensions above and below the IB
- Uses a session-locked fill: the fill width stops expanding when the IB window ends
- Keeps line levels and styling responsive so visibility settings update live
Why this is useful:
- Quickly frame the day around the opening range
- Spot expansion and potential continuation zones with 1.5x and 2.0x extensions
- Keep charts cleaner with a fill that does not continue extending after IB is complete
Inputs:
- IB Time Range
- Timezone
- Show/hide toggles for IB High, IB Low, 1.5x extension, 2.0x extension, and fill
- Per-line color and width controls
Notes:
- Designed as a visual reference tool, not a standalone strategy
- Best used with your existing market structure, trend, and risk rules
Not financial advice.
This indicator:
- Captures Initial Balance High and Low during the selected IB session
- Draws optional 1.5x and 2.0x range extensions above and below the IB
- Uses a session-locked fill: the fill width stops expanding when the IB window ends
- Keeps line levels and styling responsive so visibility settings update live
Why this is useful:
- Quickly frame the day around the opening range
- Spot expansion and potential continuation zones with 1.5x and 2.0x extensions
- Keep charts cleaner with a fill that does not continue extending after IB is complete
Inputs:
- IB Time Range
- Timezone
- Show/hide toggles for IB High, IB Low, 1.5x extension, 2.0x extension, and fill
- Per-line color and width controls
Notes:
- Designed as a visual reference tool, not a standalone strategy
- Best used with your existing market structure, trend, and risk rules
Not financial advice.
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.
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.