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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.