Hi,
I have just found the buy-sellpoints.mq4 indicator from the Russian website. Currently on M5 chart it shows only up to 3 days of signals.
1. Can anybody help me to have a look at the codes to increase the number of days shown eg 1 year. It is best to have a setting for it.
Is it related to this line ' if (CountBars >= 1000) CountBars = 950;'??
2. Trigger an alarm when the buy or sell points appears.
3. As i do not have much knowledge about programming can anyone explain briefly how is the buy sell points being calculated from the 'Risk' and 'Count bars'?
Thank you.
Attachment
I have just found the buy-sellpoints.mq4 indicator from the Russian website. Currently on M5 chart it shows only up to 3 days of signals.
1. Can anybody help me to have a look at the codes to increase the number of days shown eg 1 year. It is best to have a setting for it.
Is it related to this line ' if (CountBars >= 1000) CountBars = 950;'??
2. Trigger an alarm when the buy or sell points appears.
3. As i do not have much knowledge about programming can anyone explain briefly how is the buy sell points being calculated from the 'Risk' and 'Count bars'?
Thank you.
Attachment
QuoteDisliked/*
G e n e r a t e d by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
Website: hT T p: // wwW . ME TAQ u o T E s .N e T
E-mail : sU p P O RT@ M e T aq Uot ES. N E T
*/
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Fuchsia
#property indicator_color2 Aqua
extern int RISK = 3;
extern int CountBars = 300;
double G_ibuf_84[];
double G_ibuf_88[];
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
IndicatorBuffers(2);
SetIndexStyle(0, DRAW_ARROW);
SetIndexArrow(0, 234);
SetIndexStyle(1, DRAW_ARROW);
SetIndexArrow(1, 233);
SetIndexBuffer(0, G_ibuf_84);
SetIndexBuffer(1, G_ibuf_88);
return (0);
}
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
int Li_12;
double Ld_52;
double Ld_60;
double Ld_76;
double Ld_84;
double Ld_92;
double Ld_100;
double Lda_108[1000];
if (CountBars >= 1000) CountBars = 950;
SetIndexDrawBegin(0, Bars - CountBars + 11 + 1);
SetIndexDrawBegin(1, Bars - CountBars + 11 + 1);
int ind_counted_8 = IndicatorCounted();
int Li_20 = RISK * 2 + 3;
double Ld_36 = RISK + 67;
double Ld_44 = 33 - RISK;
int period_24 = Li_20;
if (Bars <= 12) return (0);
if (ind_counted_8 < 12) {
for (int Li_0 = 1; Li_0 <= 0; Li_0++) G_ibuf_84[CountBars - Li_0] = 0.0;
for (Li_0 = 1; Li_0 <= 0; Li_0++) G_ibuf_88[CountBars - Li_0] = 0.0;
}
for (int Li_4 = CountBars - 11 - 1; Li_4 >= 0; Li_4--) {
Li_12 = Li_4;
Ld_76 = 0.0;
Ld_84 = 0.0;
for (Li_12 = Li_4; Li_12 <= Li_4 + 9; Li_12++) Ld_84 += MathAbs(High[Li_12] - Low[Li_12]);
Ld_76 = Ld_84 / 10.0;
Li_12 = Li_4;
for (double Ld_68 = 0; Li_12 < Li_4 + 9 && Ld_68 < 1.0; Li_12++)
if (MathAbs(Open[Li_12] - (Close[Li_12 + 1])) >= 2.0 * Ld_76) Ld_68 += 1.0;
if (Ld_68 >= 1.0) Ld_92 = Li_12;
else Ld_92 = -1;
Li_12 = Li_4;
for (Ld_68 = 0; Li_12 < Li_4 + 6 && Ld_68 < 1.0; Li_12++)
if (MathAbs(Close[Li_12 + 3] - Close[Li_12]) >= 4.6 * Ld_76) Ld_68 += 1.0;
if (Ld_68 >= 1.0) Ld_100 = Li_12;
else Ld_100 = -1;
if (Ld_92 > -1.0) period_24 = 3;
else period_24 = Li_20;
if (Ld_100 > -1.0) period_24 = 4;
else period_24 = Li_20;
Ld_52 = 100 - MathAbs(iWPR(NULL, 0, period_24, Li_4));
Lda_108[Li_4] = Ld_52;
G_ibuf_84[Li_4] = 0;
G_ibuf_88[Li_4] = 0;
Ld_60 = 0;
if (Ld_52 < Ld_44) {
for (int Li_16 = 1; Lda_108[Li_4 + Li_16] >= Ld_44 && Lda_108[Li_4 + Li_16] <= Ld_36; Li_16++) {
}
if (Lda_108[Li_4 + Li_16] > Ld_36) {
Ld_60 = High[Li_4] + Ld_76 / 2.0;
G_ibuf_84[Li_4] = Ld_60;
}
}
if (Ld_52 > Ld_36) {
for (Li_16 = 1; Lda_108[Li_4 + Li_16] >= Ld_44 && Lda_108[Li_4 + Li_16] <= Ld_36; Li_16++) {
}
if (Lda_108[Li_4 + Li_16] < Ld_44) {
Ld_60 = Low[Li_4] - Ld_76 / 2.0;
G_ibuf_88[Li_4] = Ld_60;
}
}
}
return (0);
}
Attached File(s)
buy-sellpointsAlert.mq4
3 KB
|
348 downloads
|
Uploaded Nov 17, 2015 3:15am