Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

IncTemaOnArray - MetaTrader 5 Library | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

IncTemaOnArray - library for MetaTrader 5

CTemaOnArray class is used to calculate Tema (Triple Exponential Moving Average) on the indicator buffer.

This initialize() indicator function calls the OnInit() method with the following parameters:

This solve() function calls the OnCalculate() method with the following parameters:

Test_TemaOnArray.mq5 is an indicator that demonstrates 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). CMAOnArray class IncMAOnArray files are required for this class to work.

The Triple Exponential Moving Average Technical Indicator (TEMA) was developed by Patrick Mulloy and published in Stocks and Commodities Technical Analysis magazine. The calculation principle is similar to DEMA (Double Exponential Moving Average) . The name "Triple Exponential Moving Average" does not quite accurately reflect its algorithm. This is where the single, double and triple exponentially smoothed averages provide smaller lags than each index respectively.

IncTemaOnArray - library for MetaTrader 5


Attachment download

📎 incmaonarray.mqh (5.28 KB)

📎 inctemaonarray.mqh (2.94 KB)

📎 test_temaonarray.mq5 (2.55 KB)

Source: MQL5 #658

Verification code Refresh