-
Notifications
You must be signed in to change notification settings - Fork 1
/
RainbowMMA.mq4
443 lines (433 loc) · 19.9 KB
/
RainbowMMA.mq4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
//+-----------------------------------------------------------------------------+
//| RainbowMMA.mq4 |
//| Copyright © 2022, EarnForex.com |
//| Based on RainbowMMA_01.mq4 by Akuma99 |
//+-----------------------------------------------------------------------------+
#property copyright "Copyright © 2022, EarnForex.com"
#property link "https://www.earnforex.com/metatrader-indicators/Rainbow-Multiple-Moving-Average/"
#property version "1.00"
#property strict
#property description "Rainbow Multiple Moving Average - 66 multi-colored MA lines."
#property indicator_chart_window
#property indicator_buffers 66
#property indicator_color1 clrMediumOrchid
#property indicator_type1 DRAW_LINE
#property indicator_color2 clrMediumOrchid
#property indicator_type2 DRAW_LINE
#property indicator_color3 clrMediumOrchid
#property indicator_type3 DRAW_LINE
#property indicator_color4 clrMediumOrchid
#property indicator_type4 DRAW_LINE
#property indicator_color5 clrMediumOrchid
#property indicator_type5 DRAW_LINE
#property indicator_color6 clrMediumOrchid
#property indicator_type6 DRAW_LINE
#property indicator_color7 clrMediumOrchid
#property indicator_type7 DRAW_LINE
#property indicator_color8 clrMediumOrchid
#property indicator_type8 DRAW_LINE
#property indicator_color9 clrMediumOrchid
#property indicator_type9 DRAW_LINE
#property indicator_color10 clrMediumOrchid
#property indicator_type10 DRAW_LINE
#property indicator_color11 clrMediumOrchid
#property indicator_type11 DRAW_LINE
#property indicator_color12 clrMediumOrchid
#property indicator_type12 DRAW_LINE
#property indicator_color13 clrMediumOrchid
#property indicator_type13 DRAW_LINE
#property indicator_color14 clrMediumOrchid
#property indicator_type14 DRAW_LINE
#property indicator_color15 clrMediumOrchid
#property indicator_type15 DRAW_LINE
#property indicator_color16 clrMediumOrchid
#property indicator_type16 DRAW_LINE
#property indicator_color17 clrPink
#property indicator_type17 DRAW_LINE
#property indicator_color18 clrPink
#property indicator_type18 DRAW_LINE
#property indicator_color19 clrPink
#property indicator_type19 DRAW_LINE
#property indicator_color20 clrPink
#property indicator_type20 DRAW_LINE
#property indicator_color21 clrPink
#property indicator_type21 DRAW_LINE
#property indicator_color22 clrPink
#property indicator_type22 DRAW_LINE
#property indicator_color23 clrPink
#property indicator_type23 DRAW_LINE
#property indicator_color24 clrPink
#property indicator_type24 DRAW_LINE
#property indicator_color25 clrPink
#property indicator_type25 DRAW_LINE
#property indicator_color26 clrPink
#property indicator_type26 DRAW_LINE
#property indicator_color27 clrPink
#property indicator_type27 DRAW_LINE
#property indicator_color28 clrPink
#property indicator_type28 DRAW_LINE
#property indicator_color29 clrLime
#property indicator_type29 DRAW_LINE
#property indicator_color30 clrLime
#property indicator_type30 DRAW_LINE
#property indicator_color31 clrLime
#property indicator_type31 DRAW_LINE
#property indicator_color32 clrLime
#property indicator_type32 DRAW_LINE
#property indicator_color33 clrLime
#property indicator_type33 DRAW_LINE
#property indicator_color34 clrLime
#property indicator_type34 DRAW_LINE
#property indicator_color35 clrLime
#property indicator_type35 DRAW_LINE
#property indicator_color36 clrLime
#property indicator_type36 DRAW_LINE
#property indicator_color37 clrLime
#property indicator_type37 DRAW_LINE
#property indicator_color38 clrLime
#property indicator_type38 DRAW_LINE
#property indicator_color39 clrLime
#property indicator_type39 DRAW_LINE
#property indicator_color40 clrDeepSkyBlue
#property indicator_type40 DRAW_LINE
#property indicator_color41 clrDeepSkyBlue
#property indicator_type41 DRAW_LINE
#property indicator_color42 clrDeepSkyBlue
#property indicator_type42 DRAW_LINE
#property indicator_color43 clrDeepSkyBlue
#property indicator_type43 DRAW_LINE
#property indicator_color44 clrDeepSkyBlue
#property indicator_type44 DRAW_LINE
#property indicator_color45 clrDeepSkyBlue
#property indicator_type45 DRAW_LINE
#property indicator_color46 clrDeepSkyBlue
#property indicator_type46 DRAW_LINE
#property indicator_color47 clrDeepSkyBlue
#property indicator_type47 DRAW_LINE
#property indicator_color48 clrDeepSkyBlue
#property indicator_type48 DRAW_LINE
#property indicator_color49 clrDeepSkyBlue
#property indicator_type49 DRAW_LINE
#property indicator_color50 clrDeepSkyBlue
#property indicator_type50 DRAW_LINE
#property indicator_color51 clrDeepSkyBlue
#property indicator_type51 DRAW_LINE
#property indicator_color52 clrDeepSkyBlue
#property indicator_type52 DRAW_LINE
#property indicator_color53 clrGold
#property indicator_type53 DRAW_LINE
#property indicator_color54 clrGold
#property indicator_type54 DRAW_LINE
#property indicator_color55 clrGold
#property indicator_type55 DRAW_LINE
#property indicator_color56 clrGold
#property indicator_type56 DRAW_LINE
#property indicator_color57 clrGold
#property indicator_type57 DRAW_LINE
#property indicator_color58 clrGold
#property indicator_type58 DRAW_LINE
#property indicator_color59 clrGold
#property indicator_type59 DRAW_LINE
#property indicator_color60 clrGold
#property indicator_type60 DRAW_LINE
#property indicator_color61 clrGold
#property indicator_type61 DRAW_LINE
#property indicator_color62 clrGold
#property indicator_type62 DRAW_LINE
#property indicator_color63 clrGold
#property indicator_type63 DRAW_LINE
#property indicator_color64 clrGold
#property indicator_type64 DRAW_LINE
#property indicator_color65 clrGold
#property indicator_type65 DRAW_LINE
#property indicator_color66 clrGold
#property indicator_type66 DRAW_LINE
input ENUM_MA_METHOD MA_Type = MODE_EMA; // MA Type
input ENUM_APPLIED_PRICE MA_Price = PRICE_CLOSE; // MA Price
input int MA_Period_01 = 200; // MA 01 Period
input int MA_Period_02 = 195; // MA 02 Period
input int MA_Period_03 = 190; // MA 03 Period
input int MA_Period_04 = 185; // MA 04 Period
input int MA_Period_05 = 180; // MA 05 Period
input int MA_Period_06 = 175; // MA 06 Period
input int MA_Period_07 = 170; // MA 07 Period
input int MA_Period_08 = 165; // MA 08 Period
input int MA_Period_09 = 160; // MA 09 Period
input int MA_Period_10 = 155; // MA 10 Period
input int MA_Period_11 = 150; // MA 11 Period
input int MA_Period_12 = 145; // MA 12 Period
input int MA_Period_13 = 140; // MA 13 Period
input int MA_Period_14 = 135; // MA 14 Period
input int MA_Period_15 = 130; // MA 15 Period
input int MA_Period_16 = 125; // MA 16 Period
input int MA_Period_17 = 122; // MA 17 Period
input int MA_Period_18 = 118; // MA 18 Period
input int MA_Period_19 = 114; // MA 19 Period
input int MA_Period_20 = 110; // MA 20 Period
input int MA_Period_21 = 106; // MA 21 Period
input int MA_Period_22 = 102; // MA 22 Period
input int MA_Period_23 = 98; // MA 23 Period
input int MA_Period_24 = 94; // MA 24 Period
input int MA_Period_25 = 90; // MA 25 Period
input int MA_Period_26 = 86; // MA 26 Period
input int MA_Period_27 = 82; // MA 27 Period
input int MA_Period_28 = 78; // MA 28 Period
input int MA_Period_29 = 74; // MA 29 Period
input int MA_Period_30 = 71; // MA 30 Period
input int MA_Period_31 = 68; // MA 31 Period
input int MA_Period_32 = 65; // MA 32 Period
input int MA_Period_33 = 62; // MA 33 Period
input int MA_Period_34 = 59; // MA 34 Period
input int MA_Period_35 = 56; // MA 35 Period
input int MA_Period_36 = 53; // MA 36 Period
input int MA_Period_37 = 50; // MA 37 Period
input int MA_Period_38 = 47; // MA 38 Period
input int MA_Period_39 = 44; // MA 39 Period
input int MA_Period_40 = 41; // MA 40 Period
input int MA_Period_41 = 39; // MA 41 Period
input int MA_Period_42 = 37; // MA 42 Period
input int MA_Period_43 = 35; // MA 43 Period
input int MA_Period_44 = 33; // MA 44 Period
input int MA_Period_45 = 31; // MA 45 Period
input int MA_Period_46 = 29; // MA 46 Period
input int MA_Period_47 = 27; // MA 47 Period
input int MA_Period_48 = 25; // MA 48 Period
input int MA_Period_49 = 23; // MA 49 Period
input int MA_Period_50 = 21; // MA 50 Period
input int MA_Period_51 = 19; // MA 51 Period
input int MA_Period_52 = 17; // MA 52 Period
input int MA_Period_53 = 15; // MA 53 Period
input int MA_Period_54 = 14; // MA 54 Period
input int MA_Period_55 = 13; // MA 55 Period
input int MA_Period_56 = 12; // MA 56 Period
input int MA_Period_57 = 11; // MA 57 Period
input int MA_Period_58 = 10; // MA 58 Period
input int MA_Period_59 = 9; // MA 59 Period
input int MA_Period_60 = 8; // MA 60 Period
input int MA_Period_61 = 7; // MA 61 Period
input int MA_Period_62 = 6; // MA 62 Period
input int MA_Period_63 = 5; // MA 63 Period
input int MA_Period_64 = 4; // MA 64 Period
input int MA_Period_65 = 3; // MA 65 Period
input int MA_Period_66 = 2; // MA 66 Period
double ExtMapBuffer01[];
double ExtMapBuffer02[];
double ExtMapBuffer03[];
double ExtMapBuffer04[];
double ExtMapBuffer05[];
double ExtMapBuffer06[];
double ExtMapBuffer07[];
double ExtMapBuffer08[];
double ExtMapBuffer09[];
double ExtMapBuffer10[];
double ExtMapBuffer11[];
double ExtMapBuffer12[];
double ExtMapBuffer13[];
double ExtMapBuffer14[];
double ExtMapBuffer15[];
double ExtMapBuffer16[];
double ExtMapBuffer17[];
double ExtMapBuffer18[];
double ExtMapBuffer19[];
double ExtMapBuffer20[];
double ExtMapBuffer21[];
double ExtMapBuffer22[];
double ExtMapBuffer23[];
double ExtMapBuffer24[];
double ExtMapBuffer25[];
double ExtMapBuffer26[];
double ExtMapBuffer27[];
double ExtMapBuffer28[];
double ExtMapBuffer29[];
double ExtMapBuffer30[];
double ExtMapBuffer31[];
double ExtMapBuffer32[];
double ExtMapBuffer33[];
double ExtMapBuffer34[];
double ExtMapBuffer35[];
double ExtMapBuffer36[];
double ExtMapBuffer37[];
double ExtMapBuffer38[];
double ExtMapBuffer39[];
double ExtMapBuffer40[];
double ExtMapBuffer41[];
double ExtMapBuffer42[];
double ExtMapBuffer43[];
double ExtMapBuffer44[];
double ExtMapBuffer45[];
double ExtMapBuffer46[];
double ExtMapBuffer47[];
double ExtMapBuffer48[];
double ExtMapBuffer49[];
double ExtMapBuffer50[];
double ExtMapBuffer51[];
double ExtMapBuffer52[];
double ExtMapBuffer53[];
double ExtMapBuffer54[];
double ExtMapBuffer55[];
double ExtMapBuffer56[];
double ExtMapBuffer57[];
double ExtMapBuffer58[];
double ExtMapBuffer59[];
double ExtMapBuffer60[];
double ExtMapBuffer61[];
double ExtMapBuffer62[];
double ExtMapBuffer63[];
double ExtMapBuffer64[];
double ExtMapBuffer65[];
double ExtMapBuffer66[];
void OnInit()
{
SetIndexBuffer(0, ExtMapBuffer01);
SetIndexBuffer(1, ExtMapBuffer02);
SetIndexBuffer(2, ExtMapBuffer03);
SetIndexBuffer(3, ExtMapBuffer04);
SetIndexBuffer(4, ExtMapBuffer05);
SetIndexBuffer(5, ExtMapBuffer06);
SetIndexBuffer(6, ExtMapBuffer07);
SetIndexBuffer(7, ExtMapBuffer08);
SetIndexBuffer(8, ExtMapBuffer09);
SetIndexBuffer(9, ExtMapBuffer10);
SetIndexBuffer(10, ExtMapBuffer11);
SetIndexBuffer(11, ExtMapBuffer12);
SetIndexBuffer(12, ExtMapBuffer13);
SetIndexBuffer(13, ExtMapBuffer14);
SetIndexBuffer(14, ExtMapBuffer15);
SetIndexBuffer(15, ExtMapBuffer16);
SetIndexBuffer(16, ExtMapBuffer17);
SetIndexBuffer(17, ExtMapBuffer18);
SetIndexBuffer(18, ExtMapBuffer19);
SetIndexBuffer(19, ExtMapBuffer20);
SetIndexBuffer(20, ExtMapBuffer21);
SetIndexBuffer(21, ExtMapBuffer22);
SetIndexBuffer(22, ExtMapBuffer23);
SetIndexBuffer(23, ExtMapBuffer24);
SetIndexBuffer(24, ExtMapBuffer25);
SetIndexBuffer(25, ExtMapBuffer26);
SetIndexBuffer(26, ExtMapBuffer27);
SetIndexBuffer(27, ExtMapBuffer28);
SetIndexBuffer(28, ExtMapBuffer29);
SetIndexBuffer(29, ExtMapBuffer30);
SetIndexBuffer(30, ExtMapBuffer31);
SetIndexBuffer(31, ExtMapBuffer32);
SetIndexBuffer(32, ExtMapBuffer33);
SetIndexBuffer(33, ExtMapBuffer34);
SetIndexBuffer(34, ExtMapBuffer35);
SetIndexBuffer(35, ExtMapBuffer36);
SetIndexBuffer(36, ExtMapBuffer37);
SetIndexBuffer(37, ExtMapBuffer38);
SetIndexBuffer(38, ExtMapBuffer39);
SetIndexBuffer(39, ExtMapBuffer40);
SetIndexBuffer(40, ExtMapBuffer41);
SetIndexBuffer(41, ExtMapBuffer42);
SetIndexBuffer(42, ExtMapBuffer43);
SetIndexBuffer(43, ExtMapBuffer44);
SetIndexBuffer(44, ExtMapBuffer45);
SetIndexBuffer(45, ExtMapBuffer46);
SetIndexBuffer(46, ExtMapBuffer47);
SetIndexBuffer(47, ExtMapBuffer48);
SetIndexBuffer(48, ExtMapBuffer49);
SetIndexBuffer(49, ExtMapBuffer50);
SetIndexBuffer(50, ExtMapBuffer51);
SetIndexBuffer(51, ExtMapBuffer52);
SetIndexBuffer(52, ExtMapBuffer53);
SetIndexBuffer(53, ExtMapBuffer54);
SetIndexBuffer(54, ExtMapBuffer55);
SetIndexBuffer(55, ExtMapBuffer56);
SetIndexBuffer(56, ExtMapBuffer57);
SetIndexBuffer(57, ExtMapBuffer58);
SetIndexBuffer(58, ExtMapBuffer59);
SetIndexBuffer(59, ExtMapBuffer60);
SetIndexBuffer(60, ExtMapBuffer61);
SetIndexBuffer(61, ExtMapBuffer62);
SetIndexBuffer(62, ExtMapBuffer63);
SetIndexBuffer(63, ExtMapBuffer64);
SetIndexBuffer(64, ExtMapBuffer65);
SetIndexBuffer(65, ExtMapBuffer66);
}
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
int counted_bars = IndicatorCounted();
if (counted_bars > 0) counted_bars--;
int limit = Bars - counted_bars;
for (int i = 0; i < limit; i++)
{
ExtMapBuffer01[i] = iMA(Symbol(), Period(), MA_Period_01, 0, MA_Type, MA_Price, i);
ExtMapBuffer02[i] = iMA(Symbol(), Period(), MA_Period_02, 0, MA_Type, MA_Price, i);
ExtMapBuffer03[i] = iMA(Symbol(), Period(), MA_Period_03, 0, MA_Type, MA_Price, i);
ExtMapBuffer04[i] = iMA(Symbol(), Period(), MA_Period_04, 0, MA_Type, MA_Price, i);
ExtMapBuffer05[i] = iMA(Symbol(), Period(), MA_Period_05, 0, MA_Type, MA_Price, i);
ExtMapBuffer06[i] = iMA(Symbol(), Period(), MA_Period_06, 0, MA_Type, MA_Price, i);
ExtMapBuffer07[i] = iMA(Symbol(), Period(), MA_Period_07, 0, MA_Type, MA_Price, i);
ExtMapBuffer08[i] = iMA(Symbol(), Period(), MA_Period_08, 0, MA_Type, MA_Price, i);
ExtMapBuffer09[i] = iMA(Symbol(), Period(), MA_Period_09, 0, MA_Type, MA_Price, i);
ExtMapBuffer10[i] = iMA(Symbol(), Period(), MA_Period_10, 0, MA_Type, MA_Price, i);
ExtMapBuffer11[i] = iMA(Symbol(), Period(), MA_Period_11, 0, MA_Type, MA_Price, i);
ExtMapBuffer12[i] = iMA(Symbol(), Period(), MA_Period_12, 0, MA_Type, MA_Price, i);
ExtMapBuffer13[i] = iMA(Symbol(), Period(), MA_Period_13, 0, MA_Type, MA_Price, i);
ExtMapBuffer14[i] = iMA(Symbol(), Period(), MA_Period_14, 0, MA_Type, MA_Price, i);
ExtMapBuffer15[i] = iMA(Symbol(), Period(), MA_Period_15, 0, MA_Type, MA_Price, i);
ExtMapBuffer16[i] = iMA(Symbol(), Period(), MA_Period_16, 0, MA_Type, MA_Price, i);
ExtMapBuffer17[i] = iMA(Symbol(), Period(), MA_Period_17, 0, MA_Type, MA_Price, i);
ExtMapBuffer18[i] = iMA(Symbol(), Period(), MA_Period_18, 0, MA_Type, MA_Price, i);
ExtMapBuffer19[i] = iMA(Symbol(), Period(), MA_Period_19, 0, MA_Type, MA_Price, i);
ExtMapBuffer20[i] = iMA(Symbol(), Period(), MA_Period_20, 0, MA_Type, MA_Price, i);
ExtMapBuffer21[i] = iMA(Symbol(), Period(), MA_Period_21, 0, MA_Type, MA_Price, i);
ExtMapBuffer22[i] = iMA(Symbol(), Period(), MA_Period_22, 0, MA_Type, MA_Price, i);
ExtMapBuffer23[i] = iMA(Symbol(), Period(), MA_Period_23, 0, MA_Type, MA_Price, i);
ExtMapBuffer24[i] = iMA(Symbol(), Period(), MA_Period_24, 0, MA_Type, MA_Price, i);
ExtMapBuffer25[i] = iMA(Symbol(), Period(), MA_Period_25, 0, MA_Type, MA_Price, i);
ExtMapBuffer26[i] = iMA(Symbol(), Period(), MA_Period_26, 0, MA_Type, MA_Price, i);
ExtMapBuffer27[i] = iMA(Symbol(), Period(), MA_Period_27, 0, MA_Type, MA_Price, i);
ExtMapBuffer28[i] = iMA(Symbol(), Period(), MA_Period_28, 0, MA_Type, MA_Price, i);
ExtMapBuffer29[i] = iMA(Symbol(), Period(), MA_Period_29, 0, MA_Type, MA_Price, i);
ExtMapBuffer30[i] = iMA(Symbol(), Period(), MA_Period_30, 0, MA_Type, MA_Price, i);
ExtMapBuffer31[i] = iMA(Symbol(), Period(), MA_Period_31, 0, MA_Type, MA_Price, i);
ExtMapBuffer32[i] = iMA(Symbol(), Period(), MA_Period_32, 0, MA_Type, MA_Price, i);
ExtMapBuffer33[i] = iMA(Symbol(), Period(), MA_Period_33, 0, MA_Type, MA_Price, i);
ExtMapBuffer34[i] = iMA(Symbol(), Period(), MA_Period_34, 0, MA_Type, MA_Price, i);
ExtMapBuffer35[i] = iMA(Symbol(), Period(), MA_Period_35, 0, MA_Type, MA_Price, i);
ExtMapBuffer36[i] = iMA(Symbol(), Period(), MA_Period_36, 0, MA_Type, MA_Price, i);
ExtMapBuffer37[i] = iMA(Symbol(), Period(), MA_Period_37, 0, MA_Type, MA_Price, i);
ExtMapBuffer38[i] = iMA(Symbol(), Period(), MA_Period_38, 0, MA_Type, MA_Price, i);
ExtMapBuffer39[i] = iMA(Symbol(), Period(), MA_Period_39, 0, MA_Type, MA_Price, i);
ExtMapBuffer40[i] = iMA(Symbol(), Period(), MA_Period_40, 0, MA_Type, MA_Price, i);
ExtMapBuffer41[i] = iMA(Symbol(), Period(), MA_Period_41, 0, MA_Type, MA_Price, i);
ExtMapBuffer42[i] = iMA(Symbol(), Period(), MA_Period_42, 0, MA_Type, MA_Price, i);
ExtMapBuffer43[i] = iMA(Symbol(), Period(), MA_Period_43, 0, MA_Type, MA_Price, i);
ExtMapBuffer44[i] = iMA(Symbol(), Period(), MA_Period_44, 0, MA_Type, MA_Price, i);
ExtMapBuffer45[i] = iMA(Symbol(), Period(), MA_Period_45, 0, MA_Type, MA_Price, i);
ExtMapBuffer46[i] = iMA(Symbol(), Period(), MA_Period_46, 0, MA_Type, MA_Price, i);
ExtMapBuffer47[i] = iMA(Symbol(), Period(), MA_Period_47, 0, MA_Type, MA_Price, i);
ExtMapBuffer48[i] = iMA(Symbol(), Period(), MA_Period_48, 0, MA_Type, MA_Price, i);
ExtMapBuffer49[i] = iMA(Symbol(), Period(), MA_Period_49, 0, MA_Type, MA_Price, i);
ExtMapBuffer50[i] = iMA(Symbol(), Period(), MA_Period_50, 0, MA_Type, MA_Price, i);
ExtMapBuffer51[i] = iMA(Symbol(), Period(), MA_Period_51, 0, MA_Type, MA_Price, i);
ExtMapBuffer52[i] = iMA(Symbol(), Period(), MA_Period_52, 0, MA_Type, MA_Price, i);
ExtMapBuffer53[i] = iMA(Symbol(), Period(), MA_Period_53, 0, MA_Type, MA_Price, i);
ExtMapBuffer54[i] = iMA(Symbol(), Period(), MA_Period_54, 0, MA_Type, MA_Price, i);
ExtMapBuffer55[i] = iMA(Symbol(), Period(), MA_Period_55, 0, MA_Type, MA_Price, i);
ExtMapBuffer56[i] = iMA(Symbol(), Period(), MA_Period_56, 0, MA_Type, MA_Price, i);
ExtMapBuffer57[i] = iMA(Symbol(), Period(), MA_Period_57, 0, MA_Type, MA_Price, i);
ExtMapBuffer58[i] = iMA(Symbol(), Period(), MA_Period_58, 0, MA_Type, MA_Price, i);
ExtMapBuffer59[i] = iMA(Symbol(), Period(), MA_Period_59, 0, MA_Type, MA_Price, i);
ExtMapBuffer60[i] = iMA(Symbol(), Period(), MA_Period_60, 0, MA_Type, MA_Price, i);
ExtMapBuffer61[i] = iMA(Symbol(), Period(), MA_Period_61, 0, MA_Type, MA_Price, i);
ExtMapBuffer62[i] = iMA(Symbol(), Period(), MA_Period_62, 0, MA_Type, MA_Price, i);
ExtMapBuffer63[i] = iMA(Symbol(), Period(), MA_Period_63, 0, MA_Type, MA_Price, i);
ExtMapBuffer64[i] = iMA(Symbol(), Period(), MA_Period_64, 0, MA_Type, MA_Price, i);
ExtMapBuffer65[i] = iMA(Symbol(), Period(), MA_Period_65, 0, MA_Type, MA_Price, i);
ExtMapBuffer66[i] = iMA(Symbol(), Period(), MA_Period_66, 0, MA_Type, MA_Price, i);
}
return rates_total;
}
//+------------------------------------------------------------------+