Metode ini banyak di gunakan untuk memprotect EA. Cara kerjanya dengan memberikan password untuk melock ea kita. Code ini dapat digunakan: int start() {extern string Please_Enter_Password = "0";// your code here....int start() {if (password != "indo.mt5") //change to the password you give the user! {Alert ("Wrong password!");return (0); }// your code here....} Pada code diatas password yang digunakan adalah indo.mt5 dimana sudah di tuliskan di dalam MQL4 file dan kita hanya tinggal mengcompile program kita. 2. Trial period protection: Memberikan batas waktu bagi user sehingga bila mencapai limit waktu penggunaan maka EA tidak dapat berfungsi lagi. int start() {string expire_date = "2006.31.06"; //<-- hard coded datetimedatetime e_d = StrToTime(expire_date); if (CurTime() >= e_d){Alert ("The trial version has been expired!");return(0);}// your normal code!return(0);} 3. Limited account number protection: Digunakan untuk menglock penggunaan EA pada account tertentu saja. int start() { int hard_accnt = 11111; //<-- type the user account here before compilingint accnt = AccountNumber(); if (accnt != hard_accnt){Alert ("You can not use this account (" + DoubleToStr(accnt,0) + ") with this program!");return(0);}// your normal code!return(0);} 4. Limited account type protection: Cara ini membatasi user hanya pada demo account saja. int start() { bool demo_account = IsDemo(); if (!demo_account){Alert ("You can not use the program with a real account!");return(0);}// your normal code!return(0);} 5. DLL protection: Metode ini dengan menuliskan DLL dan di export ke dalam MQL4 kita.