Configuration

Configuring Risk & Trading Behavior

The defaults that ship with LORENTZIAN are reasonable starting points, not a recommendation for your specific account size or risk tolerance. This page walks through the settings worth reviewing before you go live.

Position sizing

With USE_AUTO_LOT enabled, position size is calculated from RISK_PERCENT — the percentage of account equity risked per trade. If you’d rather size positions manually, disable USE_AUTO_LOT and set FIXED_LOT instead.

As a practical minimum, budget at least $100 of account balance for every chart you run the EA on — e.g. EURUSD M5 plus BTCUSD M30 needs at least $200 balance between them. Running below that per chart leaves little room for RISK_PERCENT or grid additions to size positions meaningfully.

The account drawdown circuit breaker

USE_ACCOUNT_DD_STOP is the system’s hard stop: if equity falls to (100 - MAX_ACCOUNT_DRAWDOWN_PERCENT)% of balance, everything closes. DD_COOLDOWN_MINUTES then pauses new entries for that long before trading resumes, so the system doesn’t immediately re-enter into the same conditions that tripped the breaker. This runs independently of every other setting on this page — it does not get overridden by grid or trailing-stop behavior.

Concurrent exposure limits

MAX_CONCURRENT_PAIRS caps how many distinct symbols can have open positions at once (grid additions to an already-open symbol don’t count against this). MAX_ENTRIES_PER_SYMBOL caps how many fresh entries can open per symbol and direction — this is shared atomically across every timeframe chart running the EA on that symbol, so running the EA on multiple timeframes of the same pair won’t bypass the limit.

The grid system

When USE_GRID is enabled, the EA can add to a losing position rather than closing it outright: once price moves GRID_DIST_PIPS against an open position, a new order is added, up to MAX_GRID_ORDERS. GRID_MULTIPLIER controls how lot size scales with each additional order. PAUSE_GRID_WEAK_TREND adds a check on top of pure distance: if the AI’s confidence in the current trend has weakened since the position opened, the next grid order is held back even if price has moved far enough to normally trigger one.

Grid-style averaging increases exposure the longer an adverse move continues. Review MAX_GRID_ORDERS alongside the drawdown breaker and concurrent-pairs limit — they’re designed to work together, not as alternatives to each other.

Trailing stop

USE_TRAILING turns trailing on or off. Once a position has moved TRAILING_START_PIPS in profit, the stop trails behind price, locking in TRAILING_LOCK_PIPS and moving in TRAILING_STEP_PIPS increments.

Filters

MAX_SPREAD_PIPS blocks new entries when the current spread is wider than this value — useful for avoiding entries during unusually thin liquidity or news-driven spread spikes.

See Reference for the complete list of every input, grouped exactly as they appear in the EA’s properties window.