MQL5-Google-Onedrive/.jules
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
..
bolt.md Bolt: optimize daily limit checks by caching currency values 2026-02-06 17:25:13 +00:00
deploy.yml Add dev container setup, cloud deployment configs, and Jules deployment automation 2026-01-19 09:53:30 +07:00