Skip to content
All library documents

Monitoring Changes to Broker Contract Specifications in MT5

Article MQL5 code base

Summary

This MT5 tool monitors the chart symbol for changes in selected broker-reported contract properties. It compares each valid observation with a saved baseline associated with the account server, login, and symbol. Watched fields include price precision and tick details, contract size, volume limits, stop and freeze levels, trading and execution modes, order permissions, and swap settings. A panel shows recent changes and selected restrictions, while a CSV records local observation time and old and new values.

The tool polls at a configurable interval and can show a popup when a batch of changes is detected. Spread and converted tick value are excluded because they can move routinely. A detected difference is only an observation, not evidence of misconduct. The description also notes limits: only the chart symbol is tracked, changes that occur and reverse between polls may be missed, downtime obscures exact timing, and the tool does not cover every contract field or trading sessions.

Key ideas

  • The monitor compares selected contract properties with a saved baseline for one account and chart symbol.
  • It records changes to price, volume, trading, execution, order, stop, and swap specifications.
  • A panel and CSV provide a summary and a record of observed differences.
  • Spread and converted tick value are omitted because they can vary during normal market activity.
  • Polling can miss changes between observations, and downtime prevents precise change-time attribution.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.