Swaps Monitoring - MetaTrader 5 Services | Trading Script Downloads - MT4/MT5 Resources - MetaTrader 5 Resources


This is a service that periodically checks the actual exchanges of a specified symbol and saves new values (if changes are detected) to a CSV file. The files are created in folders under the corresponding symbolic names and split by month - for example, the file 202410.csv is for October 2024. Each row in the CSV file stores the date time, long exchange, and short exchange.
The service also checks for swaps on existing positions and alerts on their changes, if any.
The source code can be run as a script on the chart if the directive #propertyservices is commented out. But it is recommended to install the program as a service.
The code base does not support Services as one of the available MQL5 program types, which is why the program is published as a script.
Attachment download
📎 swapmonitor.mq5 (8.34 KB)
📎 arrayutils.mqh (4.19 KB)
📎 defines.mqh (0.71 KB)
Source: MQL5 #53007
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •