Skip to content

CTrailingPSAR

CTrailingPSAR

CTrailingPSAR is a class with implementation of Trailing Stop algorithm based on the values of Parabolic SAR indicator.

Description

CTrailingPSAR class implements the Trailing Stop algorithm based on the values of Parabolic SAR indicator of the previous (completed) bar.

Declaration

class CTrailingPSAR: public CExpertTrailing

Title

#include <Expert\Trailing\TrailingParabolicSAR.mqh>

Inheritance hierarchy

CObject

CExpertBase

CExpertTrailing

CTrailingPSAR

Class Methods by Groups

Initialization
StepSets the value of step of Parabolic SAR indicator
MaximumSets the value of maximum of Parabolic SAR indicator
virtual InitIndicatorsInitializes indicators and timeseries
Check Trailing Methods
virtual CheckTrailingStopLongCheck conditions of trailing stop of a long position
virtual CheckTrailingStopShortCheck conditions of trailing stop of a 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

Last updated on