1
0
Fourche 0
MQL5-Google-Onedrive/mt5/MQL5/Indicators
google-labs-jules[bot] f2fb340adf Bolt: Optimized SMC_TrendBreakout_MTF indicator performance
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>
2026-02-06 10:52:52 +00:00
..
SMC_TrendBreakout_MTF.mq5 Bolt: Optimized SMC_TrendBreakout_MTF indicator performance 2026-02-06 10:52:52 +00:00