OPEN-SOURCE SCRIPT
Timeframe Direction

This indicator automatically marks supply and demand zones across three timeframes — 1H, 4H, and Daily — and shows the trend bias (Buy / Sell / Flat) for each, all on a single chart.
Zone detection (classic method)
Zones are formed using the textbook supply/demand pattern: a small consolidation base (1–3 candles with tight bodies) followed by a strong departure candle measured against ATR. A bullish leg-out creates a green DEMAND zone; a bearish leg-out creates a red SUPPLY zone. Each zone is labeled with its source timeframe (1H, 4H, 1D), so you can instantly see which zones carry more weight.
Multi-timeframe trend bias
A corner table reads the EMA relationship (fast vs slow) on each timeframe and reports the directional bias as BUY, SELL, or FLAT — giving you 1H, 4H, and Daily context at a glance for top-down alignment.
Key features
Classic consolidation-plus-impulse zone logic, not just raw pivots
Simultaneous 1H, 4H, and Daily zones, each labeled
EMA-slope trend bias table for all three timeframes
Optional automatic removal of zones once price mitigates (returns into) them
Adjustable base-candle sensitivity, ATR leg multiple, EMA lengths, colors, and zone extension
Built-in alerts for 1H bias flips to Buy or Sell
How to use it
Look for trade setups where the lower-timeframe price reaches a higher-timeframe zone while the trend bias agrees — for example, price tapping a 4H/Daily demand zone while the 1H bias turns BUY. Tune the base body % and ATR multiple to match the volatility of your instrument.
This tool is for educational and analytical purposes only and is not financial advice. Always combine it with your own risk management.
Zone detection (classic method)
Zones are formed using the textbook supply/demand pattern: a small consolidation base (1–3 candles with tight bodies) followed by a strong departure candle measured against ATR. A bullish leg-out creates a green DEMAND zone; a bearish leg-out creates a red SUPPLY zone. Each zone is labeled with its source timeframe (1H, 4H, 1D), so you can instantly see which zones carry more weight.
Multi-timeframe trend bias
A corner table reads the EMA relationship (fast vs slow) on each timeframe and reports the directional bias as BUY, SELL, or FLAT — giving you 1H, 4H, and Daily context at a glance for top-down alignment.
Key features
Classic consolidation-plus-impulse zone logic, not just raw pivots
Simultaneous 1H, 4H, and Daily zones, each labeled
EMA-slope trend bias table for all three timeframes
Optional automatic removal of zones once price mitigates (returns into) them
Adjustable base-candle sensitivity, ATR leg multiple, EMA lengths, colors, and zone extension
Built-in alerts for 1H bias flips to Buy or Sell
How to use it
Look for trade setups where the lower-timeframe price reaches a higher-timeframe zone while the trend bias agrees — for example, price tapping a 4H/Daily demand zone while the 1H bias turns BUY. Tune the base body % and ATR multiple to match the volatility of your instrument.
This tool is for educational and analytical purposes only and is not financial advice. Always combine it with your own risk management.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.