Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Bibliothèque

IncStdDevOnArray - bibliothèque pour MetaTrader 5

Vues:
3380
Note:
(36)
Publié:
2012.01.16 12:20
Mise à jour:
2017.09.06 10:15
\MQL5\Include\IncOnArray\ \MQL5\Indicators\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

CStdDevOnArray class is designed for calculation of Standard Deviation (StdDev) on indicator buffers.

Usage:

Init() method with the following parameters is called in the OnInit() function:

  • int aPeriod - indicator period;
  • ENUM_MA_METHOD aMethod - MA method.

Solve() method with the following parameters is called in the OnCalculate() function:

  • const int aRatesTotal is a rates_total variable from the OnCalculate() function parameters;
  • const int aPrevCalc - prev_calculated variable from the OnCalculate() function;
  • double & aData[] - Close data buffer for the indicator calculation;
  • double & aMA[] - intermediate buffer for the average value calculation;
  • double & aStdDev[] - the buffer with the indicator calculated value.

Test_StdDevOnArray.mq5 is a sample indicator showing CStdDevOnArray class application. IncStdDevOnArray file must be placed to MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created).

CMAOnArray class from the IncMAOnArray file is needed for the proper work. It can be found here.

Standard Deviation is a value of the market volatility measurement. This indicator describes the range of price fluctuations relative to Moving Average.

Example of use of CStdDevOnArray

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/638

LeMan Objective LeMan Objective

The indicator shows possible targets of price movement. It calculates the distance from the market entry price to the highs and lows displaying the quartiles deviation.

BykovTrend_HTF_Signal BykovTrend_HTF_Signal

BykovTrend_HTF_Signal shows a trend direction or a signal for performing a deal generated by BykovTrend indicator as a graphic object with colored trend indication or deal direction.

IncIchimokuOnArray IncIchimokuOnArray

The CIchimokuOnArray class is intended for calculation of Ichimoku (Ichimoku Kinko Hyo) values on indicator buffers.

IncBandsOnArray IncBandsOnArray

The CBandsOnArray is intended for calculation of the Bollinger Bands ® (BB) on an indicator buffer.