Ok i setup my indicator to write some data to a csv file. Now I thought csv files were comma separated files but when i open up the files in word i see these special square blocks separating the fields. So I opened it up in notepad++ and that had the fields seperated by NUL character. When i try importing the csv into excel and use commas and/or semicolons for seperating fields it wont work. Excel isn't seeing any commas or semicolons in the csv file. So my question is what character does MT4 use separate fields in a csv file and what character does it use for a delimiter?
- Write to File Question
- Import CSV file
- converting excel csv file from history
morpheus305:
Ok i setup my indicator to write some data to a csv file. Now I thought csv files were comma separated files but when i open up the files in word i see these special square blocks separating the fields. So I opened it up in notepad++ and that had the fields seperated by NUL character. When i try importing the csv into excel and use commas and/or semicolons for seperating fields it wont work. Excel isn't seeing any commas or semicolons in the csv file. So my question is what character does MT4 use separate fields in a csv file and what character does it use for a delimiter?
Ok i setup my indicator to write some data to a csv file. Now I thought csv files were comma separated files but when i open up the files in word i see these special square blocks separating the fields. So I opened it up in notepad++ and that had the fields seperated by NUL character. When i try importing the csv into excel and use commas and/or semicolons for seperating fields it wont work. Excel isn't seeing any commas or semicolons in the csv file. So my question is what character does MT4 use separate fields in a csv file and what character does it use for a delimiter?
Delimeter character depends on your windows settings. You can change it from Control Panel -> Regional and Language Options -> Customize (button) -> List separator filed.
Anyway in excel seems to ignore the delimeter symbol but if you open it with a simple text editor (notepad) you will see it.
> csv files were comma separated files
They can be but the origin of term 'csv' is 'common separated value'
i.e. delimited by an agreed value common to source and destination - could be anything (almost)
> Something is wrong.
Sounds like you have a Unicode file, not a pure ASCII?
-BB-
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register