1. Lot Sizing (Base Lots) Base lot size rule: Trade 0.01 per every $1,000 of account balance. Example: $5,000 balance → base lot = 0.05. If balance is below $1,000 → trade only 0.01 lots. Base lot size can only increase (never decrease, even after withdrawals). This means lot size scales upward with long‑term growth but never shrinks. 2. Order Management Cycle The EA checks if all orders for a symbol are closed or if there are no pending orders. If conditions are met: Wait 1 second. Begin a new buy/sell grid cycle based on lot management. Pending orders: Maintain 15 pending buy orders and 15 pending sell orders. Each pending order’s lot size must match the current open order lot for that symbol. Whenever a pending order triggers, immediately replace it (maintaining 15 total). 3. Distance Between Pending Orders Spacing is dynamic, based on current ATR (Average True Range) and drawdown: Account Drawdown Order Spacing Distance 0% – 6.99% 300 points 7% – 14.99% 600 points 15%+ 900 points This tightens the grid as drawdown increases, seeking faster recovery during adverse conditions. 4. Partial Close Management (Cycle 1–6) Each time orders close partially, the EA: Rebalances (“makes lots equal”) by opening single orders matching the lot management formula. Increments pending order lots and creates new orders per cycle count. Example for the 1st partial close: After closing part of a position → all pending orders are incremented by 1 extra lot. On the 2nd partial close → 2 extra lots, etc., up to the 6th cycle. After all positions close completely for a symbol → reset lots and remove pending orders completely. This creates an escalating recovery system, increasing exposure gradually per cycle until the position resets. 5. Trading Schedule Rules Fridays: Stop opening new orders once all positions are closed. After 20:50 (Copenhagen time), equalize lots for open positions but open no new trades. Mondays: Resume trading at 01:30 (Copenhagen time). Stop the equalization process at 01:29 if new trades begin forming. This prevents unwanted exposure over weekend gaps. 6. Drawdown Protection If drawdown > 15% of the account balance → stop opening new trades. Wait until all orders are closed, then remove all pending ones. If drawdown < 15% → normal trading resumes.