Support Board
Date/Time: Thu, 26 Dec 2024 11:10:16 +0000
Chart - settings - Alert
View Count: 1283
[2016-01-28 05:58:12] |
User553714 - Posts: 184 |
Hi, I have a single chart with a simple alert created in; Chart > Chart Settings > Alert I have the option; chart > only symbols in watch list - ticked I have associated the chart with a watchlist which contains around 100-symbols. My question is; when I start a scan, the intraday charts change as the scan cycles through the watch list symbols but the charts displayed don't download the recent intraday data? From the reading I have done online, SC should download the latest data before checking the alerts? I have tried slowing down Global Settings > General Settings > Chart Update Interval in Milliseconds - to say 6ooo ms but this does not resolve the issue. How can I get the intraday charts to update to recent data before checking whether alerts are triggered? Thanks for your help |
[2016-01-28 06:36:27] |
Sierra Chart Engineering - Posts: 104368 |
Yes we do see this problem. We are checking on it 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 |
[2016-02-08 01:28:22] |
User553714 - Posts: 184 |
Hi, Thanks for your speedy response to this issue; I have been using the pre-release version of SC which added; > Global Settings < General Settings > General 2 > Subscribe RT Data and Download Historical Data During Scan (tick box) I have been using this feature since the release and it does exactly what it says; updates and subscribes to RT data which is great! My Question is; I Have a list of 50 or so symbols in my watch list which I have associated to a single chart with Chart > Only Symbols in Watchlist. I have a Spreadsheet(SS) System Alert study added to the active chart so when I scan the Chart I get any of the Alerts triggered by the SS System/Alert study displayed in the Alert Manager. My question is whether there is a way to have these alerts sent to the Alert Manager in RT? This would presumably mean the scan would have to be continuously run? Maybe a better alternative would be a feature to auto scan at a fixed time cycle say every 2-min or as set by the user? I realise you could have a separate SS System Alert for each of the 50-charts but this would off course be a huge drain on resources; is there an easier way I can do what I am trying to do, scan in RT using watch-lists for SS System/Alerts? Thanks for your help & Regards |
[2016-02-10 05:57:07] |
Sierra Chart Engineering - Posts: 104368 |
My question is whether there is a way to have these alerts sent to the Alert Manager in RT?
You do need to have 50 charts open. Each of these can use the Spreadsheet System/Alert Study referencing the very same Spreadsheet Name. You can reduce the Number of Rows Spreadsheet Study Input to keep memory and CPU usage to an absolute minimum. You can also hide the charts: https://www.sierrachart.com/index.php?page=doc/doc_WindowMenu.html#HideWindow 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 |
[2016-02-10 07:48:55] |
User553714 - Posts: 184 |
Hi, Thanks for your response; the number of charts I will be monitoring is likely to grow so intuitively I prefer not to have that many charts open if I don't need to. I have given the idea of introducing a delay between scans more thought and was wondering if you could tell me whether this could be done with me writing a custom study? With around 1-months SC use I have been blown away with the functionality of SC so I am thinking there must be a way? My thoughts so far; 1) I have previously used the windows.h sleep() function in C++ programmes to introduce a delay between events and was thinking this would be possible in SC? 2) For the purpose of initiating the scan I have been reading through the documentation and have looked at the source code in "scsf_MenuAndPointerExample." I was initially thing there would be a way to access the chart menu but I think this may be more about linking functions to the ACS toolbars 1-50. Can you suggest an approach to initiate the scan using ACSIL? I will continue reading through the documentation. I know SC is very busy so any assistance whether this approach is feasible will be appreciated. Thanks again. |
[2016-02-11 04:39:37] |
Sierra Chart Engineering - Posts: 104368 |
1. No this will freeze Sierra Chart. 2. There is a way you could automatically change the symbol in a chart from an ACSIL study function. Periodically after a certain amount of time has elapsed, set the data file to the new symbol. These two ACSIL variables will be what you need to work with: https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scUpdateAlways https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scDataFile 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 |
[2016-03-11 00:47:01] |
User553714 - Posts: 184 |
Hi, I finally found some time to start this task; I have scoured the documentation and searched the support board but found almost zero hits on the sc.DataFile function. I have also searched the contents of every cpp file in the ACS_Source folder but have found almost zero usage of the DaatFile function; The only information I found was in the SC documentation which is quite sparse https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scDataFile 1) Can you please update the documentation to further discuss the use of this function and give some examples. This seems to be the only function that allows you to change the symbol so I would have thought there would be more of a description on it's use? 2) I found that you can only specify the "symbol" with the function and the code won't build if you specify the path as well; presumably the function uses the default data directory to search for the symbol you specify which would be consistent with what I found? sc.DataFile = "WPL-CFD-SMART-AUD.scid"; builds sc.DataFile = "C:\SierraChart1\Data\WPL-CFD-SMART-AUD.scid"; won't build Can you please clarify? 3) When I insert sc.DataFile = "WPL-CFD-SMART-AUD.scid"; (or any other symbol) into the DLL, build it and then attach the study, it changes the charts symbol and then goes into an endless loop whether I have specified looping or not; as soon as I comment out the sc.DataFile function the looping stops as I would expect. Can you provide some explanation as to what the function is doing as it continually writes to Message log with the following message (I deleted my test messages for clarity so these are system produced messages); Interactive Brokers | Using primary service for historical data for BHP-CFD-SMART-AUD | 2016-03-11 11:27:29 BHP-CFD-SMART-AUD 1 Min #1 | Reloading chart. | 2016-03-11 11:27:29 Interactive Brokers | Using primary service for historical data for BHP-CFD-SMART-AUD | 2016-03-11 11:27:29 BHP-CFD-SMART-AUD 1 Min #1 | Reloading chart. | 2016-03-11 11:27:29 The function seems to reload the chart continuously, is this the intended behaviour? How can I control/stop/initiate the reloading of the chart? I need to understand the above issues before I can continue any further with this project. Regards |
[2016-03-11 02:19:05] |
Sierra Chart Engineering - Posts: 104368 |
1. The usage is quite simple and there is not much more to say but we did do some updates: https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scDataFile 2. The build problem is with the code. Do your research on this. This is not within the scope of our support. Hint: \ has special meaning in C++. Try using 2 backslashes or a single /. Although, as a general rule there is no need to specify the path and it is ignored. 3. It is not intended to be always set and this is the reason for the reloading but we will fix that in the next release coming out tomorrow. 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 |
[2016-03-14 12:27:49] |
User553714 - Posts: 184 |
Hi, 1) Can you please confirm that 3) above was implemented in version 1380 of SC; I believe it has. 2) I have the following code (see below). For some reason the sc.DataFile function is ignored for ALL but the final loop i.e. Symbols_NUM-40. What ever I number I change this to is where the code seems to stop and run sc.DataFile? I would like the reloading of the charts to occur on all of the loops from 1 to Symbols_Num (which is around 60.) Shouldn't sc.DataFile be executed on every loop and what am I missing? // This loop reads the Symbols_NUM stored in the Symbols_array and prints them to MessageLog
for (i = 0; i < Symbols_NUM-40; i++) { mystring1 = Symbols_array[i][1] + ".scid"; stringstream(mystring1) >> char_array1; Buffer.Format("Pos integer = %s", char_array1); sc.AddMessageToLog(Buffer,1); sc.DataFile = char_array1; } OUTPUT Interactive Brokers | Using primary service for historical data for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21 Interactive Brokers | Using primary service for historical data for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21 Intraday data recording state for symbol DLX-CFD-SMART-AUD is set to download 'Pending'. | 2016-03-14 23:13:21 HD Request # 71 | Downloading Intraday chart data for DLX-CFD-SMART-AUD to the file DLX-CFD-SMART-AUD.scid. Service: ib | 2016-03-14 23:13:21 HD Request # 71 | Download start Date-Time: 2016-03-14 15:15:17.000 | 2016-03-14 23:13:21 HD Request # 71 | Requesting a total of 0 days and 33484 seconds. | 2016-03-14 23:13:21 HD Request # 71 | IB Backfill - Seconds requested: 33484. Seconds Remaining: 0. | 2016-03-14 23:13:21 HD Request # 71 | Requesting 33484 Seconds of data at 30 secs with ending Date-Time at 2016-03-15 00:23:21 for DLX-CFD-SMART-AUD | 2016-03-14 23:13:21 HD Request # 71 | Processing historical data message from TWS | 2016-03-14 23:13:23 HD Request # 71 | Receiving Intraday data for DLX-CFD-SMART-AUD starting at 2016-03-14 15:05:30 | 2016-03-14 23:13:23 HD Request # 71 | Timestamp of first Intraday data file record written: 2016-03-14 15:15:30 | 2016-03-14 23:13:23 HD Request # 71 | Received 1113 records and wrote 111 records from 2016-03-11 13:03:30 to 2016-03-14 16:10:30. | 2016-03-14 23:13:23 HD Request # 71 | Received 1113 records from 2016-03-14 15:05:30 to 2016-03-14 16:10:30 (65.0 minutes) and wrote 111 records for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23 HD Request # 71 | Intraday download COMPLETE for DLX-CFD-SMART-AUD. Completion time: 2s. Unique request ID: 73 | 2016-03-14 23:13:23 Removed historical data download ID 73 | 2016-03-14 23:13:23 Real-time Intraday chart data file updates started for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23 Opened cached Intraday file: C:\SierraChart1\Data\DLX-CFD-SMART-AUD.scid | 2016-03-14 23:13:23 Intraday chart data file opened for DLX-CFD-SMART-AUD | 2016-03-14 23:13:23 Regards |
[2016-03-14 15:58:26] |
Sierra Chart Engineering - Posts: 104368 |
1. Yes it has been. 2. This behavior is already explained in the documentation. Read over the documentation carefully. 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: