forked from LengKundee/MQL5-Google-Onedrive
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> |
||
|---|---|---|
| .. | ||
| ExpertMAPSARSizeOptimized_Improved.mq5 | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||