mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:40:57 +00:00
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`. |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||