OPEN-SOURCE SCRIPT
已更新

RTH Session Bar Counter EU/US/Asia v.2

198
Counts bars inside Regular Trading Hours for Frankfurt (DAX), London (FTSE), US (NYSE/Nasdaq), or Tokyo (Nikkei) — auto-detected from the chart's symbol, with manual override.

Auto-detects the right session, or force it manually
Resets each session, runs through the Tokyo lunch break without resetting
Editable RTH hours per session
Hour-end bars marked in a different color
Optional marker on a specific bar number
Adjustable size, color, and offset
Works on any intraday timeframe
Session times use each exchange's own local time + timezone, so they're correct regardless of your chart's timezone and auto-adjust for DST — no manual UTC math needed.










版本注释
**v2.1 — Release Notes**

- Removed the "Switch to an intraday timeframe" warning label.
- The indicator now stays completely silent (no numbers, no shading, no labels) on any timeframe above 1h, instead of showing a warning.
- The existing "no session match" warning is unaffected and still shows when a symbol's timezone can't be auto-detected — but only on timeframes 1h and below.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。