Библиотеки: IncMAOnArray

 

IncMAOnArray:

Класс CMAOnArray предназначен для расчета средних (Moving Average) по индикаторному буферу.

Технический индикатор Скользящее Среднее (Moving Average, MA) показывает среднее значение цены инструмента за некоторый период времени. При расчете Moving Average производится математическое усреднение цены инструмента за данный период. По мере изменения цены ее среднее значение либо растет, либо падает.

Автор: Дмитрий

Пример использования класса CMAOnArray

 

Спасибо Дмитрий, нужная вещица,

жалко что MQ не имеет тех. возможности сделать это как стандартный индюк.

 

 Thanks a lot for the idea but i don't uderstand these things:

1) how to get access to the array MABuffer and data (filled by indicator Test_MAOnArray) from an Expert?

2) Could you provide an example, very simple, like print( data[0], MABuffer[0]))

3) I have to call iCustom or somenthig different?

Thanks and sorry.. i'm a newbe! 

 
maximaxx:

 Thanks a lot for the idea but i don't uderstand these things:

1) how to get access to the array MABuffer and data (filled by indicator Test_MAOnArray) from an Expert?

2) Could you provide an example, very simple, like print( data[0], MABuffer[0]))

3) I have to call iCustom or somenthig different?

Thanks and sorry.. i'm a newbe! 

1. Just like to access any other custom indicators - by iCustom() function and CopyBuffer() function.

2. Excuse me, no. See docs and articles.

3. Yes.

All my OnArray classes must be used in indicators only, do not try to use them in experts.