again I have so problems because of my coding skill ...
I use this code from hanover for my alerts:
extern int AlertCandle = 0;
extern bool ShowChartAlerts = true;
extern string Email_Subject = "Leave empty for no email";
extern string AlertEmailSubject = "";
datetime LastAlertTime = -999999;
string AlertTextCrossUp = "Possible long";
string AlertTextCrossDown = "Possible short";
ProcessAlerts();
Everything is working fine. Now I want that the indicator shows an arrow with the alert. I have no idea how to do that. Have tried something, but nothing worked.void ProcessAlerts() {
if ((AlertCandle >= 0) && (Time[0] > LastAlertTime)) {
//---- alert UP
if (TrendUP[AlertCandle] == 1 && (SignalLabeled != 1)) {
string AlertText = Symbol() + "," + TFToStr(Period()) + ": " + AlertTextCrossUp;
if (ShowChartAlerts) Alert(AlertText);
if (AlertEmailSubject > "") SendMail(AlertEmailSubject,AlertText);
LastAlertTime = Time[0];
SignalLabeled = 1;
}
//---- alert DOWN
if (TrendDOWN[AlertCandle] == 1 && (SignalLabeled != 2)) {
AlertText = Symbol() + "," + TFToStr(Period()) + ": " + AlertTextCrossDown;
if (ShowChartAlerts) Alert(AlertText);
if (AlertEmailSubject > "") SendMail(AlertEmailSubject,AlertText);
LastAlertTime = Time[0];
SignalLabeled = 2;
}
}
return(0);
}
Hope someone can help me. Thx a lot!
dynel14