mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:40:57 +00:00
Optimized the `CalculateLots` function in `SMC_TrendBreakout_MTF_EA.mq5` by: 1. Pre-calculating the inverse of `SYMBOL_MARGIN_INITIAL` in `OnInit` to replace division with multiplication. 2. Refactoring the logic flow to apply margin constraints before normalization and clamping. 3. Consolidating redundant `MathFloor`, `MathMax`, and `MathMin` calls into a single execution path. This reduces the computational overhead of lot sizing, especially when margin limits are approached, and improves code readability. |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||