Email alerts in portfolio strategy
Author: Gamba
Creation Date: 12/18/2012 12:39 PM
profile picture

Gamba

#1
Hi,

I'm using a portfolio strategie with multiple symbols in a dataset.
Sending email alerts works fine per symbol. I get one email per symbol.

Is it possible to collect all signals for all symbols and send only one email
at the end of the script and at the end of all symbols of the dataset?

Holger
profile picture

Eugene

#2
Yes, by coding this in Strategy using e.g. this method:

AlertByEmail
profile picture

Gamba

#3
No, that is not the solution. I already use this method, but for every symbol
ONE email is sent. If I have 10 alerts for 10 different symbols, I will get
10 separate emails.

Instead, I only want to send 1 email, with all alerts for this day.

Maybe it is possilke to send a file (I already write trades into file)
as attachement, with all alerst. But then I have to know the last symbol
of the portfolio or the end of the portfolio-simulation?
profile picture

Eugene

#4
You're right: this is not the solution, this is the tool, and only your coding makes it the solution.

Call AlertByEmail in a manner that the method is executed on the last symbol of the portfolio. Here's how to determine it:

WealthScript Techniques | Executing some code only once
profile picture

Gamba

#5
It works as expected, thank you.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).