Hi Friends,
Apologies but in my earlier post there was an error in the headings in the spreadsheet. I've corrected these as the values that I was looking at were (as named in the Data Window in MT4) 'Value 4' and 'Value 5'.
I've amended the code as well and attached both here (and if anyone wants to compile the code I have also attached the #Include file).
Regards
Ian N.