I am trying to trade from an automatically updating CSV file. The file is updated with the newer entries being appended to the bottom of the file about every 15 minutes interval.
The resulting file is a record of several rows of data by date/time and value as shown below.
// filename: EURUSDxx.CSV
// Date/Time Value
2015.02.13 10:37, 23
2015.02.13 11:07, 23
2015.02.13 11:22, 23
2015.02.13 11:37, 23
2015.02.13 11:52, 23
2015.02.13 12:07, 21
2015.02.13 12:22, 21
2015.02.13 12:37, 21
2015.02.13 13:22, 19
2015.02.13 13:37, 19
2015.02.13 13:52, 19
2015.02.13 14:22, 19
2015.02.13 14:37, 19
2015.02.13 14:52, 17
2015.02.13 15:22, 15
2015.02.13 16:07, 11
2015.02.13 16:37, 11
2015.02.13 18:22, 15
2015.02.13 18:52, 17
2015.02.13 20:08, 17
2015.02.13 20:23, 17
2015.02.13 20:38, 15
2015.02.13 20:53, 15
2015.02.13 21:23, 15
2015.02.13 21:38, 15
2015.02.13 22:09, 13
2015.02.13 22:24, 13
2015.02.13 22:39, 13
2015.02.13 23:09, 13
My goal is to assign the most recent ten values (appended at the bottom) to array variables such that the latest entry at the bottom will have index 0, the entry above it will have index 1 and so on until index 9 (ten entries). My current implementation is resulting in the attached Printout which clearly shows the indexing is the reverse of what I am looking for.
I guess my best shot is to sort the entries using ArraySort function before assigning the variables. Unfortunately I have reached the end of my tether and my mql4 know-how and need your expert help in this exercise. I need your help. You get a FREE limited copy of the resulting amazing EA which will be released very soon. :) . Wait a minute, I am attaching my latest version here to help me build on.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The resulting file is a record of several rows of data by date/time and value as shown below.
// filename: EURUSDxx.CSV
My goal is to assign the most recent ten values (appended at the bottom) to array variables such that the latest entry at the bottom will have index 0, the entry above it will have index 1 and so on until index 9 (ten entries). My current implementation is resulting in the attached Printout which clearly shows the indexing is the reverse of what I am looking for.
I guess my best shot is to sort the entries using ArraySort function before assigning the variables. Unfortunately I have reached the end of my tether and my mql4 know-how and need your expert help in this exercise. I need your help. You get a FREE limited copy of the resulting amazing EA which will be released very soon. :) . Wait a minute, I am attaching my latest version here to help me build on.
Thanks