HTF Time Lines (1m)

765
HTF Time Lines & 1H / 4H High-Low Zones (1m)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ENGLISH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

OVERVIEW
Scalping on the 1-minute chart, it is easy to lose track of the higher-timeframe structure. This indicator brings it onto the 1m chart:

• Vertical lines at every 1H and 4H candle open, so you always see where each hourly and 4-hour candle starts and ends.
• Upcoming lines for the next hours, so you know in advance when the next 1H / 4H candle opens.
• Zones at the High and Low of the previous 1H and 4H candle, which are the levels price often comes back to test.
• Untouched zones: previous highs/lows that price never reached stay on the chart until price finally reaches them.

The script is designed for the 1-minute timeframe only. On other timeframes it shows a warning and draws nothing.

HOW THE ZONES WORK
1. When a new 1H (or 4H) candle opens, the High and Low of the candle that just closed are drawn as two zones and extended to the right.
– High zone: from the high downward by the zone height.
– Low zone: from the low upward by the zone height.
2. The zone is marked as consumed when price reaches it. You choose the rule:
– "Touches zone": price enters the zone.
– "Reaches level": price reaches the exact High / Low.
3. When the next candle opens:
– A zone that price reached is removed (or cut where it ended, if "Keep consumed zones" is on).
– A zone that price never reached becomes an untouched zone (blue by default) and stays on the chart.
4. An untouched zone is removed as soon as price reaches it.

Optional filters for untouched zones:
• Min distance between zones: if two untouched zones of the same kind (high/high or low/low) are too close, only the farther one is kept (the higher high or the lower low).
• Delete untouched zones when a zone breaks: when price consumes a 1H/4H zone, untouched zones within this distance are deleted.
• Max untouched zones: the oldest zones are removed when the limit is reached.

PER-SYMBOL ZONE HEIGHT
A good zone height on Gold is very different from one on EURUSD or NAS100. You can therefore set the height for each symbol:
• Zone height (default / fallback): used for any symbol not in the list.
• Height Unit: Pips, Ticks or Price.
• Per-Symbol Height Overrides: one symbol per line, in the form SYMBOL:HEIGHT, for example:
XAUUSD:150
EURUSD:0.75
NAS100:75
The symbol name is matched against the chart's ticker (without the exchange prefix).
• Custom Pip Size: leave at 0 for auto-detect (10 × tick size for 3/5-digit FX quotes), or enter a value for other instruments.

The distance settings for untouched zones use the same unit.

SETTINGS
• 1H Lines / 4H Lines: show, color, width, style.
• Upcoming lines: show and how many hours ahead.
• Zones: show 1H / 4H / untouched zones, height and unit, per-symbol list, colors, border width and style, keep-or-delete consumed zones, max untouched zones, distance filters, and the consumption rule.

NOTES
• Hour boundaries follow TradingView's own 1H and 4H candles for the symbol, so 4H lines match the 4H chart of the same symbol.
• Upcoming lines are projected hour by hour from the current time and do not account for weekends or market closures.
• This is a visual tool for reading market structure. It does not give buy or sell signals and is not financial advice.


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
فارسی
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

معرفی
وقتی روی تایم یک دقیقه اسکالپ می‌کنید، ساختار تایم‌های بالاتر به‌راحتی از دید خارج می‌شود. این اندیکاتور آن ساختار را روی چارت یک دقیقه می‌آورد:

• خطوط عمودی در شروع هر کندل ۱ ساعته و ۴ ساعته، تا همیشه ببینید هر کندل ساعتی و ۴ ساعته کجا شروع و تمام می‌شود.
• خطوط آینده برای ساعت‌های بعد، تا از قبل بدانید کندل ۱ ساعته و ۴ ساعته‌ی بعدی کی باز می‌شود.
• زون روی سقف (High) و کف (Low) کندل ۱ ساعته و ۴ ساعته‌ی قبلی؛ سطوحی که قیمت معمولاً برای تست به آن‌ها برمی‌گردد.
• زون‌های دست‌نخورده: سقف و کف‌های قبلی که قیمت هیچ‌وقت به آن‌ها نرسیده، روی چارت می‌مانند تا قیمت به آن‌ها برسد.

این اندیکاتور فقط برای تایم‌فریم یک دقیقه طراحی شده است. در تایم‌های دیگر فقط یک هشدار نمایش می‌دهد و چیزی رسم نمی‌کند.

