Skip to content

CExpertBase

CExpertBase

CExpertBase is a base class for the CExpert class and all auxiliary trading strategy classes.

Description

CExpertBase provides the data and methods, which are common to all objects of the Expert Advisor.

Declaration

class CExpertBase : public CObject

Title

#include <Expert\ExpertBase.mqh>

Inheritance hierarchy

CObject

CExpertBase

Direct descendants

: CExpert, CExpertMoney, CExpertSignal, CExpertTrailing

Class Methods by Groups

Public Methods:

Initialization
virtual InitInitializes the object
virtual ValidationSettingsChecks the settings
Parameters
SymbolSets the symbol
PeriodSets the timeframe
MagicSets the Expert Advisor ID
Indicators and Timeseries
virtual SetPriceSeriesSets pointers to external timeseries (price series)
virtual SetOtherSeriesSets pointers to external timeseries (non-price series)
virtual InitIndicatorsInitializes the indicators and timeseries
Access to Protected Data
InitPhaseGets the current phase of object initialization
TrendTypeSets trend type
UsedSeriesGets bitmask of timeseries used
EveryTickSets the “Every tick” flag
Access to Timeseries
OpenGets the element of the Open timeseries by index
HighGets the element of the High timeseries by index
LowGets the element of the Low timeseries by index
CloseGets the element of the Close timeseries by index
SpreadGets the element of the Spread timeseries by index
TimeGets the element of the Time timeseries by index
TickVolumeGets the element of the TickVolume timeseries by index
RealVolumeGets the element of the RealVolume timeseries by index

Protected Methods:

Initialization of Timeseries
InitOpenOpen timeseries initialization method
InitHighHigh timeseries initialization method
InitLowLow timeseries initialization method
InitCloseClose timeseries initialization method
InitSpreadSpread timeseries initialization method
InitTimeTime timeseries initialization method
InitTickVolumeTickVolume timeseries initialization method
InitRealVolumeRealVolume timeseries initialization method
Service Methods
virtual PriceLevelUnitGets the price level unit
virtual StartIndexGets the index of starting bar to analyze
virtual CompareMagicCompares the Expert Advisor ID with the specified value

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type, Compare

Last updated on