The CTemaOnArray class is intended for calculation of TEMA (Triple Exponential Moving Average) on an indicator buffer.
The Init() method with the following parameters is called in the OnInit() function of the indicator:
The Solve() method with the following parameters is called in the OnCalculate() function:
Test_TemaOnArray.mq5 is an indicator demonstrating how to use the CTemaOnArray class. The IncTemaOnArray 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.
Triple Exponential Moving Average Technical Indicator (TEMA) was developed by Patrick Mulloy and published in the "Technical Analysis of Stocks & Commodities" magazine. The principle of its calculation is similar to DEMA (Double Exponential Moving Average). The name "Triple Exponential Moving Average" does not very correctly reflect its algorithm. This is a unique blend of the single, double and triple exponential smoothing average providing the smaller lag than each of them separately.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/658
The indicator draws a grid of possible future levels of price.VQ bars
Trend indicator that sets color dots on a price chart according to a trend direction.
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.IncDemaOnArray
The CDemaOnArray class is intended for calculation of DEMA (Double Exponential Moving Average) on an indicator buffer.