MQL5-Google-Onedrive/mt5/MQL5/Experts
google-labs-jules[bot] 516c653868 Bolt: optimize lot calculation and margin checks
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.
2026-02-08 17:21:22 +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 calculation and margin checks 2026-02-08 17:21:22 +00:00