MQL5-Google-Onedrive/mt5/MQL5
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
..
Experts Bolt: optimize daily limit checks by caching currency values 2026-02-06 17:25:13 +00:00
Indicators Bolt: Optimized SMC_TrendBreakout_MTF indicator performance 2026-02-06 10:52:52 +00:00