Strategy name and signal name in WLP Email
Author: LenMoz
Creation Date: 4/4/2013 11:36 AM
profile picture

LenMoz

#1
The current WealthLab email is rather sparse-

Wealth-Lab Pro Trade Alert

Buy 281 Shares of VHC at Limit Price 17.76


Consider adding additional elements from the trade signal, specifically the "Strategy Name" and "Signal Name". The name would be helpful in cases where the Strategy Monitor is running several strategies. The signal name is pertinent, in my case at least, where the signal name includes information about the quality of the signal.

Ideally, this would be configurable in the "Strategy Activation Settings", by adding checkboxes, "Email Strategy Name" and "Email Signal Name".
profile picture

Cone

#2
We've had it on a list of potential enhancements for a while, unfortunately it's just low on the totem pole of priority. :(
profile picture

Eugene

#3
You can customize your alerts the way you like with AlertByEmail from Community Components library.
profile picture

LenMoz

#4
Thanks for the quick replies. I'll check out AlertByEmail.
profile picture

LenMoz

#5
1. I can get AlertByEmail working if I use my gmail account, but not with my primary email account. I think this may be because on my primary account, my userid is not my email address. AlertByEmail forces the use of an @ sign. My primary email account does work for the native WLP email function.

2. Is there a way I can programmatically tell that a strategy is running under Strategy Monitor control? I only want to send email in that case. Adding a parameter for this purpose is less than optimal.
profile picture

Eugene

#6
1. Any email account absolutely must bear one @ sign. Probably, you set up AlertByEmail incorrectly. If you need assistance, please provide at least something to work with.

2. Sure, check out the QuickRef:ChartPane object > "IsPricePane Property" or Cosmetic Chart > "ChartStyle Property".
profile picture

LenMoz

#7
1. See attached .jpg of the email Preferences screen. AlertByEmail doesn't seem to have a place to enter "myuserid", which has no @ sign in my case.

2. Perfect!
profile picture

Eugene

#8
Unless I'm missing something, there's one way to assign a username/password in SMTP. WL6 uses it, so does AlertByEmail:

CODE:
Please log in to see this code.


So if it works in WLP, at the moment I really see no reason why it shouldn't work for AlertByEmail.

P.S. In next update of Community Components, AlertByEmail will be asynchronous i.e. won't block Strategy execution.
profile picture

LenMoz

#9
The problem seems to be an edit that I'm guessing is in AlertByEmail which is requiring an @ sign in the "From" parameter. That's what I meant by "AlertByEmail forces the use of an @ sign."

profile picture

LenMoz

#10
Still can't seem to use AlertByEmail, but got it to work like this...

CODE:
Please log in to see this code.


You'll make a .Net programmer out of me yet.
profile picture

LenMoz

#11
Final note (if it's no too late). Perhaps add another constructor for AlertByEmail with a userid parameter that allows for the case where the credential userid is not the email address. If you look at the code you showed me:

sc.Credentials = new NetworkCredential(param.From, param.Pass);

It's using the from address, Param.From, as part of the credentials, not true in my case.

Len
profile picture

Eugene

#12
Thanks for pointing this out. (Multitasking several projects at a time is usually not a good idea - that's why I failed to notice the obvious). This will be fixed in next update.
profile picture

Panache

#13
I intend to write a custom Performance Visualizer, but that is going to take a bit of time. In the meantime, I was hoping use Wealth-Lab's native email alert functions to send an email when each Strategy is being run in Strategy Monitor and then receive the Alerts as they are generated. Assuming the emails are delivered sequentially, I will know what Strategy is generating the Alerts.

QUOTE:
check out the QuickRef:ChartPane object > "IsPricePane Property" or Cosmetic Chart > "ChartStyle Property"


After having my inbox flooded with messages from my Strategy, I wrote a simple program to test whether either of these commands were helpful in my situation.
CODE:
Please log in to see this code.


Both of the commands work as expected when running the Strategy against a single symbol. However, when I run the Strategy against a DataSet containing multiple symbols, they give the correct information for the first symbol in the DataSet, but respond that the second symbol is running in Strategy Monitor (presumably because the first symbol is the one being charted).

Any other thoughts about how I can have an email alert generated only when the Strategy is being run in Strategy Monitor?

Is there a way to only generate one email when the Strategy is run against a DataSet containing multiple symbols?
profile picture

Eugene

#14
profile picture

Panache

#15
Thank you. And even easier code:
CODE:
Please log in to see this code.

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).