fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. lazyfxceo
    L
    • Profile
    • Following 0
    • Followers 1
    • Topics 0
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    lazyfxceo

    @lazyfxceo

    1
    Reputation
    33
    Profile views
    2
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    lazyfxceo Unfollow Follow

    Latest posts made by lazyfxceo

    • RE: Hello friends, how can I make my EA have a license that allows the EA to only work on a default broker and thus cannot work on any other broker?

      @lazyfxceo said in Hello friends, how can I make my EA have a license that allows the EA to only work on a default broker and thus cannot work on any other broker?:

      return true; // License verification succeeded

      Yes you have to open the .Mq5 file In the metaQuotes Editor and you can then manually add the code to the EA, and rebuild

      posted in Questions & Answers
      L
      lazyfxceo
    • RE: Hello friends, how can I make my EA have a license that allows the EA to only work on a default broker and thus cannot work on any other broker?

      In short something like this

      #define DEFAULT_BROKER_IDENTIFIER "YOUR_BROKER_IDENTIFIER"
      bool VerifyLicense(){
      string brokerIdentifier = TerminalInfoString(TERMINAL_COMPANY);
      if(brokerIdentifier != DEFAULT_BROKER_IDENTIFIER) {
      Print("ERROR: Invalid broker.");
      return false; // License verification failed
      ExpertRemove();
      }
      return true; // License verification succeeded
      }

      int OnInit(){
      if(!VerifyLicense()) {
      Print("ERROR: Invalid license. This EA is not authorized to run on this broker.");
      return INIT_FAILED; // Exit initialization process
      ExpertRemove();
      }
      // Continue with EA initialization
      return INIT_SUCCEEDED;
      }

      posted in Questions & Answers
      L
      lazyfxceo