I have a useful Parabolic SAR indicator with popup alert, but I need an email alert for it.
I tried to change the alert from popup to email, but I can't get it to compile without errors... I think the solution is probably obvious but I can't figure it out, if somebody could please fix it...
Here is the original alert code that is working :
And here's my change which causes the problem :
I'm getting the following compile error :
I'm also getting another compilation error ('else' - unexpected token) which I guess is related to whatever is causing the first error.
I've attached the original indicator file.
It seems as though you have the wrong parameters count for the "SendMail" function. The first parameter is the subject that will appear in the subject line of the email message. The second parameter is a text string that will go into the body of the email message. You have omitted one of these.
celestin2003: Can someone edit/code the Parabolic SAR indicator with EMAIL ALERT options.
This would not be difficult, but I wouldn't want to spend the time, if your purpose is to act on these alerts as trading signals. I presume that you would want an email message when the PSAR reverses (from showing dots under the prices to showing them over the prices and vice-versa).
This simple alert would not be profitable. I know, as I have lost a few thousand dollars and a couple of years trying to make money with a PSAR indicator. I no longer have any use for it.