EA-33120 · Utility

Spread Informer v1.02

This EA monitors and displays spread statistics on the chart, including current, maximum, minimum, and average spread values. It alerts the user when the current spread exceeds a configurable threshold, with a minimum interval between alerts to avoid spam. Upon deinitialization, it prints all collected spread statistics to the Journal for Strategy Tester analysis.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskSafe
Rating★★★☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1
IndicatorsSYMBOL_SPREAD
AuthorProgid

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 spread monitoring utility. It does not execute any opening or closing of positions, only collects and displays spread data. Entry conditions are not applicable since the tool does not enter trades. Exit conditions are similarly not applicable. Position sizing and money management are not involved as there are no trading activities whatsoever. Its core functionality updates spread statistics on every tick, tracking the maximum, minimum, and average values, and triggers an alert when the spread exceeds a user-defined threshold. The alert mechanism includes a minimum interval control to prevent spamming. In visual chart mode, all statistics are displayed in real-time on the chart; in the Strategy Tester, statistics are output to the Journal upon deinitialization.

Strengths

  • Real-time spread monitoring provides valuable reference information for trading decisions
  • Well-designed alert mechanism with minimum interval prevents alert spam
  • Outputs historical spread statistics in Strategy Tester for analyzing spread impact on backtests
  • Clean and minimal code with very low resource consumption

Weaknesses

  • No chart object drawing, uses only Comment() which produces crude display with no customizable styling
  • Average spread uses simple accumulation, which may cause floating-point precision issues or overflow over long runtimes
  • No file export for statistics; after deinitialization, data exists only in the Journal log
  • Initial minimum spread value is 0, relying on _MinSpreadTime<=0 check for first-tick logic, which could be improved

Possible improvements

  • Replace Comment() with chart objects (OBJ_LABEL or OBJ_RECTANGLE_LABEL) for a more polished and customizable visual interface
  • Use sliding window or exponentially weighted moving average for spread calculation to avoid precision and overflow issues during long runtimes
  • Add CSV file export functionality for statistics to enable offline analysis and long-term tracking

Risk assessment

Overall risk: Safe

  • This tool executes no trading operations, posing no financial risk
  • Long runtime may cause _AveSpread accumulation overflow, affecting statistical accuracy

Evaluation scores

Code quality3.0
Strategy logic2.0
Risk management5.0
Robustness3.0
Innovation2.0
Documentation3.0
Overall3.0

Parameters

ParameterDefaultDescription
MaxSpread_0Max spread threshold (points); alert when exceeded, 0=off
SpreadAlertInterval_0Minimum alert interval (seconds) to prevent frequent triggers

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.