Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 07:37:20 +0000



[Programming Help] - How To Edit The Alert Email Template?

View Count: 1519

[2018-08-29 05:37:31]
DaxTrader54 - Posts: 8
I have set up BUY and SELL alerts for a strategy I am working with and I have configured SC to send me an email when those conditions are true. Everything works with that. Thank you for your excellent programming/engineering/coding skill to make this so easy.

However, I am looking to edit the content of the alert email template and wonder how best to do this.

Is it a simple edit somewhere in the settings (which I have not yet found) or will I need to make some ASCIL edits? (If so, which file please?)

I would like to add the period, remove a couple of strings and tidy up the appearance.

Thank you in advance
[2018-08-29 20:22:13]
Sierra Chart Engineering - Posts: 104368
You really need to create your own custom alert messages using ACSIL. Refer to:
Advanced Custom Study Interface and Language (ACSIL)

You will need to use the sc.AlertWithMessage function.

Alert message customization is something that will come later on but is not available now. But you can use ACSIL to accomplish whatever you need now.
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
Date Time Of Last Edit: 2018-08-29 20:22:31
[2018-08-30 20:50:21]
DaxTrader54 - Posts: 8
Thank you for your response. Sorry if my follow up below reveals my lack of experience.

I am currently using the "Color Bar Based On Alert Condition" study to provide the alerts I receive. I have this study set up on numerous charts, all of which are referencing different combinations of studies. All of the charts could send me alerts. So my question is where to add the extra lines of code.

Do I need to amend the study specifically in order to add the additional sc.AlertWithMessage function, or do I need to amend the global settings to add the additional alert function which applies to all studies (if so, where should I find it)?

I ask this because I am currently using approx 5 strategies and all of these strategies use the Color Bar Based On Alert COndition, but will all need separately formatted email. So I would like to understand the best way to do that.

Example 1: The current alert email content for chart #1 is:
Alert - Chart: DYU18 [M] 75 Trades #5 | Study: Color Bar Based On Alert Condition | Formula: =AND(L[-1]ID1.SG2[-1],ID2.SG1[-1] | Alert: Strategy5xxx

Example 2: The current alert email content for chart #5 is:
Alert - Chart: DYU18 [M] 55 Trades #1 | Study: Color Bar Based On Alert Condition | Formula: =AND( BARTIME>=TIME(7,59,59), BARTIME<=TIME(16,59,59), ID1.SG1>30, ID2.SG1[-2]>ID2.SG2[-2], ID2 is TRUE. | Last Price: 12513.5 | Bar start date-time: 2018-08-30 08:03:04 | Alert: Strategy1xxx

Any assistance to steer me further would be appreciated, thank you for your time.
[2018-08-31 18:24:38]
Sierra Chart Engineering - Posts: 104368
It is clear based on the question, that what you need to do is going to be too advanced and is also a programming question. We cannot provide further help.
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
Date Time Of Last Edit: 2018-08-31 18:26:24

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

Login

Login Page - Create Account