CExpertBase is a base class for the CExpert class and all trading strategy classes.
CExpertBase provides the data and methods, which are common to all objects of the Expert Advisor.
class CExpertBase : public CObject |
#include <Expert\CExpertBase.mqh> |
Initialization |
|
virtual Init |
Class instance initialization method |
virtual ValidationSettings |
Checks the settings |
Parameters |
|
Sets the symbol |
|
Sets the timeframe |
|
Sets the Expert Advisor ID |
|
Indicators and Timeseries |
|
virtual SetPriceSeries |
Sets pointers to external timeseries (price series) |
virtual SetOtherSeries |
Sets pointers to external timeseries (non-price series) |
virtual InitIndicators |
Initializes the indicators and timeseries |
Access to Protected Data |
|
Gets the current phase of object initialization |
|
Sets trend type |
|
Gets bitmask of timeseries used |
|
Sets the "Every tick" flag |
|
Access to Timeseries |
|
Gets the element of the Open timeseries by index |
|
Gets the element of the High timeseries by index |
|
Gets the element of the Low timeseries by index |
|
Gets the element of the Close timeseries by index |
|
Gets the element of the Spread timeseries by index |
|
Gets the element of the Time timeseries by index |
|
Gets the element of the TickVolume timeseries by index |
|
Gets the element of the RealVolume timeseries by index |
Initialization of Timeseries |
|
Open timeseries initialization method |
|
High timeseries initialization method |
|
Low timeseries initialization method |
|
Close timeseries initialization method |
|
Spread timeseries initialization method |
|
Time timeseries initialization method |
|
TickVolume timeseries initialization method |
|
RealVolume timeseries initialization method |
|
Service Methods |
|
virtual PriceLevelUnit |
Gets the price level unit |
virtual StartIndex |
Gets the index of starting bar to analyze |
virtual CompareMagic |
Compares the Expert Advisor ID with the specified value |