MQLArticles/IndicatorsCts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-06 11:15:27 -05:00
..
Main.mqh correciones y merjoas 2026-08-31 20:49:37 -05:00
Pool.mqh 2026-09-05 21:12:21 -05:00
PoolDef.mqh 2026-09-04 08:09:17 -05:00
README.md new files added 2026-09-06 11:15:27 -05:00
Super trend cts.ex5 2026-03-23 11:22:14 -05:00
VWAP.ex5 2026-03-23 11:22:14 -05:00

← MQLArticles

IndicatorsCts

Generic wrapper for consuming MetaTrader technical indicators, with a reusable instance pool to avoid duplicate handles.

Main features

  • Uniform wrapper over common indicators: RSI, MA, CCI, Stochastic, VIDyA, Bollinger Bands, SuperTrend, VWAP change, AD, OBV, Standard Deviation, SAR, ADX and ADX Wilder (CiRsi, CiMa, CiCci, CiStocastic, CiBands, CiSuperTrend, CiAdx, etc., all built on CiIndicatorSimple<TNumBuffer>).
  • Instance pool/cache keyed by parameters, so the same indicator handle is reused instead of recreated (CIndicatorCache).

Basic usage

Creating an indicator

CiRsi* rsi = new CiRsi();
rsi.Create(iRSI(_Symbol, PERIOD_CURRENT, 14, PRICE_CLOSE), true);

Using the pool instead of creating handles manually

// CIndicatorCache resolves/reuses handles internally by symbol+timeframe+params,
// avoiding duplicate indicator handles across the EA.

Only the most representative classes are shown here.