MetaTrader EA that monitors positions on the account.
EA needs to write to a file and needs to compare if something changed. A restart of MetaTrader should not make it believe that all positions are new.
Information provided :
is it a close or a open
lot size
currency pair
Sell or Buy
open or close value
ticket
Everytime it detects a new position closed or opened it will make www GET request to my server with the above provided variables and executed a local file on the computer on windows.
Additional to this the EA will monitor the connection of MetaTrader. As long as connection exists ("connected to server") it will write current timestamp every minute in a file. So it is possible to see lost connection from outside.