Download MetaTrader 5

Indicators: Emilio's Trend Line Breakout Alerter

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
188196
MetaQuotes Software Corp.  

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
120
marc weedbrook  

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
17
emiliostefano Reale  
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  

THANK YOU WE ALL NEED TO HELP EACH OTHER

HE WILL RICHLY BLESS YOU!

Anthony Uzendu
50
Anthony Uzendu  
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
50
Anthony Uzendu  

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

To add comments, please log in or register