Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2006, 11:22 PM
babarmughal's Avatar
babarmughal babarmughal is offline
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile How to LOCK/Encrypt EA

Guys

how can I LOCK my EA so that no one can see or change anything...like you normally get DEMO from the signal provider websites??

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2006, 12:02 AM
sadaloma's Avatar
sadaloma sadaloma is offline
Senior Member
 
Join Date: Sep 2005
Posts: 343
sadaloma is on a distinguished road
Hi,

Just distribute the EX4 file located in the same folder as the MQ4 source file.

Sada
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-16-2006, 02:09 AM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile

Extended locking features:

To lock it so nobody else can copy the program except the buyer, you can get a programmer to have it so you enter in the buyers trading account number, so only that trading account number will unlock the program when it is compiled. Also, you can put a licensing time so the program will work and then lock up (demo testing). If you want to know who can program this, contact me at ddiebold@sbcglobal.net

Dave
<><

Last edited by iscuba11 : 05-16-2006 at 02:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-17-2006, 08:32 AM
BrunoFX's Avatar
BrunoFX BrunoFX is offline
Senior Member
 
Join Date: Sep 2005
Posts: 819
BrunoFX will become famous soon enough
Quote:
Originally Posted by iscuba11
Extended locking features:

To lock it so nobody else can copy the program except the buyer, you can get a programmer to have it so you enter in the buyers trading account number, so only that trading account number will unlock the program when it is compiled. Also, you can put a licensing time so the program will work and then lock up (demo testing). If you want to know who can program this, contact me at ddiebold@sbcglobal.net

Dave
<><
Hello Traders,

It is a commercial proposal, not free
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-17-2006, 11:26 AM
babarmughal's Avatar
babarmughal babarmughal is offline
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Guys,

Still the idea is not clear please explain in detail how can I do this Lock..

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-17-2006, 11:53 AM
automatedtrader automatedtrader is offline
Senior Member
 
Join Date: Mar 2006
Posts: 128
automatedtrader is on a distinguished road
if you post the code im sure one of the great guys here can fix it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-17-2006, 01:10 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,388
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by babarmughal
Guys,

Still the idea is not clear please explain in detail how can I do this Lock..

Thanks
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;
And below
Code:
int start
may be the following:

Code:
if (Account != AccountNumber()){
      Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
      return(0);
   }else {Comment("");}

As to trial version so you may do the following (below int start):

Code:
if (CurTime()>1113609600) { //16.04.2005
      Alert("My EA was expired! Please re-new your licence");
      return;
   }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-17-2006, 01:20 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,388
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by 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;
And below
Code:
int start
may be the following:

Code:
if (Account != AccountNumber()){
      Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
      return(0);
   }else {Comment("");}

As to trial version so you may do the following (below int start):

Code:
if (CurTime()>1113609600) { //16.04.2005
      Alert("My EA was expired! Please re-new your licence");
      return;
   }
What is this number: 1113609600?
It is the time in seconds since 00:00 1st of January 1970. It is hard to count the seconds. And if you do not want to count it you may do the following:

1. Create MT3 EA:

Code:
/*[[
Name := babarmughal
Author := Copyright © 2005, MetaQuotes Software Corp.
Link := http://www.metaquotes.net/
Lots := 1.00
Stop Loss := 0
Take Profit := 0
Trailing Stop := 0
]]*/
Var: ExpirationDate(0);
comment(StrToTime("2006.08.16 00:00"));
2. Compile it in MT3.
3. Attach EA to the chart (MT3) and you will see on the chart the number of seconds since 00:00 1st of Janusry 1970 till 2006.08.16 00:00.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-17-2006, 03:30 PM
BrunoFX's Avatar
BrunoFX BrunoFX is offline
Senior Member
 
Join Date: Sep 2005
Posts: 819
BrunoFX will become famous soon enough
hello,

A great thanks with Newdigital for these 2 messages and all these expliacations .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-18-2006, 02:17 AM
cockeyedcowboy's Avatar
cockeyedcowboy cockeyedcowboy is offline
Senior Member
 
Join Date: Nov 2005
Posts: 267
cockeyedcowboy is on a distinguished road
Code:
    // ««« SYSTEM INITIALIZATION SECTION: »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
        if( DataValidated ) {
            if( SystemRegistration( SystemSymbol, Symbol(), Append ) == Done ) {
                if( UserVerification( Comfirmed )) {
                    RightsToTrading  =  Granted;
                    SystemMode       =  StandBy;
                    SystemTag        =  GetTagNumber();
                    CurrencyID       =  GetCurrencyID( Symbol() );
                    RunSerialNumber  =  ( SystemTag + Space + SystemSymbol + Space +
                                            CurrencyID + Space + SystemStartTime );
                    Authentication   =  ( LicenseInfo + RunSerialNumber );
                    Print( "System Initialization Completed: ", AccountCompany(), " Has ",
                            AccountName()," As The Authorized User Of This Account, ",
                            "Under The System Software License [ ", LicenseNumber, " ]." );
                } else {
                    Print( "System Initialization FAILURE: You are not recognized as the ",
                           "Licensed User of this software." );
                } // End If, UserVerification:
                Print( "System Registration Process Completed Successfully." );
            } else {
                Print( "System Registration FAILURE: System could not complete the ",
                       "registrattion  process: Fatal Error System Halted." );
            } // End If, SystemRegistration:
        } else {
            Print( "Data Validation FAILURE: System Mode is Off Line, The system can ",
                   "not be activated till the above condition is corrected." );
        } // End If, DataValidated:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


All times are GMT. The time now is 09:41 AM.