Login Page - Create Account

Support Board


Date/Time: Fri, 20 Sep 2024 05:40:49 +0000



http request/response

View Count: 1702

[2014-09-23 18:47:51]
onnb - Posts: 662
this seems obvious but just wanted to double check
when the call to MakeHTTPRequest returns, am I to expect that sc.HTTPresponse is always the empty string ""?
[2014-09-23 19:52:24]
Sierra Chart Engineering - Posts: 104368
If sc.MakeHTTPRequest returns an error, then sc.HTTPResponse will be set to "HTTP_REQUEST_ERROR" .

Otherwise, it will be an empty string.

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-09-23 23:12:27]
onnb - Posts: 662
following up on this and trying to troubleshoot something.

I am having an issue at the point where user changes symbol causing a chart refresh. I am seeing inconsistency with the HTTPResponse which puzzles. I am not sure if its a caching issue or a synch issue.

In my case, I have UpdateAlways = 1 so its called periodically. The problem I have only happens when I change symbol so my question is in general, a study function is not re-entrent meaning that access to the study is synchronized so only one thread can execute at a time - correct?

When I see print outs in the message log window, these print outs are serial and all from the same thread so I can know that they are printed in the order they happened - right?


[2014-09-24 07:48:37]
Sierra Chart Engineering - Posts: 104368
Does the study make references to other charts?

In the case of the message log, messages added by custom studies will be in the same order as the calls to the ACSIL function which adds the message.
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-09-24 13:43:04]
onnb - Posts: 662
Does the study make references to other charts?

No
[2014-09-24 15:56:39]
Sierra Chart Engineering - Posts: 104368
my question is in general, a study function is not re-entrent meaning that access to the study is synchronized so only one thread can execute at a time - correct?
Yes. This is correct and actually it would even be correct when changing the symbol of the chart even if there was a reference to another chart.
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