- ago
Twilio offers the ability to send text messages through computer code. I have my wealthlab Strategy monitor running on a Virtual Machine, and I think it would be cool to receive a text message that my WealthLab monitor is up and running.

Would it be possible to create a C# code strategy specifially for sending a text message? The code to send a text could be in the BacktestComplete() function. The "strategy" would run on a daily basis, so that it would send a text once a day.

What do you think?

0
509
Solved
7 Replies

Reply

Bookmark

Sort
Glitch8
 ( 11.87% )
- ago
#1
Sure I've done it before. I've done it by configuring things so I could "email" my mobile phone number which would then send me a text. WL8 has a SendToEmail method I used for this.
0
Best Answer
- ago
#2
Where is that SendtoEmail control, please? Thx
0
Glitch8
 ( 11.87% )
- ago
#3
It’s documented in the UserStrategyBase QuickRef, and on the page below. Search the text for SendEmail.

https://www.wealth-lab.com/Support/ApiReference/UserStrategyBase
1
- ago
#4
QUOTE:
Where is that SendtoEmail control, please?

Don't feel bad. I couldn't find it either, so you are in good company. I went into the Help docs and typed "email" and the search found nothing. And I found nothing in the WL menus as well.

WL6 has you configure it in a dialog box. I didn't realize WL8 has it implemented as a framework method until I read Reply# 3 (above).

I'm wondering if the Windows registry has the "default" SMTP email server's IP name and port number saved so the SendMail method could simply use those entries?
0
- ago
#5
QUOTE:
I went into the Help docs and typed "email" and the search found nothing.

I went to the QuickRef as Glitch suggests and simply typing in "em" resulted in the first hit: SendEmail. ¯\_ (ツ)_/¯
0
- ago
#6
QUOTE:
I went to the QuickRef ...

So you're saying you need to check both the Help docs and the QuickRef. I'm wondering if one returns nothing for one if WL should automatically search the other? I think the better solution in this case would be to discuss SendMail in the Help docs with a link to the QuickRef. But until that happens, searching "the other" automatically makes some sense.
0
Glitch8
 ( 11.87% )
- ago
#7
We can't possibly write a Help entry for every single method already covered in the QuickRef. And there's no smooth way to link the Help system to the QuickRef. So yes the best bet is to check the source indicated in the support post (in this case QuickRef) and when looking up things without a corresponding support post to search both.
2

Reply

Bookmark

Sort