for being on the safe side when trading I have added now (a programmer has added the few lines for me) to my scripts a bool that sets false when connection is broken. In my exit conditions I coded that they will only trigger when bool connected is true. This way I hope to avoid that NT exits a position when getting back to connection, a position that might not exist anymore because stopped or closed during the outage. This is done with
protected override void OnConnectionStatus(ConnectionStatus orderStatus, ConnectionStatus priceStatus)
{if (priceStatus==ConnectionStatus.ConnectionLost || priceStatus==ConnectionStatus.Disconnected)
connLost = true; }
Does NT verify connection lost and set bool to false? Does this work when NT has no more connection to verify the status without "working by connection". Or could do NT this only when connected maybe (then it would not make sense). I hope I could translate what I mean.
Thank you
Tony
Comment