Download MetaTrader 5

EA Remote control MQL4

To add comments, please log in or register
Write your articles using our editor. It is convenient!
Georgiy Liashchenko
2575
Georgiy Liashchenko 2015.11.27 22:24 

Hello everyone,

I am looking for a way to remotely control my EA copies. Lets imagine i gave out few EA's to somebody, i want to be able to turn it on and off remotely, (kind of licensing). Selling it via website market is not an option. Main condition is that to be able to control them seperately. Please help...

Perhaps something like here  https://www.mql5.com/en/articles/359 5. Remote licenses

But for mql4! 

Securing MQL5 code: Password Protection, Key Generators, Time-limits, Remote Licenses and Advanced EA License Key Encryption Techniques
Securing MQL5 code: Password Protection, Key Generators, Time-limits, Remote Licenses and Advanced EA License Key Encryption Techniques
  • 2012.02.17
  • investeo
  • www.mql5.com
Most developers need to have their code secured. This article will present a few different ways to protect MQL5 software - it presents methods to provide licensing capabilities to MQL5 Scripts, Expert Advisors and Indicators. It covers password protection, key generators, account license, time-limit evaluation and remote protection using MQL5-RPC calls.
Marco vd Heijden
Moderator
4704
Marco vd Heijden 2015.11.28 09:57  
you want to create a bot net to eventually move markets.
Irwan Adnan
886
Irwan Adnan 2015.11.28 10:37  
Marco vd Heijden:
you want to create a bot net to eventually move markets.
What do you mean? Is that an answer to Georgiy's question?
Irwan Adnan
886
Irwan Adnan 2015.11.28 10:39  
Georgiy Liashchenko:

Hello everyone,

I am looking for a way to remotely control my EA copies. Lets imagine i gave out few EA's to somebody, i want to be able to turn it on and off remotely, (kind of licensing). Selling it via website market is not an option. Main condition is that to be able to control them seperately. Please help...

Perhaps something like here  https://www.mql5.com/en/articles/359 5. Remote licenses

But for mql4! 

Can that of MQL5 be applied to MQL4?
Georgiy Liashchenko
2575
Georgiy Liashchenko 2015.11.28 12:02  
Irwan Adnan:
Can that of MQL5 be applied to MQL4?
Thtas what i want to know!
Stanislav Korotky
17925
Stanislav Korotky 2015.11.28 17:29  
Georgiy Liashchenko:
Thtas what i want to know!
MQL4 and MQL5 are pretty much the same. The only exception is trading functions. You can change extensions for the codes from the article and try to compile them under MT4. Chances are they will compile ok, and even if not, you'll be able to resolve errors by simple patches.
Georgiy Liashchenko
2575
Georgiy Liashchenko 2015.11.28 21:36  
Stanislav Korotky:
MQL4 and MQL5 are pretty much the same. The only exception is trading functions. You can change extensions for the codes from the article and try to compile them under MT4. Chances are they will compile ok, and even if not, you'll be able to resolve errors by simple patches.
Could be possible. What about WebRequest() function? If i understood correctly, the ea can send request to login to websites, if fail it returns fail. Basically this can be used as license. Just ban or unban clients password.
Stanislav Korotky
17925
Stanislav Korotky 2015.11.29 22:49  
Georgiy Liashchenko:
Could be possible. What about WebRequest() function? If i understood correctly, the ea can send request to login to websites, if fail it returns fail. Basically this can be used as license. Just ban or unban clients password.
WebRequest works in MT4. You can use it for websites requiring authentication, but not all methods of authentication can be supported.
Ex Ovo Omnia
3154
Ex Ovo Omnia 2015.11.30 15:29  

I have been using the start-stop control for my clients, and actually I do not have real problem with using the webrequest. It is a simple command and works well when you are happy with its synchronized behaviour,i.e. your EA stops until the request is returned or expires (may take half a minute sometimes).

On the other hand I have problem with identifying the user's computer, which sent the webrequest. I did not find any reliable method, which would give me a unique identifier of the computer. There are cloned systems on VPS returning the same HW and SW data, Unix and Mac emulators which have often dummy implementation of core Windows data functions.

Stanislav Korotky
17925
Stanislav Korotky 2015.12.01 14:41  
Ovo Cz:

On the other hand I have problem with identifying the user's computer, which sent the webrequest. I did not find any reliable method, which would give me a unique identifier of the computer. There are cloned systems on VPS returning the same HW and SW data, Unix and Mac emulators which have often dummy implementation of core Windows data functions.

Your only resort is probably identification of a user instead of a PC, and then you can limit a number of simultaneous connections every logged in user can establish on your back-end and use your service.
Georgiy Liashchenko
2575
Georgiy Liashchenko 2015.12.01 15:58  
Ovo Cz:

I have been using the start-stop control for my clients, and actually I do not have real problem with using the webrequest. It is a simple command and works well when you are happy with its synchronized behaviour,i.e. your EA stops until the request is returned or expires (may take half a minute sometimes).

On the other hand I have problem with identifying the user's computer, which sent the webrequest. I did not find any reliable method, which would give me a unique identifier of the computer. There are cloned systems on VPS returning the same HW and SW data, Unix and Mac emulators which have often dummy implementation of core Windows data functions.

I was thinking, that we can sell license in such way, using WebRequest() to login to website. If we want to cancel subscription, just change account password and EA won't work. And vs if we want to turn ea in, just resume account password. Could you please explain how to work with other servers, websites. In the info there is only mql5.com login method. For example if i want to make it login to my website to do some actions.
12
To add comments, please log in or register