Can alerts be sent to two e-mail adresses?

All posts which do not fit into any other sections of the forum.

Moderator: admin

Can alerts be sent to two e-mail adresses?

Postby Jakeman123 » Mon Oct 18, 2010 8:36 pm

Is there a way that an fx alert can be sent to two e-mail addresses simultaneously?
Jakeman123
 
Posts: 11
Joined: Mon Aug 30, 2010 5:45 pm

Re: Can alerts be sent to two e-mail adresses?

Postby Nikolay.Gekht » Mon Oct 18, 2010 8:44 pm

In the default implementation - no. However, any implementation can be easily changed to send the alerts to multiple addresses. If you tell which certain signal do you want to change, I'll provide an example. The idea is simple:

a) Add a parameter for each address or remove FLAG_EMAIL from the email parameter and then parse comma-separate list.
b) Then call terminal:alertEmail for each of chosen address.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Can alerts be sent to two e-mail adresses?

Postby Jakeman123 » Mon Oct 18, 2010 9:20 pm

Ok. I take it this means it can be done. Is this something that would be added/modified to the .lua script? If so, since I'm not a programmer, how exactly would one write this?

Thanks in advance for your time.
Jakeman123
 
Posts: 11
Joined: Mon Aug 30, 2010 5:45 pm

Re: Can alerts be sent to two e-mail adresses?

Postby Nikolay.Gekht » Mon Oct 18, 2010 9:44 pm

Yes, it is just a few lines in Lua code.

Do you want to change a standard signal or one of the signals on codebase? Just point me to the signal which you want to have changed and I'll provide you with these changes. This is just a minute of work for me. I will highlight every change, so you and other users will be able to the same in future using my changes as a pattern.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Can alerts be sent to two e-mail adresses?

Postby Jakeman123 » Mon Oct 18, 2010 10:15 pm

Thanks.

It is one of the strategies/signals that was done for me by Apprentice, named "ADX Aroon" Problem is, I can't seem to find it on your boards. It was posted roughly about a month or five weeks or so ago.
Jakeman123
 
Posts: 11
Joined: Mon Aug 30, 2010 5:45 pm

Re: Can alerts be sent to two e-mail adresses?

Postby Nikolay.Gekht » Mon Oct 18, 2010 11:12 pm

The original strategy is located here:
viewtopic.php?f=29&t=2133

Please find modified strategy below. Changes:
1) I move all email parameters to "Alerts" section
2) I added two new parameters "Send copy" (Yes/No) and email address for a copy.

All changes I made inside the code are enclosed between -- *** begin and -- *** end comment lines.

ADX AROON Strategy.lua
(17.56 KiB) Downloaded 750 times
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Can alerts be sent to two e-mail adresses?

Postby Jakeman123 » Tue Oct 19, 2010 5:41 pm

Thanks! I appreciate it. I'll download it and check it out.
Jakeman123
 
Posts: 11
Joined: Mon Aug 30, 2010 5:45 pm


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 18 guests