mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 04:40:57 +00:00
Optimized the performance-critical path in SMC_TrendBreakout_MTF_EA.mq5 by: - Pre-calculating the inverse of g_lotStep and g_marginInitial in OnInit() to replace division operations with faster multiplications in CalculateLots(). - Pre-calculating the swing SL buffer (SwingSLBufferPoints * g_point) in OnInit() to avoid repeated calculations in CalculateSL(). - Adding robustness checks for zero values before inverse calculation. These changes reduce computational overhead during backtesting and live execution. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||