Libraries: IncTemaOnArray

 

IncTemaOnArray:

The CTemaOnArray class is intended for calculation of TEMA (Triple Exponential Moving Average) on an indicator buffer.

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.

Author: Дмитрий

An example of using the CTemaOnArray class

 
in MaxBars = 500;
int limit=(int)MathMin(rates_total-prev_calculated,MaxBars);
   

I want to have only the current 50 bars calculated and displayed.

How do I change the code? 

Reason: