의 미러
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 11:00:56 +00:00
Refactors the trade execution logic to avoid redundant `AccountInfoDouble()` calls. Previously, `CalculateLots` would call `AccountInfoDouble()` for balance/equity and free margin every time a trade was initiated. This change hoists these calls into the `OnTick` function, fetching the values only once when a trade signal is confirmed. The values are then passed down as arguments to `OpenBuyTrade`/`OpenSellTrade` and finally to `CalculateLots`. This reduces unnecessary function call overhead in a performance-critical path. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| ExpertMAPSARSizeOptimized_Improved.mq5 | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||