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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.