Download MetaTrader 5

IP Address? (Or something else)

To add comments, please log in or register
SteelAce
203
SteelAce  
I want to work my Trading Robot on another computer(s) also, but also be sure that this Robot will be not distributed forward to other computers without my permission. My plan was to ask IP address of my friends computer and write that IP address directly in my Trading Robot code. Now every time when it runs it checks if IP address is my friends IP address or something else. If it is something else it simply stops running. If there is not possible to get IP address with mql5 then other way is to use another (maybe Visual Basic) program for such checking. In this case I need to execute another program with mql5. But how to run external (*.exe) files from mql5? Usually other languages are using commands like Execute , Shell or something like that but how is it in mql5? Or do you have some other ideas about protecting my (or someone else's) Trading Robot?
Stuart Browne
6503
Stuart Browne  
Another way to do it would be to get your friend to give you his broker account number(s). Hard code them in the EA so it will only trade if connected to that account.
Sergey Dzyublik
5180
Sergey Dzyublik  
GetVolumeInformation - API function for getting ID of hard drive.
GetVolumeInformation function (Windows)
  • msdn.microsoft.com
Retrieves information about the file system and volume associated with the specified root directory. Syntax Parameters lpRootPathName [in, optional] A pointer to a string that contains the root directory of the volume to be described. If this parameter is NULL, the root of the current directory is used. A trailing backslash is required...
To add comments, please log in or register