MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] 538e4f651c feat(perf): Cache MTF indicator values to reduce redundant calculations
Implements a caching mechanism for the multi-timeframe (MTF) trend direction calculation.

The `GetMTFDir()` function, which relies on expensive `CopyBuffer` calls, was previously executed on every price tick. This change introduces a time-based cache, ensuring the MTF direction is only recalculated when a new bar forms on the secondary timeframe.

This optimization significantly reduces the EA's CPU load by eliminating thousands of unnecessary calculations, leading to more efficient performance, especially in volatile market conditions.
2025-12-31 19:04:34 +00:00
..
Experts feat(perf): Cache MTF indicator values to reduce redundant calculations 2025-12-31 19:04:34 +00:00
Indicators feat: Add SL/TP modes and risk management to EA 2025-12-26 08:17:39 +00:00