Quote:
Originally Posted by Jin
Hi,
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.
Thanks,
Jin
|
Jin:
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.