MQLArticles/Utils/FA
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nique_372 b343f65d04 nuevos
2026-09-15 15:49:12 -05:00
..
Int mejoras en RM, cambio con namepsace TSN 2026-09-12 19:41:52 -05:00
String sort del ecosismtea cambiado 2026-09-15 15:46:48 -05:00
Atr.mqh mejoras en RM, cambio con namepsace TSN 2026-09-12 19:41:52 -05:00
AtrCts.ex5 2026-03-23 11:22:14 -05:00
AutoDelete.mqh Sanitizar encoding a UTF-8: convertir 11 archivos desde UTF-16LE 2026-09-14 11:01:42 -05:00
BarControler.mqh mejoras en RM, cambio con namepsace TSN 2026-09-12 19:41:52 -05:00
ClasesBases.mqh mejoras en RM, cambio con namepsace TSN 2026-09-12 19:41:52 -05:00
DiffCalc.mqh mejoras en RM, cambio con namepsace TSN 2026-09-12 19:41:52 -05:00
Events.mqh Sanitizar encoding a UTF-8: convertir 11 archivos desde UTF-16LE 2026-09-14 11:01:42 -05:00
FA_Test.mq5 new files added 2026-08-06 11:43:53 -05:00
FuncionesBases.mqh sort del ecosismtea cambiado 2026-09-15 15:46:48 -05:00
LoggerDef.mqh new files added 2026-08-27 18:09:07 -05:00
Managers.mqh Sanitizar encoding a UTF-8: convertir 11 archivos desde UTF-16LE 2026-09-14 11:01:42 -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

← 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.