التثبيت

تثبيت LORENTZIAN على MT4

This walkthrough covers a complete install from a fresh download. It takes about ten minutes.

1. Install the AI Brain Engine

  1. Create a permanent folder for the system, for example C:LorentzianBot. Don’t use a temp or downloads folder — this needs to stay in place.
  2. Copy brain.exe and Reset-Brain-Memory.bat from your download into that folder.
  3. Note the full path — you’ll enter it into the EA in a later step (AI_WORKING_DIR).

2. Install the Expert Advisor

  1. In MT4, go to File → Open Data Folder.
  2. Open MQL4 → Experts and copy LorentzianBot-Scalp-Live.ex4 into it. Optionally copy the Backtest build too, if you want to run it in the Strategy Tester.
  3. Open MQL4 → Libraries (create the folder if it doesn’t exist) and copy both libzmq.dll and libsodium.dll from the MQL4-Libraries folder in your download into it. The EA cannot open its connection to brain.exe without these two files.
  4. Fully close and reopen MT4 if it was already running. MT4 only scans the Libraries folder for DLLs at startup — it won’t pick up files you just copied in until it’s restarted.
  5. Right-click Expert Advisors in the Navigator panel and choose Refresh. Both EA files should now appear in the list.

3. Activate your license

brain.exe checks your license every time it starts and will not run without this step.

  1. Find your license key under My Account → License keys on the LORENTZIAN site.
  2. Find your MT4 account number (shown in MT4’s title bar, or under the Navigator panel’s account list).
  3. In your install folder (the same folder as brain.exe), rename license.txt.example to license.txt and edit it to contain:

    LICENSE_KEY=your-license-key
    ACCOUNT_NUMBER=your-mt4-account-number
  4. Save the file. brain.exe reads it on every startup.

Each license can be active on a limited number of MT4 accounts at once (shown on your My Account → License keys page). Restarting MT4 on the same account never uses up a slot. If you try to activate on a new account after all slots are used, brain.exe refuses to start and prints exactly how many slots you’ve used. Free one up anytime with the Deactivate button next to an old account on that same page.

4. Allow DLL imports

This EA launches brain.exe automatically using Windows’ shell32.dll, so MT4 must be allowed to use DLLs at two levels:

  1. Go to Tools → Options → Expert Advisors and check Allow DLL imports.
  2. When you drag the EA onto a chart, on the Common tab of the EA properties window, also check Allow DLL imports.

Without this, the EA cannot start the AI engine and will show a DLL error in the Experts log.

5. Attach the EA and configure it

  1. Drag LorentzianBot-Scalp-Live onto the chart of the symbol/timeframe you want to trade.
  2. On the Inputs tab, set AI_WORKING_DIR to the folder from step 1, for example C:LorentzianBot.
  3. Leave AI_EXECUTABLE as brain.exe and AUTO_START_AI as true — the EA launches the AI engine for you.
  4. Make sure AutoTrading is enabled (the toolbar button should be green).

6. Confirm it's running

  • Check the Experts tab in MT4’s Terminal window (Ctrl+T) for a connection message from the EA.
  • A console window for brain.exe should appear (it may minimize automatically) — this is the AI engine running and listening locally.
  • If you see a DLL-related error, see Troubleshooting.
  • If you see a license-related message, revisit Step 3 above — the exact problem is printed to the console.