Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 2 reads | 0 comments |

Swap Monitor - service for MetaTrader 5

Swap Monitor - service for MetaTrader 5

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.

Swap Monitor - service for MetaTrader 5

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

Verification code Refresh