MQL5-Google-Onedrive/mt5
google-labs-jules[bot] eba7e9d770 Bolt: Optimized lot size and SL calculations
Pre-calculated inverse constants in OnInit to replace division with multiplication in CalculateLots and CalculateSL.

- Added g_invLotStep, g_invMarginInitial, and g_swingSLBuffer global variables.
- Initialized them in OnInit with safety checks.
- Replaced divisions by g_lotStep and g_marginInitial with multiplications by their inverses in CalculateLots.
- Replaced inline multiplication in CalculateSL with pre-calculated g_swingSLBuffer.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-04 17:14:17 +00:00
..
MQL5 Bolt: Optimized lot size and SL calculations 2026-02-04 17:14:17 +00:00