IB connection was lost last night around 2:04 AM, it did get reconnected and I did get the alter email, but the script stopped working, no any orders submitted. I check the log, it says the process cannot access the log file because it is being used by another process. The log message looks like this:
8/22/2017 2:04:56 AM|1|2|IBGateway-1: Primary connection=ConnectionLost, Price feed=ConnectionLost
8/22/2017 2:04:56 AM|3|128|Strategy '88d88ea05bb148af825e8b679a28e682' lost price connection but will keep running.
8/22/2017 2:04:56 AM|3|128|Error on calling 'OnConnectionStatus' method for strategy '88d88ea05bb148af825e8b679a28e682': The process cannot access the file 'C:\Users\Administrator\Documents\NinjaTrader 7\log\log.20170822.txt' because it is being used by another process.
8/22/2017 2:04:56 AM|3|128|Strategy 'ac18d70322ac46d9bc4e8ebe5a82d3c6' lost order connection but will keep running.
8/22/2017 2:04:56 AM|3|128|Strategy 'ac18d70322ac46d9bc4e8ebe5a82d3c6' lost price connection but will keep running.
8/22/2017 2:04:56 AM|3|128|Error on calling 'OnConnectionStatus' method for strategy 'ac18d70322ac46d9bc4e8ebe5a82d3c6': The process cannot access the file 'C:\Users\Administrator\Documents\NinjaTrader 7\log\log.20170822.txt' because it is being used by another process.
8/22/2017 2:04:56 AM|1|2|IBGateway-2: Primary connection=ConnectionLost, Price feed=ConnectionLost
8/22/2017 2:05:23 AM|1|2|IBGateway-1: Primary connection=Connected, Price feed=Connected
8/22/2017 2:05:26 AM|1|2|IBGateway-2: Primary connection=Connected, Price feed=Connected
Comment