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

IncFractalsOnArray - bibliothèque pour MetaTrader 5

Vues:
3577
Note:
(20)
Publié:
2012.01.19 15:44
Mise à jour:
2016.11.22 07:32
\MQL5\Indicators\ \MQL5\Include\IncOnArray\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.

Usage:

Preparation (initialization) is not required.

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

  • const int aRatesTotal is the rates_total variable from the OnCalculate() function parameters;
  • const int aPrevCalc is the prev_calculated variable from the OnCalculate() function parameters;
  • double aDataHigh[] is the buffer with the High data for the indicator calculation;
  • double aDataLow[] is the buffer with the Low data for the indicator calculation;
  • double aUpper[] is the buffer with up fractals.
  • double aLower[] is the buffer with down fractals.
Additional methods:
  • int BarsRequired() returns the minimum number of bars required for the indicator calculation;
  • string Name() returns a string with the indicator name.

The Test_FractalsOnArray.mq5 file is an indicator demonstrating how to use the CFractalsOnArray class. The IncFractalsOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).

A Fractal is one of five indicators of Bill Williams’ trading system, which allows to detect the bottom or the top. Technical definition of the upwards fractal is a series of at least five successive bars, with the highest HIGH in the middle, and two lower HIGHs on both sides. The reversing set is a series of at least five successive bars, with the lowest LOW in the middle, and two higher LOWs on both sides, which correlates to the sell fractal. The fractals show upper and lower values and are marked by coloured signs on the chart.

An example of using the CFractalsOnArray class

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

IncTrixOnArray IncTrixOnArray

The CTrixOnArray class is intended for calculation of Triple Exponential Average (TRIX) on an indicator buffer.

IncPriceChannelOnArray IncPriceChannelOnArray

The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.

IncCHVOnArray IncCHVOnArray

The CCHOOnArray class is intended for calculation of the Chaikin Volatility indicator (CHV) on indicator buffers.

IncOBVOnArray IncOBVOnArray

The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.