Iniciado por
maxbox
/*
G e n e r a t e d by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
Website: hTT P: / /W w W .M etA quo T es. N eT
E-mail : sUP p O RT @ mE TAqU OT es. ne t
*/
#property copyright "Mr.T"
#property link "www.forexprofitmatrix.com"
#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1 Yellow
#property indicator_color2 Yellow
#property indicator_color3 Red
#property indicator_color4 Red
#property indicator_color5 Blue
#property indicator_color6 Blue
extern int MAPeriod = 7;
extern int MAMethod = 1;
extern int AVGFilter = 3;
extern int BBPeriod = 15;
extern int BBDeviation = 1;
extern int BBShift = 1;
double G_ibuf_100[];
double G_ibuf_104[];
double G_ibuf_108[];
double G_ibuf_112[];
double G_ibuf_116[];
double G_ibuf_120[];
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
IndicatorBuffers(6);
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(0, G_ibuf_116);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(1, G_ibuf_120);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(2, G_ibuf_108);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(3, G_ibuf_112);
SetIndexStyle(4, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(4, G_ibuf_100);
SetIndexStyle(5, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(5, G_ibuf_104);
return (0);
}
// 52D46093050F38C27267BCE42543EF60
int deinit() {
return (0);
}
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
int Li_4 = IndicatorCounted();
if (Li_4 > 0) Li_4--;
int Li_0 = Bars - Li_4;
double ima_8 = 0;
double ima_16 = 0;
double ibands_24 = 0;
double ibands_32 = 0;
for (int Li_40 = 0; Li_40 < Li_0; Li_40++) {
ima_8 = iMA(Symbol(), Period(), MAPeriod, 0, MAMethod, PRICE_CLOSE, Li_40);
ima_16 = iMA(Symbol(), Period(), 21, 0, MODE_SMA, PRICE_CLOSE, Li_40);
ibands_24 = iBands(Symbol(), Period(), BBPeriod, BBDeviation, BBShift, PRICE_CLOSE, MODE_UPPER, Li_40);
ibands_32 = iBands(Symbol(), Period(), BBPeriod, BBDeviation, BBShift, PRICE_CLOSE, MODE_LOWER, Li_40);
G_ibuf_116[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
G_ibuf_120[Li_40] = MathMin(ibands_32, MathMin(ima_8, ima_16));
if (ima_8 > ima_16) {
G_ibuf_100[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
G_ibuf_104[Li_40] = MathMin(ima_8, ima_16);
} else {
G_ibuf_108[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
G_ibuf_112[Li_40] = MathMin(ima_8, ima_16);
}
}
return (0);
}
Saludos Max Y no me denuncien por decopilarlo.