Download MetaTrader 5
To add comments, please log in or register
Create interesting Forum topics concerning the automated trading!
MetaQuotes Software Corp.
Moderator
180293
MetaQuotes Software Corp. 2010.11.22 09:32 

Emilio's Trend Line Breakout Alerter:

The Alerter simply works on 1 or 2 trendlines and plays a sound file when the trendline has been broken so the only think you must do is name correctly the trendlines.

Author: emiliostefano

marc weedbrook
119
marc weedbrook 2010.11.22 12:30  

Hi,

Thanks Emilio for the indi.

The alerts are in Italian.

For English speakers like me, just find and replace the following code to get messages in English.

int init() {

tl = tollerance * Point;

ready = true;

if (ObjectFind(LineUpName) != 0 && AlertLineUp) {

alarm(" missing name of the trendline " + LineUpName);

ready = ready && false;

}

if (ObjectFind(LineDnName) != 0 && AlertLineDn) {

alarm(" missing name of the trendline " + LineDnName);

ready = ready && false;

}

if (!ready) cmt("check errors"); else cmt("... Alarm trendline initialized.");

if (ready && test) {

Al();

}

return(0);

}


void Al() {

PlaySound(AlertSoundFile);

Alert(Symbol(), " ", period2str(Period()), " ","Check the trendline break.");

}

emiliostefano Reale
12
emiliostefano Reale 2010.11.22 23:53  
brooky29:

Hi,

Thanks Emilio for the indi.

The alerts are in Italian.

For English speakers like me, just find and replace the following code to get messages in English.

int init() {

tl = tollerance * Point;

ready = true;

if (ObjectFind(LineUpName) != 0 && AlertLineUp) {

alarm(" missing name of the trendline " + LineUpName);

ready = ready && false;

}

if (ObjectFind(LineDnName) != 0 && AlertLineDn) {

alarm(" missing name of the trendline " + LineDnName);

ready = ready && false;

}

if (!ready) cmt("check errors"); else cmt("... Alarm trendline initialized.");

if (ready && test) {

Al();

}

return(0);

}


void Al() {

PlaySound(AlertSoundFile);

Alert(Symbol(), " ", period2str(Period()), " ","Check the trendline break.");

}


Thank you for your suggestion I will upload the new version as soon as possible. Regards
MQL4 Comments
16319
MQL4 Comments 2011.01.31 09:54  

THANK YOU WE ALL NEED TO HELP EACH OTHER

HE WILL RICHLY BLESS YOU!

Anthony Uzendu
43
Anthony Uzendu 2011.04.02 23:12  
brooky29:

Hi,

Thanks Emilio for the indi.

The alerts are in Italian.

For English speakers like me, just find and replace the following code to get messages in English.

int init() {

tl = tollerance * Point;

ready = true;

if (ObjectFind(LineUpName) != 0 && AlertLineUp) {

alarm(" missing name of the trendline " + LineUpName);

ready = ready && false;

}

if (ObjectFind(LineDnName) != 0 && AlertLineDn) {

alarm(" missing name of the trendline " + LineDnName);

ready = ready && false;

}

if (!ready) cmt("check errors"); else cmt("... Alarm trendline initialized.");

if (ready && test) {

Al();

}

return(0);

}


void Al() {

PlaySound(AlertSoundFile);

Alert(Symbol(), " ", period2str(Period()), " ","Check the trendline break.");

}


brooky29:

Hi,

Thanks Emilio for the indi.

The alerts are in Italian.

For English speakers like me, just find and replace the following code to get messages in English.

int init() {

tl = tollerance * Point;

ready = true;

if (ObjectFind(LineUpName) != 0 && AlertLineUp) {

alarm(" missing name of the trendline " + LineUpName);

ready = ready && false;

}

if (ObjectFind(LineDnName) != 0 && AlertLineDn) {

alarm(" missing name of the trendline " + LineDnName);

ready = ready && false;

}

if (!ready) cmt("check errors"); else cmt("... Alarm trendline initialized.");

if (ready && test) {

Al();

}

return(0);

}


void Al() {

PlaySound(AlertSoundFile);

Alert(Symbol(), " ", period2str(Period()), " ","Check the trendline break.");

}

Anthony Uzendu
43
Anthony Uzendu 2011.04.02 23:13  

Thanks and may GOD bless you and increase capacity to help others.

/
To add comments, please log in or register