# Multi-Function Trading Indicator: Date Display, Bar Counter, and EMA
## English Description
### Overview
This versatile indicator combines three essential trading tools in one package: a customizable date display, an intelligent bar counter that adapts to different markets, and an Exponential Moving Average (EMA). Designed for traders who need clean, informative chart overlays without cluttering their workspace.
### Key Features
#### 1. Smart Date Display
- Shows current date in either full format (Monday · January 1, 2023) or compact format (Mon · 01.01.23)
- Optional day of week display
- Symbol and timeframe information display
- Fully customizable table position, size, and colors that automatically adapt to light/dark chart themes
#### 2. Intelligent Bar Counter
- Counts bars from market open, automatically resetting at the appropriate time
- **Enhanced Market Detection**: Automatically identifies and adapts to different markets:
- **US Futures Markets**: Precisely resets at market open (9:30 AM ET for NY-based exchanges or 8:30 AM CT for Chicago-based exchanges)
- **Hong Kong Futures**: Resets at 9:15 AM HKT
- **Other Markets**: Resets at day change
- Supports all timeframes including intraday, daily, weekly, and monthly
- Customizable display frequency and appearance
#### 3. EMA Indicator
- Configurable period length
- Optional multi-timeframe analysis
- Choice between waiting for candle close or dynamic updates
- Customizable color
### Usage Instructions
1. Add the indicator to your chart
2. Configure the appearance settings for each component
3. For futures trading, the indicator will automatically detect the market type and adjust the bar counter reset time accordingly
### Perfect For
- Day traders tracking intraday movements
- Futures traders working across multiple markets
- Anyone who needs clear visual references for time and price movement
## Chinese Description (中文描述)
### 概述
这款多功能指标集成了三种基本交易工具:可自定义的日期显示、智能适配不同市场的K线计数器和指数移动平均线(EMA)。专为需要清晰、信息丰富且不占用过多图表空间的交易者设计。
### 主要功能
#### 1. 智能日期显示
- 支持完整格式(星期一 · 一月 1, 2023)或简洁格式(周一 · 01.01.23)的日期显示
- 可选择是否显示星期几
- 可显示交易品种和时间周期信息
- 完全可自定义的表格位置、大小和颜色,自动适应明/暗主题
#### 2. 智能K线计数器
- 从市场开盘时开始计数,在适当时间自动重置
- **增强的市场检测**:自动识别并适配不同市场:
- **美国期货市场**:在市场开盘时精确重置(纽约交易所为东部时间9:30,芝加哥交易所为中部时间8:30)
- **香港期货**:在香港时间9:15重置
- **其他市场**:在日期变更时重置
- 支持所有时间周期,包括日内、日线、周线和月线
- 可自定义显示频率和外观
#### 3. EMA指标
- 可配置周期长度
- 可选多时间周期分析
- 可选择等待K线收盘后计算或动态更新
- 可自定义颜色
### 使用说明
1. 将指标添加到您的图表
2. 配置各组件的外观设置
3. 对于期货交易,指标将自动检测市场类型并相应调整K线计数器的重置时间
### 适用人群
- 跟踪日内行情的日内交易者
- 在多个市场交易期货的交易者
- 任何需要清晰的时间和价格走势视觉参考的人
---
This indicator is open-source and free to use. If you find it helpful, please consider giving credit to the original author.
指标代码开源免费使用。如果您觉得它有用,请考虑给原作者一个赞赏。