Here's the python script I used to get all the symbols from mt5 and put them in a file separated by newlines so I could copy and paste them in to the csv.
import os csvdir = r'D:\test\csv.csv' directory = r'C:\Users\user\AppData\Roaming\MetaQuotes\Terminal\A562C60AAEED2D6E7E5976B5FCB75493\bases\Default\history' for entry in os.scandir(directory): if (entry.is_dir()): print(entry.name) myline = entry.name + '''\n''' print(myline) f = open(csvdir, "a") f.write(myline) f.close()