mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 12:20:57 +00:00
This optimization improves the execution efficiency of the `SMC_TrendBreakout_MTF` indicator by: - Replacing the manual buffer clearing loop in `OnCalculate()` with the native `ArrayFill()` function. - Replacing the `CopyTime()` call in `GetMTFDir()` with the lighter `iTime()` function for MTF bar timestamp checks. - Refactoring input-based logic (Donchian lookback and signal bar index) into global cached variables initialized in `OnInit()`, avoiding redundant calculations on every new bar. These changes reduce CPU overhead and improve the indicator's responsiveness, especially when attached to multiple charts or using lower timeframe confirmations. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| SMC_TrendBreakout_MTF.mq5 | ||