Questions from Beginners MQL5 MT5 MetaTrader 5 - page 950
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
Example fromLifeHack articlefor trader: one backtest is good, but four is better:
Thank you! It's not so easy there, so no way to do it without Win API?
Thank you! It's not so easy there, so no way to do it without Win API?
In this case, read the MQL5 documentation:
Thank you! It's not that simple, so you can't do it without Win API?
What's so complicated about it? I read two paragraphs and it all makes sense.
1. search for ALL ANY files in a specified directory, Common or terminal folder. You get the path to them, one by one.
2. Work with this line. Look for the specified folder in this line and count how many times the specified folder name occurs. This will be the number of files in the folder and its subfolders.
Can you please tell me how to get a list of directories in the specified directory MQL5\Files ?
Taken from here. Perhaps other functions will be useful there.
Then from the MQL5 documentation:
Thanks, but it's hard to apply yet...
Taken from here. Perhaps the other functions there will be useful.
Thanks, the code works! And how to get only the directory names in the specified directory, without depth branching and file names?
Thank you, the code works! But how to get only the directory names in the specified directory, without depth branching and file names?
// Pos = ::GetDirectories(Directories, Pos, TmpFileName + Filter, Common_Flag);
Thanks, but I can't figure out how to get a directory in a specific subdirectory, i.e. I know that MQL5\Files has a "test" directory and I need to look at directories in it.
Thanks, but I can't figure out how to get a directory in a specific subdirectory, i.e. I know that MQL5\Files has a"test" directory and I need to look at directories in it.
So I did, but the files are also listed there... how to distinguish files from folders is unclear.