| / | Forum |
|
Marty73
2006.11.27 18:13
Hi
I'm hoping someone can help me with these two issues: 1. How do I find Time[0] for 1H timeframe if my indicator is running in 5M timeframe for example? 2. Is there a function that finds whether a particular file exists in a particular directory? Sort of like Dir? Thank you in advance M |
|
Automated Trading Championship: The Reverse of the Medal It seems unthinkable that nobody before MetaQuotes Software Corp. thought of conducting such a Championship welcomed by all traders. In fact, organizing such an event needs more than just a desire to do it. |
|
timbo
2006.11.28 02:27
|
|
RickD
2006.11.29 07:19
|
|
Marty73
2006.11.29 13:02
RickD wrote: Marty73 wrote: 2. Is there a function that finds whether a particular file exists in a particular directory? Sort of like Dir? Use FileOpen with FILE_READ parameter. If FILE_READ does not combine with FILE_WRITE, the file will be opened only if it already exists. Rick What I've been doing so far is using FileOpen and if the handle number returns less than 0 then the file doesn't exist. I think you're suggesting a similar solution. It works but it's sloppy because it runs a nice string of error msgs in the debugger. |
|
RickD
2006.12.07 14:40
There is another way. Use Win32API FindFirstFile/FindNextFile. |