MQL5-Google-Onedrive/mt5/MQL5/Experts
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
..
ExpertMAPSARSizeOptimized_Improved.mq5 Bolt: Cache daily limits and optimize time calls in ExpertMAPSARSizeOptimized_Improved.mq5 2026-02-07 11:45:48 +00:00
SMC_TrendBreakout_MTF_EA.mq5 Bolt: optimize lot size calculation in SMC EA 2026-02-07 17:18:57 +00:00