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

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

author EAcpu | 2 reads | 0 comments |

IncDemaOnArray - library for MetaTrader 5

The CDemaOnArray class is used to calculate the dema (Double 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_DemaOnArray.mq5 is an indicator that demonstrates 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). CMAOnArray class IncMAOnArray files are required for this class to work.

The Double Exponential Moving Average Technical Indicator (DEMA) was developed by Patrick Mulloy and published in "Stocks and Commodities Technical Analysis" magazine in February 1994. Used to smooth price series and applied directly on price charts of financial securities. Additionally, it can be used for smoothing values ​​of other indicators.

IncDemaOnArray - library for MetaTrader 5


Attachment download

📎 incdemaonarray.mqh (2.75 KB)

📎 incmaonarray.mqh (5.28 KB)

📎 test_demaonarray.mq5 (2.44 KB)

Source: MQL5 #657

Verification code Refresh