Support Board
Date/Time: Sun, 22 Dec 2024 06:20:57 +0000
force chart refresh api
View Count: 1298
[2014-12-06 20:39:44] |
onnb - Posts: 662 |
there used to be a way to force a chart refresh using sc.InternalFR = -17; this is no longer compiles. is there an alternative way to force a charge reload/recalc from ACSIL? |
[2014-12-08 08:39:16] |
Sierra Chart Engineering - Posts: 104368 |
sc.FlagFullRecalculate = 1
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-12-09 01:59:59] |
onnb - Posts: 662 |
It looks like this does a "Recalculate" (Cntrl+Insert) - right? If so, is there a way to "Reload and Recalculate" (Insert)? |
[2014-12-09 06:16:33] |
Sierra Chart Engineering - Posts: 104368 |
Right. A full reload of the chart data from the chart data file is not supported with a flag variable. 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-12-09 06:43:08] |
onnb - Posts: 662 |
following this answer - when connected to a live feed, does SC continuously update the scid files for a chart as new data comes in? can I rely on it being up to date at any given moment?
|
[2014-12-09 06:56:54] |
Sierra Chart Engineering - Posts: 104368 |
Yes. Actually, there is caching which is being used. The cache is flushed to the operating system when the chart updates. 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: 2014-12-09 06:58:02
|
[2014-12-09 19:27:03] |
onnb - Posts: 662 |
Do you happen to have example code to start reading these files?
|
[2014-12-09 20:09:33] |
onnb - Posts: 662 |
if anyone needs code that reads the scid file, see below... the header and record structure defs are here: http://www.sierrachart.com/index.php?page=doc/doc_IntradayDataFileFormat.html (there is a small typo in the header struct) // get the file name from the symbol SCString filename; filename.Format("%s.scid", sc.Symbol.GetChars()); FILE * fp; fp = fopen(filename.GetChars(), "rb"); s_IntradayHeader header; if (fp == NULL) { return; } fread(&header, sizeof(struct s_IntradayHeader), 1, fp); // we have the header, now read the records s_IntradayRecord rec; while (fread(&rec, sizeof(struct s_IntradayRecord), 1, fp)) { // do something with the record } fclose(fp); |
[2014-12-09 20:30:44] |
Sierra Chart Engineering - Posts: 104368 |
You can get the path and filename for the intraday data file with: sc.DataFile 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-12-09 20:57:46] |
onnb - Posts: 662 |
the dates in the scid file are with MS timestamps?
|
[2014-12-09 21:37:32] |
Sierra Chart Engineering - Posts: 104368 |
There is a millisecond component to them, yes.
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-12-10 19:51:00] |
onnb - Posts: 662 |
when you write/update scid files in real time, do lock the file? do you lock the whole file or only the region that you are writing to?
Date Time Of Last Edit: 2014-12-10 19:51:29
|
[2014-12-11 01:45:24] |
Sierra Chart Engineering - Posts: 104368 |
No locking.
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: