MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

BrainTrend2Sig Indicator
BrainTrend2Sig
Author: GODZILLA
Screenshot
CADJPY, W1
Real
ALL TRENDSALL TRENDS Try product
ALL TRENDS
Author: chandra100
Subscribe to signal
A 00000
84.32%, 237.31 USD
Statistical Estimations Statistical Estimations

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>

Class Methods

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 time series

Check Trailing Methods

 

virtual CheckTrailingStopLong

Check conditions of trailing stop of long position

virtual CheckTrailingStopShort

Check conditions of trailing stop of short position

 

 


Updated: 2013.02.19