thank you for sharing the script. pls note that your script will be failed for broker with several symbol like Gold, Silver. can modify your base_currency & quote_currency like this (in block "read news"):
filehandle = FileOpen(filename,FILE_READ|FILE_CSV,',');
base_currency = StringSubstr(Symbol(),0,3);
quote_currency = StringSubstr(Symbol(),3,3);
if(StringSubstr(Symbol(),0,4) == "GOLD"){
base_currency = "XAU";
quote_currency = "USD";
}
if(StringSubstr(Symbol(),0,6) == "SILVER"){
base_currency = "XAG";
quote_currency = "USD";
}
//base_currency = Symbol();
Print("base_currency: ", base_currency, ", quote_currency: ", quote_currency, ", Symbol: ", Symbol() );

