MQLArticles/Utils/FA
Repository files (latest commit first)
Nome del file Ultimo messaggio di commit Ultima data di commit
2026-09-06 20:20:13 -05:00
..
Int new files added 2026-09-06 20:20:13 -05:00
Atr.mqh 2026-03-23 12:25:12 -05:00
AtrCts.ex5 2026-03-23 11:22:14 -05:00
AutoDelete.mqh 2026-05-25 09:26:32 -05:00
BarControler.mqh new files added 2026-09-06 20:20:13 -05:00
ClasesBases.mqh 2026-05-19 12:32:20 -05:00
DiffCalc.mqh 2026-05-25 11:02:25 -05:00
Events.mqh 2026-02-14 17:00:45 -05:00
FA_Test.mq5 new files added 2026-08-06 11:43:53 -05:00
FuncionesBases.mqh new files added 2026-09-06 20:20:13 -05:00
LoggerDef.mqh new files added 2026-08-27 18:09:07 -05:00
Managers.mqh 2026-03-16 21:29:03 -05:00
README.md new files added 2026-09-06 11:15:27 -05:00
SimpleLogger.mqh new files added 2026-08-27 18:09:07 -05:00
Sort.mqh 2025-11-28 07:28:13 -05:00
StringToArray.mqh Modify 2026-02-19 11:02:54 -05:00

← Utils

Utils/FA

Shared base classes used across the ecosystem: ATR access, bar control, auto-cleanup, simple logging, diffs and sorting.

Main features

  • ATR wrapper for indicator access (CAtr and related classes in Atr.mqh).
  • Bar-change detection helpers, including per-timeframe variants (CBarControler, CBarControlerFastW1, CBarControlerFastMN1, CBarControlerFastMinors).
  • Automatic pointer cleanup on deinit (CAutoCleaner).
  • Lightweight logging base used by other modules (CLoggerBase).
  • Distance/diff calculators — by points or by ATR (CDiff, CDiffPoint, CDiffAtr).
  • Simple array sorting (CSimpleSort).

Basic usage

Bar control

CBarControler bar_ctrl;
bar_ctrl.Init(_Symbol, PERIOD_CURRENT);

if(bar_ctrl.IsNewBar())
  {
   // new bar logic
  }

Auto-cleanup

CAtr* g_atr = new CAtr();
g_atr.Create(_Period, _Symbol, 14, true, true);
CAutoCleaner::AddPtr(g_atr); // will be deleted automatically on deinit

Diff by ATR

CDiffAtr* diff = CreateDiffptr(MODE_DIFF_BY_ATR, _Symbol, g_atr, 0, 1.5);

Only the most representative classes are shown here.