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

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

author EAcpu | 2 reads | 0 comments |

IncAMAOnArray - library for MetaTrader 5

The CAMAOnArray class is designed to calculate the (Adaptive Moving Average) value on the buffer of the American Medical Association indicator.

The method OnInit( ) function with the following parameters is called in the initialization( ) function:

The method OnCalculate() is called with the following parameters in the resolve() function:

Additional methods:

int BarsRequired() - returns the minimum number of bars for indicator calculation;
string Name() - returns the row containing the indicator name.

Test_AMAOnArray.mq5 - is a sample indicator showing the use of CAMAOnArray class. The IncAMAOnArray file must be placed in MQL5\Include\IncOnArray in the terminal's data folder (the IncOnArray folder must be created).

The Adaptive Moving Average (AMA) technical indicator is used to construct a moving average with low sensitivity to price series noise and is characterized by minimal lag in trend detection. This indicator was developed and described by Perry Kaufman in his book "Smarter Trading".

IncAMAOnArray - library for MetaTrader 5


Attachment download

📎 incamaonarray.mqh (3.3 KB)

📎 test_amaonarray.mq5 (2.33 KB)

Source: MQL5 #630

Verification code Refresh