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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.