CExpertTrailing
CExpertTrailing
CExpertTrailing
CExpertTrailing is a base class for trailing algorithms, it does nothing but provides the interfaces.
How to use it:
- Prepare an algorithm for trailing;
- Create your own trailing class inherited from CExpertTrailing class;
- Override the virtual methods in your class with your own algorithms.
You can find an examples of trailing classes in the Expert\Trailing\ folder.
Description
CExpertTrailing is a base class for implementation of trailing stop algorithms.
Declaration
class CExpertTrailing : public CExpertBaseTitle
#include <Expert\ExpertTrailing.mqh>Inheritance hierarchy
CExpertTrailing
Direct descendants
: CTrailingFixedPips, CTrailingMA, CTrailingNone, CTrailingPSAR
Class Methods by Groups
| Checking of Trailing Stop Conditions | |
|---|---|
| virtual CheckTrailingStopLong | Checks conditions to modify parameters of the long position |
| virtual CheckTrailingStopShort | Checks conditions to modify parameters of the short position |
Methods inherited from class CExpertBase
: InitPhase, TrendType, UsedSeries, EveryTick, Open, High, Low, Close, Spread, Time, TickVolume, RealVolume, Init, Symbol, Period, Magic, SetMarginMode, ValidationSettings, SetPriceSeries, SetOtherSeries, InitIndicators
Last updated on