Support Board
Date/Time: Wed, 25 Jun 2025 08:00:04 +0000
Post From: Making http requests in an automated trading study during backtesting
[2022-01-10 23:14:43] |
glacialspring - Posts: 26 |
I am sending some data from sierra chart for each bar to my server that returns whether to buy or sell, and I was wondering how sc.MakeHTTPPOSTRequest is handled in backtesting. I see that the response is handled asynchronously on the next study call(s) as the response is received. I'm not using autolooping for the study and I think I can get around potential problems by sending a bar index along with the server request and including it in the returned response, but I'm worried that the first sc.HTTPResponse will already have been overwritten because the replay is going so fast. Is it possible that the responses could be overwritten by subsequent requests?
|