Support Board
Date/Time: Sun, 22 Dec 2024 11:53:32 +0000
Post From: force chart refresh api
[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); |