Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 15:32:55 +0000



ACSIL Question

View Count: 1050

[2017-01-09 19:02:05]
Entropy - Posts: 36
Hi,

I have made a few indicators now using ACSIL but this latest is a bit different. I think that I am not approaching this indicator in the right way and would like some insights into this. I am trying to do the following:

1. Download a XML file containing certain data (I have code using sc.MakeHTTPRequest() as well as Wininet)
2. Parse and sort the XML file and put the data into a vector
3. Display the data on the chart using UseTool

As separate parts they work but not as a whole. An ordinary indicator updates at each tick, but this indicator should basically download the file once per week, parse the data and display it based on day of week. It doesn't need to update at each tick.

What is the correct approach in ACSIL for such an indicator? Any ideas or pointers to solutions welcome!

Cheers,
Fred
[2017-01-09 20:26:33]
Sierra Chart Engineering - Posts: 104368
The first thing we recommend is that you do not use automatic looping:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Variables_And_Arrays.html#scAutoLoop

The next thing to do is to have your code only run when this is true:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Variables_And_Arrays.html#scIsFullRecalculation

And then basically select Chart >> Recalculate once a week.
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
[2017-01-11 10:24:27]
Entropy - Posts: 36
I saw in the documentation that there is a function called sc.LastCallToFunction. Is there any equivalent for initializing say sc.FirstCallToFunction? If I want to initialize certain tasks where would I do that?

Cheers,
Fred
[2017-01-11 17:30:19]
Sierra Chart Engineering - Posts: 104368
The closest would be sc.SetDefaults.
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