what is maximum protection on a mql5 file , To prevent unauthorized use?

 

HI;

if want to have maximum protection on a mql5 file, such that :

- control running

- date limitation

or...( any other idea or method )

----------------------------------------------

i wrote this to set a password & date limitation:

.
.
input string PASSWORD="0";          // 1=run  0=off
.
.
//+------------------------------------------------------------------+
void OnInit()
{
//--- initialization done
}
//+------------------------------------------------------------------+
int OnCalculate( )
{
//---
   if(PASSWORD!="1")
     {
      Alert("WRONG PASSWORD");
      return(0);
     }
   if(TimeCurrent()>datetime(D'2013.11.01 09:55:13'))
     {
      Alert("CALL THE PROGRAM WRITER");
      return(0);
     }
//---
.
.
.

do you have any other idea, or what is the best method to have maximum protection on a mql5 file , To prevent unauthorized use?

thank you.

=======================================

or in metaeditor is it possible to set a password on file ?.( then without password could not open the source file " uncompiled" )

 

hi and thank you;

after i open this topic ; i search and find it ; but i understand the simple subject ; as such as i used them in top, 

this is because of my little "knowledge and non-full Dominance" about C++ & " Lack of familiarity " abut dll .

========================

if there is simple way i can try to use and learn please write it here.

thanks.

Reason: