I'm absolutley stumped. Anytime I am trying to write Account information to the filename, including AccountInfoString(ACCOUNT_COMPANY), I am getting Error 5002. Otherwise, it works.
Hoi Cheng: I am getting error 5002 from trying to write this filename:
filename = IntegerToString(AccountNumber())+": "+Symbol()+" "+date+" - ask.bin";
- Filenames are C:\path\name.ext. Colon is a reserved character.
- As Drazen said, date could have slashes and colons (if it includes times.)
thank you! that little colon was the issue!

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
Hi , I am getting error 5002 from trying to write this filename:
This error did not pop up until I added this portion:
IntegerToString(AccountNumber())
I tried to just use AccountNumber() by itself but I got a compile error of implicit conversion from 'number' to 'string'. Is there a proper way to doing this?
thank you