Hello everyone!
can anyone add an email/sound alert to the attached indicator so that it can alert on offline chart.
I'm using an indicator for basket trading.but it doesn't alert.
alert code is here:
if (val2!=0 && up==0 )
{
val1buffer= val2-1*Point;
up=1;
dn=0;
if(shift<=2)
{
Alert (Symbol()," ",Period(),"M Asctrend BUY ");
}
}
if (val1 !=0 && dn==0)
{
val2buffer= val1+1*Point;
dn=1;
up=0;
if(shift<=2)
{
Alert (Symbol()," ",Period(),"M Asctrend SELL ");
}
indicator iimages attached as follows,the RED and BLACK points are the indi.
It doesn't repaint,anyone wants to use the indi please set the RISK at least 9 on 15minute.
If you're interested in the indi and know how to code,maybe you can help me ~~~
Thank you for your help very much!
Best Regards.
can anyone add an email/sound alert to the attached indicator so that it can alert on offline chart.
I'm using an indicator for basket trading.but it doesn't alert.
alert code is here:
if (val2!=0 && up==0 )
{
val1buffer= val2-1*Point;
up=1;
dn=0;
if(shift<=2)
{
Alert (Symbol()," ",Period(),"M Asctrend BUY ");
}
}
if (val1 !=0 && dn==0)
{
val2buffer= val1+1*Point;
dn=1;
up=0;
if(shift<=2)
{
Alert (Symbol()," ",Period(),"M Asctrend SELL ");
}
indicator iimages attached as follows,the RED and BLACK points are the indi.
It doesn't repaint,anyone wants to use the indi please set the RISK at least 9 on 15minute.
If you're interested in the indi and know how to code,maybe you can help me ~~~
Thank you for your help very much!
Best Regards.
Attached File(s)
PerkyAsctrend1.mq4
5 KB
|
290 downloads
PerkyAsctrend1.ex4
6 KB
|
234 downloads