MQL5-Google-Onedrive/mt5/MQL5/Experts
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
..
SMC_TrendBreakout_MTF_EA.mq5 feat(perf): Cache MTF indicator values to reduce redundant calculations 2025-12-31 19:04:34 +00:00