Get File Modification Time

 

Hi,

I am writing an expert which reads data from a file and executes trades based on it, I don't want my expert to open and read this file on every tick,how may I check for its last modification date, so I can ask my expert to read the data and ... ?

Regards

 

another MT program?

then maybe use Terminal Global Variables as semaphore between file writer and file reader programs


who/what adds data to file?

then maybe FileSize()...

eg,

FileSize() gives byte size... which might be of use,

Each tick (or tick window of your choice) EA polls the file size and compares with size 'saved away in global' previous tick window. if change detected do your stuff and also update your global copy of current file byte size ...

Reason: