Support Board
Date/Time: Sat, 30 Nov 2024 04:25:22 +0000
please help me understand why >Reconnect on Failure = Yes< did not work as I expected
View Count: 527
[2022-12-13 23:03:18] |
Berliner JFK - Posts: 45 |
I have a laptop which I'm grooming for live trading. Today @ 13:47 (log below) it lost connection to the server, and apparently didn't attempt a reconnect. Data/Trade Service Settings / Common Settings / Reconnect on Failure is set to "Yes", so I don't believe that's the issue. @14:53 I opened it from the lock screen with my password, and at that moment it reconnected, but not before, although it was not asleep. I set it up, as far as I can tell, identically to another laptop which I have been testing 24/7 for 6 months, and that laptop has never had this problem. Could you please help me understand why between 13:47 and 14:53 Sierra Chart did not make an attempt to reconnect? Thank you ============================LOG=================================== Requesting current Date-Time from Sierra Chart server. | 2022-12-13 13:38:21.339 Received Date-time from server. Delay adjusted UTC Date-time: 2022-12-13 18:38:22.416. Round-trip delay: 00:00:00.504 | 2022-12-13 13:38:22.347 Computer time to server time difference: -00:00:00.068 | 2022-12-13 13:38:22.347 Successfully set the system Date-time to: 2022-12-13 18:38:22.416 UTC. | 2022-12-13 13:38:22.609 DTC Client socket (1) | Close event error. Windows error code 10053: An established connection was aborted by the software in your host machine. | 2022-12-13 13:47:32.165 * DTC Client socket (1) | Socket gracefully closed by remote side. | 2022-12-13 13:47:32.165 DTC Client socket (1) | CloseSocket call. | 2022-12-13 13:47:32.166 DTC Client socket (1) | Max send buffers used during socket life: 4 | 2022-12-13 13:47:32.166 DTC Client socket (1) | Max send buffer size during socket life: 365 | 2022-12-13 13:47:32.166 DTC Client socket (1) | Graceful close received or receive error. Shutdown complete. Closing socket now. | 2022-12-13 13:47:32.166 Connection to the external service has been lost. | 2022-12-13 13:47:32.166 DTC Client socket (1) | Closed. | 2022-12-13 13:47:32.166 Trading Evaluator | Waiting for socket receive thread to end | 2022-12-13 13:47:32.188 DTC Client socket (0) | CloseSocket call. | 2022-12-13 13:47:32.188 Trading Evaluator | Disconnected. | 2022-12-13 13:47:32.189 Will reconnect to the server in 2.0 seconds. Select 'File >> Disconnect' to prevent further connection attempts. | 2022-12-13 13:47:32.189 DTC Client socket (4) | Socket gracefully closed by remote side. | 2022-12-13 14:49:24.825 DTC Client socket (4) | CloseSocket call. | 2022-12-13 14:49:24.825 DTC Client socket (4) | Write in progress. Shutdown being delayed. PendingSize=0 | 2022-12-13 14:49:24.825 SC Data - All Services | Server has requested a logoff. Reason: No heartbeat messages received for 77.0 seconds. Stopping connection. | 2022-12-13 14:49:24.828 SC Data - All Services | Waiting for socket receive thread to end | 2022-12-13 14:49:24.828 DTC Client socket (0) | CloseSocket call. | 2022-12-13 14:49:24.828 SC Data - All Services | Disconnected from the server. | 2022-12-13 14:49:24.828 SC Data - All Services | Data feed disconnected. Will reconnect in 2 seconds. | 2022-12-13 14:49:24.828 DTC Client socket (4) | Write has completed. Shutdown being performed. | 2022-12-13 14:49:31.740 DTC Client socket (4) | Graceful close received or receive error. Shutdown complete. Closing socket now. | 2022-12-13 14:49:31.740 DTC Client socket (4) | Closed. | 2022-12-13 14:49:31.741 Trading Evaluator | Connecting to the server tradesimulation2.sierracharts.com. Port 11096 | 2022-12-13 14:53:03.049 SC Data - All Services | Connecting to the server ds13.sierracharts.com. Port 10048 | 2022-12-13 14:53:03.052 DTC Client socket (1) | Creating socket. Using TLS 1.2. | 2022-12-13 14:53:23.235 DTC Client socket (1) | New receive buffer size: 5242880 | 2022-12-13 14:53:23.235 DTC Client socket (1) | Connecting to IP: 142.215.17.188. | 2022-12-13 14:53:23.235 DTC Client socket (2) | Creating socket. | 2022-12-13 14:53:23.318 DTC Client socket (2) | New receive buffer size: 5242880 | 2022-12-13 14:53:23.318 DTC Client socket (2) | Connecting to IP: 162.251.232.237. | 2022-12-13 14:53:23.318 Trading Evaluator | Network connection to server complete. | 2022-12-13 14:53:23.419 Trading Evaluator | Starting socket receive thread. | 2022-12-13 14:53:23.419 Trading Evaluator | Sending encoding request to server: Binary VLS. Compression: none | 2022-12-13 14:53:23.420 SC Data - All Services | Network connection to server complete. | 2022-12-13 14:53:23.583 SC Data - All Services | Starting socket receive thread. | 2022-12-13 14:53:23.583 SC Data - All Services | Sending encoding request to server: Binary VLS. Compression: high | 2022-12-13 14:53:23.583 Trading Evaluator | Setting DTC encoding to Binary VLS | 2022-12-13 14:53:23.671 Trading Evaluator | Sending logon request message. | 2022-12-13 14:53:23.671 SC Data - All Services | Setting DTC encoding to Binary VLS | 2022-12-13 14:53:23.740 SC Data - All Services | Sending logon request message. | 2022-12-13 14:53:23.740 SC Data - All Services | Received logon response. | 2022-12-13 14:53:23.855 SC Data - All Services | Server Name: RealTime Server. | 2022-12-13 14:53:23.855 SC Data - All Services | Server protocol version: 8. Client protocol version: 8 | 2022-12-13 14:53:23.855 SC Data - All Services | Logon error received from server: Data service (sc_exchange2.datafeed) is disabled or unsupported. A software update may be necessary. | 2022-12-13 14:53:23.855 SC Data - All Services | Waiting for socket receive thread to end | 2022-12-13 14:53:23.855 DTC Client socket (2) | CloseSocket call. | 2022-12-13 14:53:23.856 SC Data - All Services | Disconnected from the server. | 2022-12-13 14:53:23.856 SC Data - All Services | Data feed disconnected. Will reconnect in 2 seconds. | 2022-12-13 14:53:23.856 DTC Client socket (2) | Shutdown started. Waiting for graceful close. | 2022-12-13 14:53:23.856 DTC Client socket (2) | Socket gracefully closed by remote side. | 2022-12-13 14:53:23.992 DTC Client socket (2) | Closed. | 2022-12-13 14:53:23.992 Trading Evaluator | Received logon response. | 2022-12-13 14:53:24.264 Trading Evaluator | Server Name: SC DTC Server. Build=44294. | 2022-12-13 14:53:24.264 Trading Evaluator | Server protocol version: 8. Client protocol version: 8 | 2022-12-13 14:53:24.264 Trading Evaluator | Successfully connected. Connected to SC DTC Protocol server. Service=tradesimulation.dtctrading|SymbolSettings=tradesimulation.dtctrading. | 2022-12-13 14:53:24.264 Trading Evaluator | Trading is supported. | 2022-12-13 14:53:24.264 Trading Evaluator | Order cancel and replace is supported. | 2022-12-13 14:53:24.264 Trading Evaluator | OCO Orders supported. | 2022-12-13 14:53:24.264 Trading Evaluator | Bracket Orders supported. | 2022-12-13 14:53:24.264 Trading Evaluator | Connected to server complete. | 2022-12-13 14:53:24.264 DTC Client socket (0) | CloseSocket call. | 2022-12-13 14:53:24.264 SC Data - All Services | Disconnected from the server. | 2022-12-13 14:53:24.264 Triggering next historical data download in queue. | 2022-12-13 14:53:24.266 Triggering next historical data download in queue. | 2022-12-13 14:53:24.266 Triggering next historical data download in queue. | 2022-12-13 14:53:24.266 Triggering next historical data download in queue. | 2022-12-13 14:53:24.266 Chart: MNQH23 [CB][M] 60 Min #10 | Study: Trade | c | RECONNECTING | 2022-12-13 | 14:53:24 | 2022-12-13 | 13:48:48 | 2022-12-13 14:53:24.270 Trading Evaluator | Performing query for most recent Order Activity Date-Time. | 2022-12-13 14:53:24.270 No download requests in the queue to start downloads for. | 2022-12-13 14:53:24.270 No download requests in the queue to start downloads for. | 2022-12-13 14:53:24.270 No download requests in the queue to start downloads for. | 2022-12-13 14:53:24.270 No download requests in the queue to start downloads for. | 2022-12-13 14:53:24.270 Trading Evaluator | Requesting historical order activity from server. Start date-time UTC: 2022-12-13 07:00:01.142550 | 2022-12-13 14:53:24.276 Trading Evaluator | Received final trade activity snapshot. Count=1. No data. TradeAccount=SimulatedCash | 2022-12-13 14:53:24.356 Trading Evaluator | Received final trade activity snapshot. Count=7. TradeAccount=SimulatedIRA | 2022-12-13 14:53:24.490 Mapping MNQH23 to MNQH23. Service code: cme | 2022-12-13 14:53:24.490 Using symbol data fast lookup vector | 2022-12-13 14:53:24.491 SC Data - All Services | Starting real-time market data updates for: MNQH23 (MNQH23). ID: 1 Service code: cme | 2022-12-13 14:53:24.491 SC Data - All Services | Connecting to the server ds23.sierracharts.com. Port 10048 | 2022-12-13 14:53:24.491 SC Data - All Services | Requesting security definition data for: MNQH23 (MNQH23). ID: 1 | 2022-12-13 14:53:24.491 Added historical Intraday data request for MNQH23 to the queue. | 2022-12-13 14:53:24.491 Intraday data recording state for symbol MNQH23 is set to download 'Pending'. | 2022-12-13 14:53:24.491 Triggering next historical data download in queue. | 2022-12-13 14:53:24.491 Delaying start of download for MNQH23. | 2022-12-13 14:53:24.500 DTC Client socket (3) | Creating socket. | 2022-12-13 14:53:24.553 DTC Client socket (3) | New receive buffer size: 5242880 | 2022-12-13 14:53:24.553 DTC Client socket (3) | Connecting to IP: 142.215.17.188. | 2022-12-13 14:53:24.553 Trace | Basic security definition symbol settings fields ignored in primary service client. Symbol: MNQH23 | 2022-12-13 14:53:24.585 Trading Evaluator | Received security definition for symbol MNQH23 | 2022-12-13 14:53:24.585 SC Data - All Services | Network connection to server complete. | 2022-12-13 14:53:24.635 SC Data - All Services | Starting socket receive thread. | 2022-12-13 14:53:24.635 SC Data - All Services | Sending encoding request to server: Binary VLS. Compression: high | 2022-12-13 14:53:24.635 SC Data - All Services | Setting DTC encoding to Binary VLS | 2022-12-13 14:53:24.735 SC Data - All Services | Sending logon request message. | 2022-12-13 14:53:24.735 SC Data - All Services | Received logon response. | 2022-12-13 14:53:25.557 SC Data - All Services | Server Name: SC Realtime Server. | 2022-12-13 14:53:25.557 SC Data - All Services | Server protocol version: 8. Client protocol version: 8 | 2022-12-13 14:53:25.557 SC Data - All Services | Successfully connected. | 2022-12-13 14:53:25.557 SC Data - All Services | Trading is not supported. | 2022-12-13 14:53:25.557 SC Data - All Services | Restarting real-time data updates for symbol: MNQH23 -> MNQH23 | 2022-12-13 14:53:25.557 SC Data - All Services | Received security definition for symbol MNQH23 | 2022-12-13 14:53:25.790 HD Request # 8 | Downloading Intraday chart data for MNQH23 to the file MNQH23.scid. Service: cme | 2022-12-13 14:53:30.993 HD Request # 8 | Download start date-time: 2022-12-13 13:47:04.000000. File last date-time: 2022-12-13 13:47:04.000000 | 2022-12-13 14:53:30.994 HD Request # 8 | Using server: ds23.sierracharts.com port 10149 | 2022-12-13 14:53:30.994 Socket (2) | Creating socket. | 2022-12-13 14:53:30.994 Socket (2) | New receive buffer size: 5242880 | 2022-12-13 14:53:30.994 Socket (2) | Connecting to IP: 142.215.17.188. | 2022-12-13 14:53:30.994 HD Request # 8 | Setting DTC encoding to Binary VLS | 2022-12-13 14:53:31.202 HD Request # 8 | Sending historical data logon request message. | 2022-12-13 14:53:31.202 HD Request # 8 | Requesting Intraday data. Start date-time: 2022-12-13 13:47:04. Record interval: 1. Symbol: MNQH23 | 2022-12-13 14:53:31.788 HD Request # 8 | Decompressing data. | 2022-12-13 14:53:31.914 HD Request # 8 | Receiving Intraday data for MNQH23 starting at 2022-12-13 13:47:04.013000 | 2022-12-13 14:53:32.105 Socket (2) | CloseSocket call. | 2022-12-13 14:53:32.108 Socket (2) | Shutdown started. Waiting for graceful close. | 2022-12-13 14:53:32.108 Historical data download thread signaled to stop. | 2022-12-13 14:53:32.115 HD Request # 8 | Timestamp of first Intraday data file record written: 2022-12-13 13:47:04.013000. | 2022-12-13 14:53:32.115 HD Request # 8 | Received 3949 Intraday data records from 2022-12-13 13:47:04.013000 to 2022-12-13 14:53:30.091000 (66.4 minutes) and wrote 3949 records for MNQH23 | 2022-12-13 14:53:32.115 HD Request # 8 | Add time&sales data | Remembered last file record date-time: 2022-12-13 19:53:30.091000 | 2022-12-13 14:53:32.122 Added 1 Time and Sales records to Intraday data file for MNQH23 after download. | 2022-12-13 14:53:32.122 HD Request # 8 | Completion time: 2s. | 2022-12-13 14:53:32.123 HD Request # 8 | Intraday data download complete for MNQH23. Unique request ID: 8 | 2022-12-13 14:53:32.123 Removing historical data download ID 8. | 2022-12-13 14:53:32.123 Real-time Intraday chart data file updates started for MNQH23 | 2022-12-13 14:53:32.123 Opened cached Intraday file: C:\Users\PROJECT\Dropbox\Simulated - Cash\Data\MNQH23.scid. Thread ID: 15640 | 2022-12-13 14:53:32.129 Intraday chart data file opened for MNQH23 | 2022-12-13 14:53:32.129 HD Request # 8 | Enabling Intraday chart updating for symbol. | 2022-12-13 14:53:32.129 Triggering next historical data download in queue. | 2022-12-13 14:53:32.129 No download requests in the queue to start downloads for. | 2022-12-13 14:53:32.129 Socket (2) | Socket gracefully closed by remote side. | 2022-12-13 14:53:32.177 Socket (2) | Closed. | 2022-12-13 14:53:32.177 |
[2022-12-14 03:56:12] |
Sierra_Chart Engineering - Posts: 17267 |
It is clear the computer system was not running: Trading Evaluator | Disconnected. | 2022-12-13 13:47:32.189 Will reconnect to the server in 2.0 seconds. Select 'File >> Disconnect' to prevent further connection attempts. | 2022-12-13 13:47:32.189 DTC Client socket (4) | Socket gracefully closed by remote side. | 2022-12-13 14:49:24.825 This is definite. 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 Date Time Of Last Edit: 2022-12-14 03:56:17
|
[2022-12-14 18:38:23] |
Berliner JFK - Posts: 45 |
OK, understood. For those interested, it turned out be the Wi-Fi card sleeping, not the computer. The solution was to restore the "Power Management" tab to Device Manager properties menu by adding a key to the registry, which made it possible to uncheck the box "Allow the computer to turn off this device to save power". Thanks! |
[2022-12-14 19:37:52] |
Sierra_Chart Engineering - Posts: 17267 |
If it is only the Wi-Fi card that is sleeping, why is there no messages showing re-connections during this time: Will reconnect to the server in 2.0 seconds. Select 'File >> Disconnect' to prevent further connection attempts. | 2022-12-13 13:47:32.189 DTC Client socket (4) | Socket gracefully closed by remote side. | 2022-12-13 14:49:24.825 Sierra Chart would continuously retry and log full details. There simply was no execution of Sierra Chart even occurring between these two timestamps. 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 |
[2022-12-14 23:43:28] |
Berliner JFK - Posts: 45 |
I checked the event log and it shows "connected standby", which is strange because in Power & Settings I have sleep set to never. Apparently that's normal in Windows that you can set sleep to "never", and still have the computer go to sleep? When I made the registry change, it also disabled the S0 sleep mode, so that explains the fix. But I still don't get why Windows enters "connected standby" when Sierra Chart is running and using CPU. That makes no sense to me. Thank you again very much! |
[2022-12-18 13:06:23] |
Berliner JFK - Posts: 45 |
posting follow-up for those who may have the same issue, my laptop was going to sleep with Sierra Chart running although plugged in and sleep set to "Never" in "Power & Sleep" settings, Windows 10 There is a sleep state which is not technically "sleep" as defined by Microsoft, but still results in Sierra Chart shutting down. It is called Modern Standby (S0). If you want to check if this sleep state is activated, you can check with "powercfg -a" in the CMD windows with administrator rights. In my case it was activated, and I deactivated it, also in CMD (admin) by adding a key to the registry: reg add HKLM\System\CurrentControlSet\Control\Power /v PlatformAoAcOverride /t REG_DWORD /d 0 If you would like to deactivate "hibernation" to be safe, you can do it in CMD (admin) with "powercfg -h off" For reference, on my laptop when I now check my sleep states it looks like this: C:\Windows\system32>powercfg -a
The following sleep states are not available on this system: Standby (S1) The system firmware does not support this standby state. Standby (S2) The system firmware does not support this standby state. Standby (S3) The system firmware does not support this standby state. Hibernate Hibernation has not been enabled. Standby (S0 Low Power Idle) The system firmware does not support this standby state. Hybrid Sleep Standby (S3) is not available. Hibernation is not available. Fast Startup Hibernation is not available. I hope this fixes the issue permanently. I don't know if this is at all helpful, but when I searched the board for similar information, I did not find anything. |
To post a message in this thread, you need to log in with your Sierra Chart account: