Download MetaTrader 5

Mq4 Protection methods..

To add comments, please log in or register
Learn operation principles of Trading Signals for MetaTrader.
Expert Trader
534
Expert Trader 2014.04.23 10:23 
Hi, Can anybody share the common methods to protect the our indi...give some sample MQ4 plz..
Expert Trader
534
Expert Trader 2014.04.23 10:30  
for 600 build or more
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 10:30  
If there is common methods to protect, there also will be common methods to remove protection.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 10:34  
Then put it inside indicator.
Expert Trader
534
Expert Trader 2014.04.23 10:37  
#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


Expert Trader
534
Expert Trader 2014.04.23 10:38  
the indi has to work only for a particular system..
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 10:41  
You are trying to commercializing your indi, so you have to search in Google: mql4 protection.
Expert Trader
534
Expert Trader 2014.04.23 10:46  
if you go for mql4 protection, only suggestion they are saying to write it in dll..but i dont know how to do that..
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 10:46  
search in Google: mql4 protection
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.23 10:47  
Sorry. Can't help you.
Expert Trader
534
Expert Trader 2014.04.23 10:49  
#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

1234
To add comments, please log in or register