//+------------------------------------------------------------------+ //| Main.mqh | //| Copyright 2026, Niquel Mendoza. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026, Niquel Mendoza." #property link "https://www.mql5.com" #property strict #ifndef MQLARTICLES_INDICATORCTS_IMP_CODE_MAIN_MQH #define MQLARTICLES_INDICATORCTS_IMP_CODE_MAIN_MQH //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #include "..\\..\\Base\\WBuf.mqh" #include "..\\..\\Rscr\\Main.mqh" #include "..\\..\\CtsDef\\Common.mqh" //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ namespace TSN { //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiRsi : public CiIndicatorSimple { public: CiRsi() : CiIndicatorSimple(IND_RSI) {} ~CiRsi() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int period, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iRSI(symbol, timeframe, period, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiMa : public CiIndicatorSimple { public: CiMa() : CiIndicatorSimple(IND_MA) {} ~CiMa() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int period, int ma_shift, ENUM_MA_METHOD ma_method, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iMA(symbol, timeframe, period, ma_shift, ma_method, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiCci : public CiIndicatorSimple { public: CiCci() : CiIndicatorSimple(IND_CCI) {} ~CiCci() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int period, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iCCI(symbol, timeframe, period, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiStocastic : public CiIndicatorSimple { public: CiStocastic() : CiIndicatorSimple(IND_STOCHASTIC) {} ~CiStocastic() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int kperiod, int dperiod, int slowing, ENUM_MA_METHOD ma_method, ENUM_STO_PRICE stop_price) { if(hide) ::TesterHideIndicators(true); const int h = ::iStochastic(symbol, timeframe, kperiod, dperiod, slowing, ma_method, stop_price); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiVIDyA : public CiIndicatorSimple { public: CiVIDyA() : CiIndicatorSimple(IND_VIDYA) {} ~CiVIDyA() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int cmo_period, int ema_period, int ma_shift, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iVIDyA(symbol, timeframe, cmo_period, ema_period, ma_shift, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiBands : public CiIndicatorSimple { public: CiBands() : CiIndicatorSimple(IND_BANDS) {} ~CiBands() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int bands_period, int bands_shift, double deviation, ENUM_APPLIED_PRICE applied_price) { if(hide) ::TesterHideIndicators(true); const int h = ::iBands(symbol, timeframe, bands_period, bands_shift, deviation, applied_price); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiAD : public CiIndicatorSimple { public: CiAD() : CiIndicatorSimple(IND_AD) {} ~CiAD() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, ENUM_APPLIED_VOLUME applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iAD(symbol, timeframe, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiObv : public CiIndicatorSimple { public: CiObv() : CiIndicatorSimple(IND_OBV) {} ~CiObv() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, ENUM_APPLIED_VOLUME applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iOBV(symbol, timeframe, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiStandartDeviation : public CiIndicatorSimple { public: CiStandartDeviation() : CiIndicatorSimple(IND_STDDEV) {} ~CiStandartDeviation() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int ma_period, int ma_shift, ENUM_MA_METHOD ma_method, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iStdDev(symbol, timeframe, ma_period, ma_shift, ma_method, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiSar : public CiIndicatorSimple { public: CiSar() : CiIndicatorSimple(IND_SAR) {} ~CiSar() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, double step, double maxium) { if(hide) ::TesterHideIndicators(true); const int h = ::iSAR(symbol, timeframe, step, maxium); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiAdx : public CiIndicatorSimple { public: CiAdx() : CiIndicatorSimple(IND_ADX) {} ~CiAdx() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int ma_period) { if(hide) ::TesterHideIndicators(true); const int h = ::iADX(symbol, timeframe, ma_period); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiAdxWilder : public CiIndicatorSimple { public: CiAdxWilder() : CiIndicatorSimple(IND_ADXW) {} ~CiAdxWilder() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int ma_period) { if(hide) ::TesterHideIndicators(true); const int h = ::iADXWilder(symbol, timeframe, ma_period); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiSuperTrend : public CiIndicatorSimple { public: CiSuperTrend() : CiIndicatorSimple(52) {} ~CiSuperTrend() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, int cci_period, ENUM_APPLIED_PRICE applied, int atr_period) { if(hide) ::TesterHideIndicators(true); const int h = ::iCustom(symbol, timeframe, "::Super trend cts.ex5", cci_period, applied, atr_period); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CiVwapChange : public CiIndicatorSimple { public: CiVwapChange() : CiIndicatorSimple(51) {} ~CiVwapChange() {} bool Create(ENUM_TIMEFRAMES timeframe, string symbol, bool series, bool hide, ENUM_VWAP_Period period, ENUM_APPLIED_PRICE applied) { if(hide) ::TesterHideIndicators(true); const int h = ::iCustom(symbol, timeframe, "::VWAP.ex5", period, applied); if(hide) ::TesterHideIndicators(false); m_timeframe = timeframe; m_symbol = symbol; return CiIndicatorSimple::Create(h, series); } }; //--- } #endif // MQLARTICLES_INDICATORCTS_IMP_CODE_MAIN_MQH