EA-280 · Utility

OnTick(string symbol)

This is a multicurrency event handler template that extends the standard OnTick() to receive tick events for multiple symbols simultaneously. It does not implement any trading logic itself, serving as a framework for building multicurrency EAs.

Open the interactive view (equity curve, symbol switch)

Key facts

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

Backtest results (H1, about 1 year)

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

Strategy analysis

This EA is not a trading strategy but a multicurrency event handling framework template. It replaces the standard OnTick() function with a custom OnTick(string symbol) event handler, enabling the EA to listen to tick events from multiple symbols simultaneously. The symbol list is configured via the SYMBOLS_TRADING macro definition, supporting either a manually specified list or all symbols from Market Watch. The event type is defined as CHARTEVENT_TICK via the CHART_EVENT_SYMBOL macro, indicating tick-level event monitoring. The core logic is encapsulated in the include file OnTick(string symbol).mqh, and the template itself only provides an architectural skeleton without any entry, exit, position sizing, or money management logic. Users must add their own trading strategy code on top of this framework.

Strengths

  • Provides a multicurrency event handling framework that overcomes the limitation of standard OnTick() which only monitors the current chart symbol
  • Supports flexible symbol configuration - both manual specification and automatic Market Watch reading
  • Template structure is clear with detailed comments explaining configuration steps and usage

Weaknesses

  • Only a framework template with no actual trading logic; utility depends entirely on user's secondary development capability
  • Core implementation relies on the external include file OnTick(string symbol).mqh, making it impossible to independently evaluate the complete mechanism
  • Lacks error handling and edge case considerations, such as handling non-existent symbols or empty Market Watch

Possible improvements

  • Add symbol validity verification and error prompts when Market Watch is empty
  • Include example trading logic comments in the template to help users quickly understand how to build strategies on top of this framework

Risk assessment

Overall risk: Safe

  • The template itself does not execute any trading operations, posing no direct risk
  • Multicurrency monitoring may increase system resource consumption; performance should be monitored with many active symbols

Evaluation scores

Code quality3.0
Strategy logic1.0
Risk management1.0
Robustness2.0
Innovation3.0
Documentation4.0
Overall2.3

Parameters

ParameterDefaultDescription
SYMBOLS_TRADING"EURUSD","GBPUSD","USDJPY","USDCHF"Multi-symbol list; MARKET_WATCH uses all Watch symbols
CHART_EVENT_SYMBOLCHARTEVENT_TICKCustom event type for OnTick(symbol), maps to ENUM_CHART_EVENT_SYMBOL

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.