Unloading quotes from the selected period into an external file for more currency pairs

 
Can somebody help me in writing a script for unloading quotes from the selected period into an external file for more currency pairs, there is a script named OutQuotings, I'm using, but it is working only for a currency pair in opened window. I need a script which can do a job for 10 pairs at once, into 1 file.
Reason: