Support Board
Date/Time: Fri, 27 Dec 2024 17:51:58 +0000
Read local file in ACSIL
View Count: 2427
[2016-02-21 21:47:42] |
@sstfrederik - Posts: 404 |
Any pointers other than stdio on a way to load local csv file into an ACSIL study? File pathname would be an input variable or is there a file selection possibility? Thanks. Date Time Of Last Edit: 2016-02-21 22:03:39
|
[2016-02-21 23:20:50] |
Sierra Chart Engineering - Posts: 104368 |
There is no express support for working with files other than the standard C/C++ libraries. And there is no file selection dialog. Although we probably could add a study Input that supports that if you would like? Really should not be hard for us to do. 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-21 23:54:44] |
@sstfrederik - Posts: 404 |
That would be great. Would it be possible to support something like I have used from some example code to handle the sc.HTTPResponse when an sc.MakeHttprequest was made? sc.HTTPResponse.ParseLines
Any help appreciated, before reinventing the wheel on this. Thanks, Frederik |
[2016-02-22 18:29:13] |
Sierra Chart Engineering - Posts: 104368 |
We have no comment to the prior question and we do not understand it. It is not something we would help with anyway.
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-22 18:44:04] |
@sstfrederik - Posts: 404 |
Can you tell me if sc.MakeHTTPRequest support requesting a file from localhost if I would set up a webserver on the computer that is running SC? Thanks. |
[2016-02-22 18:47:11] |
Sierra Chart Engineering - Posts: 104368 |
Yes. It certainly can request a file from any network address including the local computer at 127.0.0.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 |
[2016-02-22 21:41:44] |
@sstfrederik - Posts: 404 |
With my earlier question i meant that i am looking for a simular function than sc.makehttprequest, but than for reading a local file.
|
[2016-02-24 17:54:05] |
Sierra Chart Engineering - Posts: 104368 |
There is this function: SCString::ParseLines(std::vector <SCString>& Lines) For information about SCStrings, refer to: https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#WorkingWithStrings 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-26 16:14:02] |
@sstfrederik - Posts: 404 |
An additional question in line with this thread. I tried reading a public csv file stored in a google drive, into a study that uses the sc.MakeHttprequest function. It does not work. I do not have access to the details in the message log at this time, but is this something that should work? Thanks. See some feedback in message log when I try to load a public file from google drive and dropbox. It looks like the attempt to get the file contents is timing out. ESH16 [M] 60 Min #1 | Study: Backtest | Making HTTP request. | 2016-02-26 14:33:28 HTTPS connection to drive.google.com:443 (0) | Resolved address drive.google.com to IP 216.152.163.110 | 2016-02-26 14:33:28 HTTPS connection to drive.google.com:443 (284) | Connected. | 2016-02-26 14:33:29 HTTPS connection to drive.google.com:443 (284) | Starting TLS 1.2 connection. | 2016-02-26 14:33:29 HTTPS connection to drive.google.com:443 (284) | SSL connection established. | 2016-02-26 14:33:29 HTTPS connection to drive.google.com:443 (284) | SSL shutdown indicates not able to send 'close notify'. | 2016-02-26 14:36:29 HTTPS connection to drive.google.com:443 (284) | SSL has been shut down. | 2016-02-26 14:36:29 HTTPS connection to drive.google.com:443 (284) | SSL object has been freed. SSL state is now disconnected. | 2016-02-26 14:36:29 HTTPS connection to drive.google.com:443 (284) | Shutdown and closed. | 2016-02-26 14:36:29 HTTPS connection to www.dropbox.com:443 (0) | Resolved address www.g1.dropbox.com to IP 162.125.4.1 | 2016-02-26 14:29:51 HTTPS connection to www.dropbox.com:443 (281) | Connected. | 2016-02-26 14:29:51 HTTPS connection to www.dropbox.com:443 (281) | Starting TLS 1.2 connection. | 2016-02-26 14:29:51 HTTPS connection to www.dropbox.com:443 (281) | SSL connection established. | 2016-02-26 14:29:51 HTTPS connection to www.dropbox.com:443 (281) | SSL connection closed by remote side. | 2016-02-26 14:31:18 HTTPS connection to www.dropbox.com:443 (281) | SSL object has been freed. SSL state is now disconnected. | 2016-02-26 14:31:18 HTTPS connection to www.dropbox.com:443 (281) | Shutdown and closed. | 2016-02-26 14:31:18 Date Time Of Last Edit: 2016-02-26 19:37:11
|
[2016-02-26 19:39:54] |
Sierra Chart Engineering - Posts: 104368 |
The TLS connection is succeeding but we assume there is a problem with the request. This is not within the scope of our support to help with.
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-27 17:23:24] |
@sstfrederik - Posts: 404 |
Yes. I tested it a bit more and its not a SC issue.
|
To post a message in this thread, you need to log in with your Sierra Chart account: