Login Page - Create Account

Support Board


Date/Time: Mon, 28 Oct 2024 08:57:54 +0000



Alerts Log

View Count: 1382

[2015-04-28 15:23:42]
Hendrixon - Posts: 130
Using to test trading ideas, for example with color background based on simple alert, its OK if you have like 1-2 days loaded into the chart.
But when using small periodicity and lots of data its impossible to do it visually.
An alert study doesn't output to the message log upon loading or re-calculating the chart... to do that we need to replay the chart or to do a bar back test.
Problem is with small periodicity and lots of data even bar back testing is very very very slow.

How come a study calculates very fast and a bar back test is way way too slow for the same job?

1. Can you add an option to the alert tab so alerts will be logged upon loading or re-calc? obviously the study is checking the alert query and marking the chart, just not logging it.
2. I wrote a study in ACSIL to do this, and it works fine, but the problem is all the alerts are tagged with the current system date time and not the bar DateTime. so double clicking on the log doesn't jump/scroll the chart.
[2015-04-28 18:29:27]
Sierra Chart Engineering - Posts: 104368
We see no reason why bar based back test would be slow. In our experience it is fast.

1. No.
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
[2015-04-28 18:42:13]
Hendrixon - Posts: 130
when you look for signals in 1 tick bars on a month or two or three of data... it takes time.
Yesterday I spent hours testing. you try to fine tune your signals and back tests adds up.
A study does the *same* query check for like 1/5 and less of the time. that's doing 1 hour of work in 5 hours.

1. No
2. So can you fix the sc.AddAlertLine to log the bar's DateTime and not the local system time?
[2015-04-29 04:54:41]
Sierra Chart Engineering - Posts: 104368
2. We will look into this.
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
[2015-05-26 11:27:34]
Hendrixon - Posts: 130
2. Any update?
[2015-05-28 04:45:45]
Sierra Chart Engineering - Posts: 104368
Will be following up on this soon.
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
[2015-07-07 11:59:25]
Hendrixon - Posts: 130
I see in the Change Log that you made changes in The Alert Tab.
Was this addressed?
[2015-07-07 15:59:52]
Sierra Chart Engineering - Posts: 104368
No. We will try to do this today.
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
[2015-07-08 04:47:43]
Sierra Chart Engineering - Posts: 104368
This function will be in the next release:
http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scAddAlertLineWithDateTime

This was a lot of work to add.
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
[2015-07-14 12:47:08]
Hendrixon - Posts: 130
"This was a lot of work to add."
Thanks for doing this. I assumed it would be just a single line change (from current datetime to bar datetime).

Anyway, I tried sc.AddAlertLineWithDateTime before the weekend in version 1268 and it gave me a historical date of 1899 or something like that (writing from memory). every time I tried to jump to the alert location my chart scrolled back to its start, which I guess is the nearest date to that 1899 date.
sc.AddAlertLineWithDateTime("Condition is TRUE", 0, sc.BaseDateTimeIn[sc.Index]);
Today I wanted to replicate this and post about it here. it still doesn't work (version 1269), though this time I see in the log "Alert Date-Time: 00:00:00".
Its the same outcome whether I press the Insert key to recalculate or run a back test.

* Edit: tried this again in version 1268 and got "Alert Date-Time: 00:00:00" here as well.
Date Time Of Last Edit: 2015-07-14 12:49:03
[2015-07-15 02:43:37]
Sierra Chart Engineering - Posts: 104368
We are checking on this 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
[2015-07-15 02:54:30]
Sierra Chart Engineering - Posts: 104368
With version 1269 we have tested the function:

sc.AddAlertLineWithDateTime("Alert message with Date-Time", 0, sc.BaseDateTimeIn[sc.UpdateStartIndex]);

This is the result in the Alerts Log:
Alert message with Date-Time | Chart: ESU15 1 Min #1 | Study: Log and Alert Example | Alert Date-Time: 2015-06-14 17:00:00
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
[2015-07-15 12:47:07]
Hendrixon - Posts: 130
I'm trying both with manual loop and auto loop and both cases I get time of 00:00:00.
Please post the full code that gave you the above outcome.
[2015-07-15 19:15:52]
Sierra Chart Engineering - Posts: 104368
Use the below code with version 1269:
SCSFExport scsf_LogAndAlertExample(SCStudyInterfaceRef sc)
{
  // Set configuration variables
  
  if (sc.SetDefaults)
  {
    sc.GraphName = "Log and Alert Example";
    
    sc.StudyDescription = "";
    
    sc.GraphRegion = 0;

    sc.AutoLoop = 0;//manual looping

    //During development set this flag to 1, so the DLL can be modified. When development is completed, set it to 0 to improve performance.
    sc.FreeDLL = 0;
    
    return;
  }
  
  
  // Do data processing
  if (sc.GetBarHasClosedStatus(sc.UpdateStartIndex) == BHCS_BAR_HAS_NOT_CLOSED)
    return;
  
  // Show message to log
  sc.AddMessageToLog("Popped up Message", 1);
  sc.AddMessageToLog("Non-Popped up Message", 0);

  // Alert sounds are configured by selecting "Global Settings >> General Settings" in Sierra Chart
  sc.PlaySound(1); // Add alert sound 1 to be played
  sc.PlaySound(50); // Add alert sound 50 to be played
  
  // Add an Alert message to SierraChart Alert Log
  sc.AddAlertLine("Condition is TRUE");

  // Adding an alert line using an SCString. The Alert log will also be opened.
  SCString AlertMessage("Alert Message");
  sc.AddAlertLine(AlertMessage,1);

  // Playing a sound and adding an Alert Line at the same time.
  sc.PlaySound(2, AlertMessage, 1); // Alert Log will open

  sc.PlaySound(3, "Alert Message 2", 0); // Alert Log will not open

  // Can also Play Sound from a text file, for example:
  sc.PlaySound("C:\\Windows\\beep.wav", 2);

  sc.AddAlertLineWithDateTime("Alert message with Date-Time", 0, sc.BaseDateTimeIn[sc.UpdateStartIndex]);
}

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
[2015-07-16 10:54:51]
Hendrixon - Posts: 130
Have no idea why but it doesn't work.
I re-downloaded version 1269 right now, pre-release and release of old and new spreadsheet installs and in all of them I get time of 00:00:00 with your code.
imageFile1.jpg / V - Attached On 2015-07-16 10:52:19 UTC - Size: 3.64 KB - 292 views
imageFile1.jpg / V - Attached On 2015-07-16 10:54:19 UTC - Size: 7.14 KB - 283 views
[2015-07-16 10:58:46]
Sierra Chart Engineering - Posts: 104368
Are you using the Sierra Chart provided compiler through Analysis >> Build Custom Studies DLL? If so, this may be the problem. We will make a change to solve this.
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: 2015-07-16 11:01:28
[2015-07-16 11:00:37]
Hendrixon - Posts: 130
Yup.
[2015-07-20 11:58:19]
Hendrixon - Posts: 130
version 1272 internal compiler now works :-)
It gives the correct DateTime for the bar and can jump to its location

Bug I found in Alerts Log, when running a back test and you have an ACSIL alert on the chart, it shows up duplicated many times in the log.
Each alert shows up 4-5 times, so like if your study found 10 alerts on your charts, the log will show 40-50 entries.

If you can do some work on the Alerts Log to make it more intuitive:
1. Up/Down keyboard buttons to move between alert entries. [now up/down just jumps between the log buttons... like it was a TAB press]
2. When pressing the Enter key while on an alert entry, make it default to "go to chart" without close. or give an option to choose between "close" and "no close".
3. Add column with line/entry number (enumerate the entries). entries from same study look the same so its impossible to distinguish between them.

Thanks
[2015-07-21 09:11:56]
Sierra Chart Engineering - Posts: 104368

Bug I found in Alerts Log, when running a back test and you have an ACSIL alert on the chart, it shows up duplicated many times in the log.
Each alert shows up 4-5 times, so like if your study found 10 alerts on your charts, the log will show 40-50 entries.


Do you really believe this is a bug in the Alerts Log? There is 0% chance of this. Make sure your code only calls the function to log an alert no more than once per bar.


1. Up/Down keyboard buttons to move between alert entries. [now up/down just jumps between the log buttons... like it was a TAB press]

We will check on this.
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

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

Login

Login Page - Create Account