Can someone add pop-up Alerts to this....

 

I was wondering if it is possible for someone to add pop-up & audio alerts
and if possible email alerts also to this indicator for me please.

I would greatly appreciate this, I have no idea about programming so I need someone assistance on this.

Regards,

Andrew

Files:
ybuff_v2.mq4  2 kb
 
freetheword:

I was wondering if it is possible for someone to add pop-up & audio alerts
and if possible email alerts also to this indicator for me please.

I would greatly appreciate this, I have no idea about programming so I need someone assistance on this.

Regards,

Andrew

Andrew, where did you get this untidy code?

I downloaded it and simply changed these two lines...

if (Var1 > Var3 && Var3 > Var5 && Var5 > Var4 && Var3 > Var2 && Var2 > Var5 && Var4 > Var6 && (Middle_Bar_Ratio * (Var3 - Var4)) > (Var5 - Var6) && (Middle_Bar_Ratio * (Var3 - Var4)) > (Var1 - Var2))
{
   b2[pos +3]=Low[pos +3]-35*Point;
   Alert("test 1 passed");
}
   
if (Var2 < Var4 && Var4 < Var6 && Var6 < Var3 && Var4 < Var1 && Var1 < Var6 && Var3 < Var5 && (Middle_Bar_Ratio * (Var3 - Var4)) > (Var5 - Var6) && (Middle_Bar_Ratio * (Var3 - Var4)) > (Var1 - Var2))
{
   b1[pos +3]=High[pos +3]+35*Point;
   Alert("test 2 passed");
}

I didn't go to the trouble of trying to understand what the code is supposed to do.

But after compiling and attaching, it sure sends alerts at a rapid rate. Helmut