I have another suggestion about problem with writing file with
timeframe "M1" (one month). Is it possible that you have program
writing file for time frame "m1" (one minute) at the same time?
So if you have something like this in your configuration file:
- Code: Select all
<History>
<Instrument>USD/JPY</Instrument>
<TimeFrame>m1</TimeFrame>
<File>USD_JPY_m1</File>
<NumBars>1000</NumBars>
</History>
<History>
<Instrument>USD/JPY</Instrument>
<TimeFrame>M1</TimeFrame>
<File>USD_JPY_M1</File>
<NumBars>10</NumBars>
</History>
That could be a problem because for Windows "USD_JPY_m1.csv" and
"USD_JPY_M1.csv" is the same file.
Anyway I can see possible solutions here:
1 - change the "File" value in the configuration file for "M1", for
example:
<File>USD_JPY_OneMonth</File>
2 - change the
OutputDir
to another value (create a new directory,
or point to the directory where file "USD_JPY_M1.csv" does not exist
yet).
3 - try to delete existing file "USD_JPY_M1.csv" (you would not be
able to do it if the file is really in use)