MQL5-Google-Onedrive/mt5/MQL5/Experts
google-labs-jules[bot] f18542d9fc Bolt: optimize daily limit checks by caching currency values
This optimization reduces the overhead in the OnTick execution path of
ExpertMAPSARSizeOptimized_Improved.mq5 by caching daily loss and profit
limits in currency.

- Added g_maxDailyLossCurrency and g_maxDailyProfitCurrency global variables.
- Updated UpdateDailyStatistics() to calculate and cache these limits only
  when necessary (initialization, day rollover, trade events, and periodic timer).
- Optimized CheckDailyLimits() to use the cached variables, eliminating
  redundant AccountInfoDouble(ACCOUNT_BALANCE) calls and percentage divisions
  on every tick.

These changes significantly reduce terminal API calls and arithmetic
operations in the EA's most frequent execution path.
2026-02-06 17:25:13 +00:00
..
ExpertMAPSARSizeOptimized_Improved.mq5 Bolt: optimize daily limit checks by caching currency values 2026-02-06 17:25:13 +00:00
SMC_TrendBreakout_MTF_EA.mq5 Bolt: optimize EA execution path and lot calculation (#254) 2026-02-05 02:53:34 +07:00