Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 06:36:47 +0000



[Programming Help] - A 'beefed up' email alert system?

View Count: 1200

[2014-04-06 21:42:07]
User58241 - Posts: 24
I was wondering if it might be possible to 'beef up' the email alert system to include information I would want to see, and exclude information I don't need. For instance, could you have simple checklist of things to either include or exclude, like date/time, symbol, last trade profit/loss, cumulative profit/loss, among other options as is possible. As you can see from what I've listed, these are the things I would like to see. They could then be sent as an email to my phone (as a text message) to keep me updated on any trades that I might have set alerts for. Does this make sense? Thank you for your consideration. I love what you are doing each day to improve Sierra Chart!

Dan
[2014-04-13 08:27:03]
Sierra Chart Engineering - Posts: 104368
This was not overlooked. We just had not time to get to it until now.

There are various sources of alert email messages. For example they can come from studies or trading related actions.

So what specific source are you referring to, an order fill?

Would also be hesitant to put into an email profit/loss values. There are various conditions which can cause these not to be accurate.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-04-13 20:02:39]
User58241 - Posts: 24
Thank you for taking a look at this. I know there is always more you want to do than the time available to do it. Anyway, I am working on developing spreadsheet trading strategies that free me to do other things besides looking at my screen all day. It would be nice if I could get occasional updates based on certain triggers that I set up. It could be a condition on the spreadsheet that triggers a buy or a sell, or identifies any other condition or setup that is coming into play. I would like to be able to select certain information to be sent by email that lets me know the status of my trades for the day. The "J" column has pretty much everything I might like to choose from, including the last trade profit/loss or the cumulative closed profit/loss. I don't need the message usually attached to emails like "To stop receiving further Alert notification messages...". In other words, if I could choose from a list of things that could be included in the email, that would be wonderful. I hope this makes sense. Again, thanks for taking a look at this!

Dan
[2022-11-29 15:31:09]
4LifeNeo - Posts: 35
Hello Sierra Chart team,

Hope you're doing well. I've come to this post because I was looking to see if there's a possibility to remove the footer message (and possibly other items) from email alerts - the part where it says: "To stop receiving further Alert notification messages to this email address, click the following link:"

I've found a way to remove the lengthy formula section by using a second "Color Bar Based On Alert Condition" to check if the first one's condition is true (it would send the email if it is). There are other items that I want to remove as well, but this part is the main one for now. It's not a big deal when reading the email, but could create a problem when it's parsed.

I've read...

Text of alerts sent by email
How To Edit The Alert Email Template?
Advanced Custom Study Interface and Language (ACSIL)

However, I am not sure how to use the functions "sc.AlertWithMessage" and "sc.SendEmailMessage" mentioned in those threads.

I've tried to create a .cpp file and this is what I've got - I just change the names to "EmailAlert" and am not sure how to proceed after. Any help you could provide would be appreciated. If there's an easier way to do this with the current version, please let me know. Thank you in advance.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The top of every source code file must include this line
#include "sierrachart.h"

// For reference, refer to this page:
// Advanced Custom Study Interface and Language (ACSIL)

// This line is required. Change the text within the quote
// marks to what you want to name your group of custom studies.
SCDLLName("EmailAlert")

//This is the basic framework of a study function. Change the name 'TemplateFunction' to what you require.
SCSFExport scsf_TemplateFunction(SCStudyInterfaceRef sc)
{
  // Section 1 - Set the configuration variables and defaults
  if (sc.SetDefaults)
  {
    sc.GraphName = "EmailAlert";

    sc.AutoLoop = 1; //Automatic looping is enabled.
    
    sc.Subgraph[0].Name = "Name";
    sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE;
    sc.Subgraph[0].PrimaryColor = RGB (0, 255, 0);
    
    sc.Input[0].Name = "Float Input";
    sc.Input[0].SetFloat(0.0f);
    
    return;
  }
  
  
  // Section 2 - Do data processing here
  
  
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account