Topic: Data Export Script with Symbol Cleanup
Hello, Traders,
I'm attaching a new version of the Data Export script for MT4.
It removes the special characters from the names of the symbols.
For example, a symbol #EURUSD will be exported as EURUSD.
This update solves two problems:
- some files cannot be loaded back after upload. It happens with chars that collide with the web URI standard.
- having a clean symbol name allows EA Studio to find the symbol type correctly and determine the base currency and the underlying currency. It allows determining the account exchange rate correctly.
Both problems can be solved in other ways, but this is the cleanest, in my opinion.
The characters removed are: ~ ` ! @ # $ % ^ & * ( ) - _ + = , . / ' " [ ] { } \ |
The function that does the job is on line 147: string GetSymbolName(string symbol)
Please test the script.
If you find it working well, I'll introduce the change in the EA Studio scripts for MT4 and MT5.
Trade Safe!