BO
Information
Username: | boh113 |
Member since: | 29 May 2015 |
Last login: | 29 May 2015 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 0 | 2 |
Forum Topics | 0 | 0 |
Jobs | 0 | 0 |
Last Algorithm Comments
BO
Is it possible to add an email notification to the indicator?
I found this but cant figure out where to place it:
Notifications.SendEmail("***@yahoo.com.au", "***@yhaoo.com.au", "Price Alert", "TRIGGERED");
Have tried a couple of locations in the code namely:
line after:
Notifications.PlaySound(Path.Combine(windowsFolder, "Media", "tada.wav"));
and
at the end of
public override void Calculate(int index)
{
if (triggered)
{
PlayedNotificationLine[index] = Price;
return;
either place i get a failed to send email in the log.
settings are correct as ctrader sends emails on open and close of trades, just cant get it to send with this indicator
If anyone else has issues using yahoo change the port to 587 that solved my issues.
also see below for correct placement
Notifications.PlaySound(Path.Combine(windowsFolder, "Media", "tada.wav"));
>>>Notifications.SendEmail("fx.alert@yahoo.com.au", "fx.alert@yahoo.com.au", "Price Alert", "TRIGGERED");
triggered = true;