Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 01:23:44 +0000



sc.ReconnectToExternalServiceServer not working after sc.DataFile

View Count: 259

[2023-06-09 15:27:52]
Berliner JFK - Posts: 45
I use ACSIL to perform an automatic rollover, i.e.

sc.DataFile = ROLLOVER_SYMBOL;

This works good.

After rolling over the symbol, though, I wanted to reload the chart as well, i.e.

sc.ReconnectToExternalServiceServer = true;

For some reason, when I follow the symbol change with the reconnect in ACSIL, the reconnect doesn't seem to work.
I'm used to seeing the message log scroll for 10 seconds when there's a programmatic reconnect, but there's nothing after rolling over the symbol.

Here is my code again, complete:

sc.DataFile = ROLLOVER_SYMBOL;
sc.ReconnectToExternalServiceServer = true;

Could you please help me understand why this only results in a symbol change, but no reconnect afterwards?

Thanks!
[2023-06-09 16:04:05]
Sierra_Chart Engineering - Posts: 17199
Reconnecting to the data feed in this case is unnecessary and does not cause any kind of reload:
I wanted to reload the chart as well, i.e.

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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-06-12 11:30:32]
Sierra_Chart Engineering - Posts: 17199
Refer to this function:
sc.StartDownloadHistoricalData()
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-06-12 12:18:35]
Berliner JFK - Posts: 45
I realize now that what I wanted to achieve after rollover was:
1. historical download
2. reload
3. recalculate

In the past (not rollover) sc.ReconnectToExternalServiceServer worked for this.

Now I will now use sc.StartDownloadHistoricalData after a symbol change to achieve the above.
Date Time Of Last Edit: 2023-06-15 01:14:51

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account