Indicators: Emilio's Trend Line Breakout Alerter

 

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

 

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.");

}


Thank you for your suggestion I will upload the new version as soon as possible. Regards
 

THANK YOU WE ALL NEED TO HELP EACH OTHER

HE WILL RICHLY BLESS YOU!

 
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.");

}

 

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