Discussing the article: "Native SFTP Client in MQL5: Uploading Trade Reports over SSH Without External Tools"

Check out the new article: Native SFTP Client in MQL5: Uploading Trade Reports over SSH Without External Tools.

Send MetaTrader 5 trade reports to an SFTP server without WinSCP or external scripts. A pure-MQL5 SSH/SFTP client uses host-key pinning, safe packet handling and a temporary “.part” swap to avoid partial files, while an EA writes daily CSV reports and a service uploads them. The article also explains a Strategy Tester case where the final closing deal misses OnTradeTransaction and how to capture it

Sooner or later someone asks for your trade reports on their server—a risk desk, a prop firm, or your own VPS. Often the only door into that server is SFTP. MQL5 has WebRequest for HTTP and SendFTP for plain FTP, but nothing for SSH, so people end up running a WinSCP script next to the terminal.

This article removes that second program. The client below speaks SSH-2 and SFTP version 3 over the terminal's own sockets, with SHA-512, AES-128, X25519 and Ed25519 written in plain MQL5. An EA writes one CSV report for each day on which at least one of its trades closed, a service uploads the finished files, and six backtests check that the server ends up with the same trade count and net profit as the tester.

Author: Adewumi Babatunde Gbadebo