Print(period); //return Period() value from filename no it doesn't Print(sym); // return Symbol() value from filename no it doesn't Print(time); // return iTime() value from filename no it doesn't Print(ext); // return extension name from filename no it doesn't
you have to use one of the FileRead's functions... first
Oh, just noticed that you referring to fileName and not the content
use StringSplit and convert the result using right StringTo... for instance StringToTime Etc.

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 have been experimenting with some code to obtain some variables from a filename.
Here is an example: 60_EURUSDFXF_12345678.sell
So with an EA I would like to extract the info to be used:
This is what I have got to at the moment but all values return 0, do I need to use SubString("") ?
If so how can I do this please?
Thanks
Antony