MQL5-Google-Onedrive/mt5/MQL5
仓库文件(优先显示最新提交)
文件名 最新提交消息 最新提交日期
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
..
Experts ⚡ Bolt: optimize lot calculation and margin checks 2026-02-08 17:21:22 +00:00
Indicators ⚡ Bolt: Optimized SMC_TrendBreakout_MTF indicator performance 2026-02-06 10:52:52 +00:00