Forex has no volume. But for the comma, just replace the first blank in the format string with a comma.

The file name can be generated from the asset name and bar period in a very similar way, with sprintf, like this

sprintf(...,"%s_%i.csv",Asset,BarPeriod);

"%s" in a format string inserts a string.