mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:50:56 +00:00
Pre-calculate several trading constants in OnInit() to improve performance in the OnTick path. This includes: - Inverse lot step and margin for faster lot calculation - Fixed point offsets for SL and TP - Combined min/max lot limits to reduce clamping overhead - A unified lot risk factor to replace redundant divisions in CalculateLots() These changes reduce the number of arithmetic operations executed on every trade signal, significantly improving backtesting efficiency. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| MQL5 | ||