This is really cool! I've always wanted to call my counsellors )
And it's smartly written - quite concise, but a lot of important things are not forgotten.
I'll buy a modem and try to connect it.
Thanks!
Very grateful to Sergey Shevchuk!
Thank you!
Great!
We have few competent and intelligent people, so appreciate and tolerate their character!
And if the Expert Advisor is on a remote VPS server, are there any other options for communication?
a cottage industry, it's like soldering a noodle, a phone cable into your mobile phone.
That's right. And God forbid that the operator's towers always work properly and the soldered noodles are never used.
didn't stop them from connecting to the towers that were working properly.
Key point:
will allow you to be in touch with the trading terminal even in the situation when mobile Internet is unavailable, namely, by means of calls and SMS-messages. Also, this Expert Advisor will notify you about disconnection and reconnection with the trading server.
I just suggested an alternative for the last resort. Believe me, the internet usually goes down just when you need it most.
Let's say you're on a train. The train is a people's train, without Wi-Fi (yes, they still have it). GPRS/3G coverage between most stations also leaves much to be desired. You receive reports on the work of your expert in the form of SMS-notifications. You see that the Expert Advisor starts to drain unexpectedly for some reason (the factor that the Expert Advisor should stop also fails for some reason). You send an SMS-command to the Expert Advisor and thus stop it manually until you find out.
It is good if you don't need it.
That's why I have always respected real programmers - it's their unwillingness to look for a circuit solution.
Buy a GSM Switch and switch off the PC. ;)
Thanks for the article - informative!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Working with GSM Modem from an MQL5 Expert Advisor has been published:
There is currently a fair number of means for a comfortable remote monitoring of a trading account: mobile terminals, push notifications, working with ICQ. But it all requires Internet connection. This article describes the process of creating an Expert Advisor that will allow you to stay in touch with your trading terminal even when mobile Internet is not available, through calls and text messaging. In addition, this Expert Advisor will be able to notify you of the lost or reestablished connection with the trade server.
For this purpose, virtually any GSM modem, as well as most phones with the modem function would do. For illustration, I have chosen Huawei E1550, as this modem is one of the most widely used devices of its kind. Further, at the end of the article, we will try to replace the modem with an old cellphone Siemens M55 (released in 2003) and see what happens.
But first, a few words on how to send a byte of data from an Expert Advisor to a modem.
Upon connecting the modem to your computer and installing all the necessary drivers, you will be able to see a virtual COM port in the system. All future operations with the modem are performed via this port. Consequently, in order to exchange data with the modem, you should first get access to the COM port.
Fig. 1. Huawei modem is connected to the COM3 port
Here, we will need a DLL library TrComPort.dll which is freely distributed in the Internet together with the source files. It will be used to configure the COM port, query its state, as well as to receive and send data. In order to get that done, we will use the following functions:
Author: Sergey Shevchuk