forked from LengKundee/MQL5-Google-Onedrive
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 | ||