EA-78 · Utility

LoongClock

LoongClock is a non-trading utility EA that displays a clock on the chart. It uses a timer event to update the clock every second and supports both local and server time sources via a configurable input parameter.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskSafe
Rating★★☆☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1, W1, MN
IndicatorsNone
Author—

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

This EA does not involve any trading strategy; it is a pure utility EA designed to display a clock on the chart. Entry conditions, exit conditions, position sizing, and money management are all not applicable since the EA does not execute any trading operations. The core logic uses EventSetTimer to set a 1-second interval timer, and the OnTimer callback invokes the CLoongClock object's Timer method to refresh the clock display, followed by ChartRedraw to repaint the chart. Through the ENUM_TIME_FUNC enumeration parameter, users can choose between local time (TIME_FUNC_LOCAL) or server time to drive the clock display. The overall implementation is very clean, encapsulating the clock rendering logic in the CLoongClock class while the main file handles only initialization, timer dispatch, and cleanup.

Strengths

  • Clean code architecture with clock logic encapsulated in the CLoongClock class, achieving good separation of concerns
  • Supports switching between local time and server time sources, providing flexibility
  • Uses EventSetTimer mechanism instead of relying on tick events, so the clock refreshes even when no quotes arrive

Weaknesses

  • OnTick function is empty, potentially causing unnecessary function call overhead
  • Only one input parameter; lacks appearance customization options such as color, font, position, etc.
  • Depends on external header file CLoongClock.mqh, making it impossible to independently evaluate full functionality and potential issues

Possible improvements

  • Add appearance customization parameters such as color, font size, display position, 12/24 hour format, etc.
  • Remove the empty OnTick function or add useful logic to reduce unnecessary callback overhead

Risk assessment

Overall risk: Safe

  • This EA is purely a utility and does not execute any trading operations, posing no trading risk
  • The timer triggers ChartRedraw every second which may cause high-frequency chart repainting, potentially impacting performance on low-end devices

Evaluation scores

Code quality3.0
Strategy logic1.0
Risk management5.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.7

Parameters

ParameterDefaultDescription
inp_tfTIME_FUNC_LOCALTime function type: local time or server time for clock display

Similar Utility EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.