Skip to content

Strategy Modules

Classes for Creating and Testing Trading Strategies

This section contains technical details of working with classes for creation and testing of trading strategies and description of the relevant components of the MQL5 standard library.

The use of these classes will save time when creating (and especially testing) trading strategies.

MQL5 Standard Library (in terms of trading strategies) is placed in the terminal directory, in the Include\Expert folder.

Base classesDescription
CExpertBaseBase class for all trading strategy classes
CExpertBase class for Expert Advisor
CExpertSignalBase class for Trading Signal classes
CExpertTrailingBase class for Trailing Stop classes
CExpertMoneyBase class for Money Management classes
Trading signal classesDescription
CSignalACThe module of signals based on market models of the indicator Accelerator Oscillator.
CSignalAMAThe module of signals based on market models of the indicator Adaptive Moving Average.
CSignalAOThe module of signals based on market models of the indicator Awesome Oscillator.
CSignalBearsPowerThe module of signals based on market models of the oscillator Bears Power.
CSignalBullsPowerThe module of signals based on market models of the oscillator Bulls Power.
CSignalCCIThe module of signals based on market models of the oscillator Commodity Channel Index.
CSignalDeMThe module of signals based on market models of the oscillator DeMarker.
CSignalDEMAThe module of signals based on market models of the indicator Double Exponential Moving Average.
CSignalEnvelopesThe module of signals based on market models of the indicator Envelopes.
CSignalFrAMAThe module of signals based on market models of the indicator Fractal Adaptive Moving Average.
CSignalITFThe module of filtration of signals by time.
CSignalMACDThe module of signals based on market models of the oscillator MACD.
CSignalMAThe module of signals based on market models of the indicator Moving Average.
CSignalSARThe module of signals based on market models of the indicator Parabolic SAR.
CSignalRSIThe module of signals based on market models of the oscillator Relative Strength Index.
CSignalRVIThe module of signals based on market models of the oscillator Relative Vigor Index.
CSignalStochThe module of signals based on market models of the oscillator Stochastic.
CSignalTRIXThe module of signals based on market models of the oscillator Triple Exponential Average.
CSignalTEMAThe module of signals based on market models of the indicator Triple Exponential Moving Average.
CSignalWPRThe module of signals based on market models of the oscillator Williams Percent Range.
Trailing Stop classesDescription
CTrailingFixedPipsThis class implements Trailing Stop algorithm based on fixed points
CTrailingMAThis class implements Trailing Stop algorithm based on the values of Moving Average indicator
CTrailingNoneA stub class, it does not use any Trailing Stop algorithm
CTrailingPSARThis class implements Trailing Stop algorithm based on the values of Parabolic SAR indicator
Money Management classesDescription
CMoneyFixedLotA class with an algorithm based on trading with predefined fixed lot size.
CMoneyFixedMarginA class with an algorithm based on trading with predefined fixed margin.
CMoneyFixedRiskA class with an algorithm based on trading with predefined risk.
CMoneyNoneA class with an algorithm based on trading with minimal allowed lot size.
CMoneySizeOptimizedA class with an algorithm based on trading with variable lot size, depending on the results of the previous deals.
Last updated on