Setup Wizard
Connect the AI Brain and MT4 EA
Step 1 of 4
License & Local AI Brain Setup
brain.exe reads its license from a local file, not a login — fill in your details below and we'll generate exactly what to paste into it.
Install the Brain
Local install
- 01Create a permanent folder, e.g. C:\LorentzianBot\ — not Downloads or a temp folder.
- 02Copy brain.exe and Reset-Brain-Memory.bat into it.
- 03In that folder, rename license.txt.example (included in the package) to license.txt, then paste the generated content above into it and save.
Confirm it's running
Step 2 of 4
Install the Expert Advisor
The EA talks to brain.exe over a local ZeroMQ socket — two runtime DLLs and one MT4 setting make that connection possible.
Your Brain install folder
C:\LorentzianBot\
You'll paste this into the EA's AI_WORKING_DIR input in the next step.
Step 3 of 4
Attach the EA & Set Your Risk
Drag it onto a chart, point it at your Brain folder, and review the risk inputs before you go live.
Attach & connect
- 01Drag LorentzianBot-Scalp-Live onto the chart of the symbol/timeframe you want to trade.
- 02On the Inputs tab, set AI_WORKING_DIR to the folder path you copied in Step 2.
- 03Leave AI_EXECUTABLE as brain.exe and AUTO_START_AI as true — the EA launches the AI engine for you.
- 04Make sure AutoTrading is enabled — the button in the MT4 toolbar should be green.
Review before going live
| Input | Controls |
|---|---|
| RISK_PERCENT | Account % risked per trade, when USE_AUTO_LOT is on. |
| MAX_ACCOUNT_DRAWDOWN_PERCENT | Circuit breaker — closes everything if equity falls this far below balance. |
| MAX_CONCURRENT_PAIRS | Caps how many symbols can have open positions at once. |
| USE_TRAILING | Turns the trailing stop on or off. |
!
Defaults are reasonable starting points, but review them against your own account size and risk tolerance — nobody else can decide your risk settings for you.
Example — what the chart shows once connected
EURUSD, M30 — chart comment
=== LORENTZIAN AI PREDICTOR === Signal: HOLD (Rev: OFF) Score: 3 / 8 Mode: TRENDING Grid: ON Filter: ACTIVE Blocked by Black Book: 2 time(s) ================================
Step 4 of 4
Teach the Black Book, Then Go Live
Run a backtest first so the Brain learns its worst-case scenarios on history — not on your real balance.
Backtest-teach before risking a dollar
- 01In Strategy Tester, run LorentzianBot-Scalp-Backtest over 6–12 months, with AI_EXECUTABLE set to brain_backtest.exe.
- 02It runs on its own port (5655) — completely separate from live brain.exe (5555), so a backtest can never affect a live trade.
- 03Close brain.exe, then run Merge-Backtest-To-Live.bat from your install folder to bring that learning into your live memory.
Ready to go live
1 / 4