protection of my compiled EA from resale

 
I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .
What lines should i add in my EA to protect this. For example i want my EA to work only on my trading acc# 1234567 . What should i write in my EA?
Plz help
 

e.g. in OnInit():

   if ( AccountNumber() != 9870987098 ) return( INIT_FAILED )

But in the editor's reference about more information about the account...

 
gooly:

e.g. in OnInit():

But in the editor's reference about more information about the account...


Can you please elaborate where ishould add this line? In start function?
 
sammiawan999:
I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .
What lines should i add in my EA to protect this. For example i want my EA to work only on my trading acc# 1234567 . What should i write in my EA?
Plz help
What mistake i made in attached picture?
 
gooly:

e.g. in OnInit():

But in the editor's reference about more information about the account...


Successfully done. Thanks alot brother:)
 
sammiawan999:
Can you please elaborate where ishould add this line? In start function?
What mistake i made in attached picture?
  1. What part of
    gooly: e.g. in OnInit():
    was unclear?
  2. Don't attach a image, insert the image
Reason: