OPEN-SOURCE SCRIPT
Daily Bias Structure Map

Daily Bias Structure Map
An automated market-structure tool that reads swing highs/lows the same way a discretionary ICT-style trader would — and marks up your chart with the exact levels you'd draw by hand: origin, break of structure, liquidity target, and equilibrium.
What it does
The indicator tracks pivot highs and lows in real time. When price closes back through the most recent unbroken pivot, it registers a break of structure (BOS) and flips bias — then automatically plots:
- BOS line— the swing that was just broken, confirming the shift in bias
- Origin line — the opposing swing that started the current leg
- Liquidity target— the next untapped swing beyond the BOS, i.e. the level price is being drawn toward
- Equilibrium (50%)- the midpoint between origin and liquidity target
- Premium / Discount zones— labeled above and below equilibrium, so you can see at a glance whether price is in a favorable zone to enter with bias, or extended and better left alone
- Structure trendline— connects the origin swing to the most recent higher low (in a bullish leg) or lower high (in a bearish leg), extended forward
- Bias label — a pinned box in the top-left corner showing BULLISH / BEARISH / NEUTRAL, updating live as structure shifts
All levels and the bias label recalculate and redraw automatically on every new BOS, so the chart never gets cluttered with stale lines.
**How to use it**
1. Add it to your higher-timeframe chart (daily or 4H is standard) to establish directional bias before session trading.
2. Treat BULLISH as "look for longs only," BEARISH as "look for shorts only" — the model works best when you don't fight the labeled bias.
3. Use the premium/discount split to time entries: buy from discount in a bullish bias, sell from premium in a bearish bias, rather than chasing price mid-range.
4. Drop to a lower timeframe (5–15m) for your actual trigger (liquidity sweep + MSS + FVG/OB entry) once bias is established here.
5. Enable alerts for "Bullish BOS" / "Bearish BOS" to get notified the moment structure shifts, without watching the chart.
**Settings**
- *Pivot Lookback* — controls how significant a swing must be to register (higher = fewer, more major swing points; lower = more responsive but noisier)
- Toggle equilibrium, premium/discount labels, liquidity target, origin line, and trendline independently
- Customizable bullish/bearish colors and label text size
**Notes**
Pivots confirm with a lookback delay (standard for any swing-based tool), so the most recent 1–2 candles' structure may adjust slightly as new bars print. This is a bias/context tool, not a standalone entry signal — pair it with your own lower-timeframe confirmation and risk management. Not financial advice.
An automated market-structure tool that reads swing highs/lows the same way a discretionary ICT-style trader would — and marks up your chart with the exact levels you'd draw by hand: origin, break of structure, liquidity target, and equilibrium.
What it does
The indicator tracks pivot highs and lows in real time. When price closes back through the most recent unbroken pivot, it registers a break of structure (BOS) and flips bias — then automatically plots:
- BOS line— the swing that was just broken, confirming the shift in bias
- Origin line — the opposing swing that started the current leg
- Liquidity target— the next untapped swing beyond the BOS, i.e. the level price is being drawn toward
- Equilibrium (50%)- the midpoint between origin and liquidity target
- Premium / Discount zones— labeled above and below equilibrium, so you can see at a glance whether price is in a favorable zone to enter with bias, or extended and better left alone
- Structure trendline— connects the origin swing to the most recent higher low (in a bullish leg) or lower high (in a bearish leg), extended forward
- Bias label — a pinned box in the top-left corner showing BULLISH / BEARISH / NEUTRAL, updating live as structure shifts
All levels and the bias label recalculate and redraw automatically on every new BOS, so the chart never gets cluttered with stale lines.
**How to use it**
1. Add it to your higher-timeframe chart (daily or 4H is standard) to establish directional bias before session trading.
2. Treat BULLISH as "look for longs only," BEARISH as "look for shorts only" — the model works best when you don't fight the labeled bias.
3. Use the premium/discount split to time entries: buy from discount in a bullish bias, sell from premium in a bearish bias, rather than chasing price mid-range.
4. Drop to a lower timeframe (5–15m) for your actual trigger (liquidity sweep + MSS + FVG/OB entry) once bias is established here.
5. Enable alerts for "Bullish BOS" / "Bearish BOS" to get notified the moment structure shifts, without watching the chart.
**Settings**
- *Pivot Lookback* — controls how significant a swing must be to register (higher = fewer, more major swing points; lower = more responsive but noisier)
- Toggle equilibrium, premium/discount labels, liquidity target, origin line, and trendline independently
- Customizable bullish/bearish colors and label text size
**Notes**
Pivots confirm with a lookback delay (standard for any swing-based tool), so the most recent 1–2 candles' structure may adjust slightly as new bars print. This is a bias/context tool, not a standalone entry signal — pair it with your own lower-timeframe confirmation and risk management. 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.