Reference

Full EA Input Reference

Every input available in the LorentzianBot Scalp EA’s properties window, grouped exactly as they appear in MT4.

Main Settings

Input Default Description
HISTORY_BARS 4000 How many historical bars are loaded for analysis.
MAGIC_NUMBER 0 Order identifier used to distinguish this EA’s trades from others.

Strategy

Input Default Description
REVERSE_STRATEGY false Inverts the direction of every signal the AI produces.
ENABLE_REVERSAL false Allows the EA to reverse an open position when the signal flips.
USE_EARLY_EXIT false Enables closing a position early based on EXIT_THRESHOLD.
EXIT_THRESHOLD 2 Sensitivity used by the early-exit logic when enabled.
USE_ALLIGATOR true Includes the Alligator indicator as part of the entry filter.

AI Engine

Input Default Description
AUTO_START_AI true Automatically launches brain.exe when the EA starts.
AI_WORKING_DIR Absolute path to the folder containing brain.exe. Must be set to your own install path.
AI_EXECUTABLE brain.exe The filename of the AI engine executable.

Grid System

Input Default Description
USE_GRID true Enables grid-style averaging into losing positions.
PAUSE_GRID_WEAK_TREND true Holds off on the next grid order if the AI’s trend confidence has weakened.
GRID_DIST_PIPS 8 Pips of adverse movement before the next grid order is added.
MAX_GRID_ORDERS 5 Hard cap on how many orders the grid can stack for one position.
GRID_MULTIPLIER 1.0 Lot-size scaling applied to each additional grid order.

Filters

Input Default Description
MAX_SPREAD_PIPS 50 Blocks new entries when the current spread exceeds this value.

Money Management

Input Default Description
USE_AUTO_LOT true Sizes positions from RISK_PERCENT instead of a fixed lot size.
RISK_PERCENT 1.0 Percent of account equity risked per trade when auto-lot sizing is on.
FIXED_LOT 0.01 Lot size used when auto-lot sizing is off.

Trade Limits

Input Default Description
SL_PIPS 500 Stop-loss distance in pips.
TP_PIPS 500 Take-profit distance in pips.

Trailing Stop

Input Default Description
USE_TRAILING true Enables the trailing stop.
TRAILING_START_PIPS 30 Profit in pips before the trailing stop activates.
TRAILING_LOCK_PIPS 20 Profit locked in once trailing activates.
TRAILING_STEP_PIPS 10 Increment the trailing stop moves in as price continues favorably.

Account Drawdown Circuit Breaker

Input Default Description
USE_ACCOUNT_DD_STOP true Enables the account-wide drawdown circuit breaker.
MAX_ACCOUNT_DRAWDOWN_PERCENT 50.0 Closes every position once equity drops to (100 − this)% of balance.
DD_COOLDOWN_MINUTES 45 Minutes to pause new entries after a breaker trip (0 = resume immediately).

Concurrent Pairs Limit

Input Default Description
USE_MAX_CONCURRENT_PAIRS true Enables the concurrent-symbol limit.
MAX_CONCURRENT_PAIRS 5 Max distinct symbols with open positions at once. Grid additions to an already-open symbol don’t count.
MAX_ENTRIES_PER_SYMBOL 1 Max simultaneous fresh entries per symbol and direction, shared across every timeframe chart of that symbol.