Unisciti alla nostra fan page
- Visualizzazioni:
- 3284
- Valutazioni:
- Pubblicato:
- 2012.01.23 08:07
- Aggiornato:
- 2017.09.06 09:57
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
The CDemaOnArray class is intended for calculation of DEMA (Double Exponential Moving Average) on an indicator buffer.
Usage:
The Init() method with the following parameters is called in the OnInit() function of the indicator:
- int aPeriod is indicator period;
- ENUM_MA_METHOD aMethod is a method of smoothing.
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 aData[] is a buffer with data for the indicator calculation;
- double aM1[] is an intermediate buffer for calculations;
- double aM2[] is an intermediate buffer for calculations;
- double aDEMA[] is the buffer with calculated value of the indicator.
- int BarsRequired() returns the minimum number of bars required for the indicator calculation;
- string Name() returns a string with the indicator name;
Test_DemaOnArray.mq5 is an indicator demonstrating how to use the CDemaOnArray class. The IncDemaOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created). The CMAOnArray class for the IncMAOnArray file is required for this class for work.
Double Exponential Moving Average Technical Indicator (DEMA) was developed by Patrick Mulloy and published in February 1994 in the "Technical Analysis of Stocks & Commodities" magazine. It is used for smoothing price series and is applied directly on a price chart of a financial security. Besides, it can be used for smoothing values of other indicators.
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/657
![DinapoliTargets_Full](https://c.mql5.com/i/code/indicator.png)
This version of the DinapoliTargets_Full indicator is convenient with its capability to be draw for any bar of a chart, what allows seeing the whole picture of the market behavior relative to the indicator levels on each bar. Apparently this indicator can be most useful when analyzing a strategy in the offline mode.
![IncTemaOnArray](https://c.mql5.com/i/code/library.png)
The CTemaOnArray class is intended for calculation of TEMA (Triple Exponential Moving Average) on an indicator buffer.
![SL_ATR](https://c.mql5.com/i/code/indicator.png)
The indicator creates areas of preferable stop-losses location for long and short positions at any time.
![Polarized Fractal Efficiency](https://c.mql5.com/i/code/indicator.png)
Polarized Fractal Efficiency is a technical indicator that displays the current market prices efficiency.