Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/3671-standardlibrary-expertclasses-sampletrailingclasses-ctrailingpsar.md
T
2026-06-23 21:47:51 +08:00

48 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 | |
| --- | --- |
| Step | Sets the value of step of Parabolic SAR indicator |
| Maximum | Sets the value of maximum of Parabolic SAR indicator |
| virtual InitIndicators | Initializes indicators and timeseries |
| Check Trailing Methods | |
| virtual CheckTrailingStopLong | Check conditions of trailing stop of a long position |
| virtual CheckTrailingStopShort | Check conditions of trailing stop of a short position |
| Methods inherited from class CObject
Prev, Prev, Next, Next, Save , Load , Type , Compare |
| --- |
| 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 |