Подправить индикатор Простой МА

MQL4 Indicators

Specification

Индикатор должен строить простую скользящую среднюю на графике. Прикрепил.

Проблема - индикатор ее не строит.

Подправить функцию _iMA, которая отвечает за расчет простой скользящей средней.

 

Если обращаться к стандартной функции iMA - все работает.  


p.s. 

Ссылка на коды скользящих средних: http://codebase.mql4.com/ru/163

Files:

MQ4
_MA_KR_.mq4
2.7 Kb

Responded

1
Developer 1
Rating
Projects
5
20%
Arbitration
0
Overdue
3
60%
Free
2
Developer 2
Rating
(473)
Projects
1139
44%
Arbitration
51
31% / 33%
Overdue
501
44%
Free
3
Developer 3
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
4
Developer 4
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
6
Developer 6
Rating
(37)
Projects
105
49%
Arbitration
6
0% / 17%
Overdue
21
20%
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(47)
Projects
140
49%
Arbitration
9
56% / 0%
Overdue
27
19%
Free
9
Developer 9
Rating
(73)
Projects
257
53%
Arbitration
16
50% / 38%
Overdue
83
32%
Free
10
Developer 10
Rating
(40)
Projects
106
52%
Arbitration
17
12% / 65%
Overdue
25
24%
Free
11
Developer 11
Rating
(90)
Projects
159
61%
Arbitration
40
18% / 63%
Overdue
70
44%
Free
12
Developer 12
Rating
Projects
2
0%
Arbitration
0
Overdue
2
100%
Free
13
Developer 13
Rating
(31)
Projects
41
66%
Arbitration
1
100% / 0%
Overdue
11
27%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
Projects
5
40%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(1)
Projects
4
25%
Arbitration
1
0% / 100%
Overdue
1
25%
Free
Published: 6 codes

Project information

Budget