Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

turn( sum / nlmvalues[_weight][instanceNo]);

}
else return(0);
}

//
//
//
//
//

void doAlert(int forBar, string doWhat)


{
static string previousAlert="nothing";
static datetime previousTime;
string message;

if (previousAlert != doWhat || previousTime != Time[forBar]) {


previousAlert = doWhat;
previousTime = Time[forBar];

//
//
//
//
//

message = StringConcatenate(Symbol()," ",timeFrameToString(TimeFrame),"


at ",TimeToStr(TimeLocal(),TIME_SECONDS)," trend dirrection & strength ",doWhat);
if (alertsMessage) Alert(message);
if (alertsNotify) SendNotification(message);
if (alertsEmail) SendMail(StringConcatenate(Symbol()," trend
dirrection & strength "),message);
if (alertsSound/
//
//ection & strength "),message);
if (alertsSound/
//
//
//
//

message = StringConcatenate(Symbol()," ",timeFrameToString(TimeFrame),"


at ",TimeToStr(TimeLocal(),TIME_SECONDS)," trend dirrection & strength ",doWhat);
if (alertsMessage) Alert(message);
if (alertsNotify) SendNotification(message);
if (alertsEmail) Send
//
//

message = StringConcatenate(Symbol()," ",timeFrameToString(TimeFrame),"


at ",TimeToStr(TimeLocal(),TIME_SECONDS)," trend dirrection & strength ",doWhat);
if (alertsMessage) Alert(message);
if (alertsNotify) SendNotification(message);
if (alertsEmail) SendMail(StringConcatenate(Symbol()," trend
dirrection & strength "),message) PlaySound("alert2.wav");
} //

message = StringConcatenate(Symbol()," ",timeFrameToString(TimeFrame),"


at ",TimeToStr(TimeLocal(),TIME_SECONDS)," trend dirrection & strength ",doWhat);
if (alertsMessage) Alert(message);
if (alertsNotify) SendNotification(message);
if (alertsEmail) Send
//
//

message = StringConcatenate(Symbol()," ",timeFrameToString(TimeFrame),"


at ",TimeToStr(TimeLocal(),TIME_SECONDS)," trend dirrection & strength ",doWhat);
if (alertsMessage) Alert(message);
if (alertsNotify) SendNotification(message);
if (alertsEmail) SendMail(StringConcatenate(Symbol()," trend
dirrection & strength "),message) PlaySound("alert2.wav");
}
}

You might also like