Local Time of Each Candle HoverClock12H
- Индикаторы
- Ashwin Dileep Ashtekardeshpande
- Версия: 1.30
- Обновлено: 11 марта 2026
- Активации: 5
This MQL5 code defines a custom technical indicator named HoverClock12H. Its primary purpose is to enhance the MetaTrader 5 (MT5) charting experience by displaying a localized, 12-hour format time label that updates dynamically based on where you hover your mouse cursor.
Unlike the default MT5 "Crosshair" tool which usually shows the server time, this indicator converts candle time into your specific local time zone.
## Key Features
-
Dynamic Mouse Tracking: It uses the CHARTEVENT_MOUSE_MOVE event to detect the exact time coordinates of your cursor as it moves across the chart.
-
Automatic GMT Conversion: The script calculates the difference between your broker's server time and GMT, then applies your custom offset to ensure the time is accurate to your region.
-
12-Hour Formatting: Converts standard 24-hour time into a user-friendly HH:MM AM/PM format.
-
Visual Customization: Users can modify the font size, color (defaulting to Gold), and font type directly from the indicator settings.
-
Persistent Label: Creates a text label in the lower-left corner of the chart, ensuring it remains visible without cluttering the price action.
