Support Board
Date/Time: Thu, 30 Oct 2025 19:05:49 +0000
Post From: ACSIL - How to force data recalculation on feed connect/disconnect?
| [2015-12-18 22:57:10] |
| ejtrader - Posts: 688 |
|
Thanks SC Team. For anyone interested - this is the solution I came up with ( whether efficient or not). This would trigger a recalc - when there is a change with the ServerConnection state. Just wish there is such option for a chart which is remote data based. Any possibility to add this function? int &dfStatus = sc.GetPersistentInt(1); if (sc.UpdateStartIndex == 0 || (dfStatus != sc.ServerConnectionState && sc.ServerConnectionState == SCS_CONNECTED)) { sc.AddMessageToLog(" ---- testind --- update == 0 -----", 0); } dfStatus = sc.ServerConnectionState; Date Time Of Last Edit: 2015-12-19 02:58:30
|
