MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] f057813e59 Bolt: optimize lot size calculation in SMC EA
Implemented performance optimizations in `CalculateLots()` by:
1. Pre-calculating the inverse of initial margin (`g_invMarginInitial`) in `OnInit()` to replace division with multiplication.
2. Consolidating the lot normalization and clamping logic into a single path.
3. Moving the margin constraint check before normalization to avoid redundant calculations.

This reduces the computational overhead in the trade execution path, which is critical for high-performance EAs.
Verified with `ci_validate_repo.py` and `test_automation.py`.
2026-02-07 17:18:57 +00:00
..
Experts Bolt: optimize lot size calculation in SMC EA 2026-02-07 17:18:57 +00:00
Indicators Bolt: Optimized SMC_TrendBreakout_MTF indicator performance 2026-02-06 10:52:52 +00:00