زون‌ها چطور کار می‌کنند
۱. وقتی کندل ۱ ساعته (یا ۴ ساعته) جدید باز می‌شود، High و Low کندلی که بسته شده به‌صورت دو زون رسم می‌شوند و به سمت راست ادامه پیدا می‌کنند.
– زون سقف: از High به سمت پایین، به اندازه‌ی ارتفاع زون.
– زون کف: از Low به سمت بالا، به اندازه‌ی ارتفاع زون.
۲. وقتی قیمت به زون برسد، زون مصرف‌شده حساب می‌شود. قانونش را خودتان انتخاب می‌کنید:
– «Touches zone»: قیمت وارد زون شود.
– «Reaches level»: قیمت دقیقاً به خود High / Low برسد.
۳. با باز شدن کندل بعدی:
– زونی که قیمت به آن رسیده حذف می‌شود (یا اگر «Keep consumed zones» روشن باشد، در همان نقطه بریده می‌شود و می‌ماند).
– زونی که قیمت هیچ‌وقت به آن نرسیده، به زون دست‌نخورده (پیش‌فرض آبی) تبدیل می‌شود و روی چارت می‌ماند.
۴. زون دست‌نخورده به‌محض اینکه قیمت به آن برسد حذف می‌شود.

فیلترهای اختیاری برای زون‌های دست‌نخورده:
• حداقل فاصله بین زون‌ها: اگر دو زون دست‌نخورده‌ی هم‌نوع (سقف با سقف یا کف با کف) خیلی به هم نزدیک باشند، فقط زون دورتر می‌ماند (سقف بالاتر یا کف پایین‌تر).
• حذف زون‌های دست‌نخورده هنگام شکست زون: وقتی قیمت یک زون ۱ ساعته یا ۴ ساعته را مصرف کند، زون‌های دست‌نخورده‌ای که در این فاصله از آن باشند حذف می‌شوند.
• حداکثر تعداد زون دست‌نخورده: وقتی به سقف تعداد برسد، قدیمی‌ترین زون‌ها حذف می‌شوند.

ارتفاع زون برای هر نماد
ارتفاع مناسب زون روی طلا با EURUSD یا NAS100 خیلی فرق دارد؛ برای همین می‌توانید برای هر نماد ارتفاع جداگانه تعیین کنید:
• Zone height (default / fallback): ارتفاع پیش‌فرض برای نمادهایی که در لیست نیستند.
• Height Unit: واحد ارتفاع؛ پیپ (Pips)، تیک (Ticks) یا قیمت (Price).
• Per-Symbol Height Overrides: در هر خط یک نماد به شکل SYMBOL:HEIGHT، مثلاً:
XAUUSD:150
EURUSD:0.75
NAS100:75
نام نماد با تیکر چارت (بدون پیشوند صرافی) مقایسه می‌شود.
• Custom Pip Size: روی ۰ بگذارید تا خودکار تشخیص داده شود (برای جفت‌ارزهای ۳ و ۵ رقمی، ۱۰ برابر تیک)، یا برای ابزارهای دیگر مقدار دلخواه وارد کنید.

تنظیمات فاصله‌ی زون‌های دست‌نخورده هم با همین واحد حساب می‌شوند.

تنظیمات
• 1H Lines / 4H Lines: نمایش، رنگ، ضخامت و سبک خط.
• Upcoming lines: نمایش خطوط آینده و تعداد ساعت‌های جلوتر.
• Zones: نمایش زون‌های ۱ ساعته، ۴ ساعته و دست‌نخورده، ارتفاع و واحد آن، لیست نمادها، رنگ‌ها، ضخامت و سبک حاشیه، نگه‌داشتن یا حذف زون‌های مصرف‌شده، حداکثر تعداد زون دست‌نخورده، فیلترهای فاصله و قانون مصرف زون.

نکته‌ها
• مرز ساعت‌ها از روی کندل‌های ۱ ساعته و ۴ ساعته‌ی خود تریدینگ‌ویو برای همان نماد گرفته می‌شود، پس خطوط ۴ ساعته با چارت ۴ ساعته‌ی همان نماد یکی است.
• خطوط آینده ساعت‌به‌ساعت از زمان فعلی جلو می‌روند و تعطیلی آخر هفته یا بسته بودن بازار را در نظر نمی‌گیرند.
• این یک ابزار بصری برای خواندن ساختار بازار است؛ سیگنال خرید یا فروش نمی‌دهد و توصیه‌ی مالی نیست.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน