| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How to LOCK/Encrypt EA
[quote=newdigital]If we are talking about ex4 file so you may insert in original mql4 code any account number, for example (in the beginning of the code just below the settings):
Code:
int Account = 111111; Code:
int start Code:
if (Account != AccountNumber()){
Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
return(0);
}else {Comment("");}
Hi, I am trying to compile the above code given by newdigital and I get the followinfg messege: 1 error(s) 'if' - comma or semicolon expected 3 warning(s) 'Account' - expression on global scope not allowed '{' - expression on global scope not allowed '{' - expression on global scope not allowed Please advise |
|
|||
|
[quote=lolo]
Quote:
You may look inside the code as an example. |
|
|||
|
[quote=matrixebiz]
Quote:
Just an explanation: Quote:
Use it as an example of the code. |
|
||||
|
Quote:
Seeing some good EA around the ebay, after decompiled, everything is shit inside. Some exactly Terminator, only added fancy buffer, decorations of indicator around the charts.![]() |
|
|||
|
EA Expiration Does not work
Hi all,
I place this code into my EA, but it does not seem to work. I change expire date to expire, but nothing show up in the chart and not trial expiration word appears. Would anyone know what might be wrong. int start() { string expire_date = "2006.31.06"; //<-- hard coded datetime datetime e_d = StrToTime(expire_date); if (CurTime() >= e_d) { Alert ("The trial version has been expired!"); return(0); } // your normal code! return(0); } Thanks troy |
|
|||
|
Hi, guys... I am a new comer on this forum and facing the difficult problem right now. I am unable to give the expiration code on my custom indicator so that it will be accessible or even delete by itself automatically.
All of your contribution will be much appreciated... ![]() |
![]() |
| Bookmarks |
| Tags |
| metatrader encryption |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| loss lock EA | newdigital | Expert Advisors - Metatrader 3 | 4 | 05-17-2006 07:40 PM |
| any way to LOCK an Indicator or Template? | SPACECHIMP | Metatrader 4 | 2 | 04-20-2006 01:39 AM |