Hi, Can anybody share the common methods to protect the our indi...give some sample MQ4 plz..
- Can I secure my expert advisor robot to be work on the only one pc ?
- Pivot Points (like a Dots)
- MQ4 to EX4
for 600 build or more
Then put it inside indicator.
#import "Kernel32.dll"
bool GetVolumeInformationA(string RootPathName,
string VolumeNameBuffer, int VolumeNameSize,
int& VolumeSerialNumber[], int MaximumComponentLength,
int FileSystemFlags, string FileSystemNameBuffer,
int FileSystemNameSize);
#import
//+------------------------------------------------------------------+*/
string SystemDriveSerialNumber(string sDrive) {
int iVolumeSerialNumber[1]={0};
string sVolumeSerialNumber="Lxxxx";
if(GetVolumeInformationA(sDrive+":\\", " ", 15, iVolumeSerialNumber, 0, 0, " ", 15))
{
sVolumeSerialNumber=IntegerToHexString(iVolumeSerialNumber[0]);
sVolumeSerialNumber=StringConcatenate(StringSubstr(sVolumeSerialNumber,0,4), "-", StringSubstr(sVolumeSerialNumber,4));
}
return(sVolumeSerialNumber);
this is not working
the indi has to work only for a particular system..
You are trying to commercializing your indi, so you have to search in Google: mql4 protection.
search in Google: mql4 protection
Sorry. Can't help you.
#import "Kernel32.dll"
bool GetVolumeInformationW(string RootPathName,
string VolumeNameBuffer, int VolumeNameSize,
int& VolumeSerialNumber[], int MaximumComponentLength,
int FileSystemFlags, string FileSystemNameBuffer,
int FileSystemNameSize);
#import
//+------------------------------------------------------------------+*/
string SystemDriveSerialNumber(string sDrive) {
int iVolumeSerialNumber[1]={0};
string sVolumeSerialNumber="Lxxxxx";
if(GetVolumeInformationA(sDrive+":\\", " ", 15, iVolumeSerialNumber, 0, 0, " ", 15))
{
sVolumeSerialNumber=IntegerToHexString(iVolumeSerialNumber[0]);
sVolumeSerialNumber=StringConcatenate(StringSubstr(sVolumeSerialNumber,0,4), "-", StringSubstr(sVolumeSerialNumber,4));
}
return(sVolumeSerialNumber);
only this piece of coding i need help.. its not working :x
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register