Write to file on trade event Requirements 1) On a manual trade opened in the MT4 terminal, the solution must write to a file the details specified in step 7 of the requirements. 2) On a trade opened by an EA in the MT4 terminal, the solution must write to a file the details specified in step 7 of the requirements. 3) On a trade opened by a signal (following a signal), the solution must write to a file the details specified in step 7 of the requirements. This is the most important point. 4) When a trade closes manually, the solution also writes to a file the details specified in step 7. 5) When a trade closes automatically by an EA, the solution also writes to a file the details specified in step 7. 6) When a trade closes remotely by a signal provider, the solution also writes to a file the details specified in step 7. 7) The contents that need to be written to the file are: The symbol (pair) of the trade, the direction (buy or sell), the amount, the timestamp, and the unique id of the trade. This is extremely important so that when a trade is closed later, I can find through its unique id which trade it really was. The exact same things need to be written when closing a trade, except for the direction. 8) The string that will be written to the file should be configurable so that I can try different strings. 9) It must be configurable where to create and store that file that is being written into. 10) There must be no errors or multithreaded exceptions if for example 2 trades are opened at almost the same time and need to write to the file at the same time too. 11) It should NOT be necessary to have any charts open, or at maximum 1 chart, because if you are following a signal provider who is opening positions in different charts the program should work anyway. It should be able to identify these trades and write them to file. I also want to test by opening trades on many different forex pairs, and the solution should be able to write to the file without problems.