forked from LengKundee/MQL5-Google-Onedrive
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. |
||
|---|---|---|
| .. | ||
| bolt.md | ||
| deploy.yml | ||