wing:
here is my code:
<SNIP>
After attaching the indicator to a chart, "no file named" alert messaged is issued after some time.
However, when I check the folder, I can see and open the csv file. Would anybody help to tell what's wrong with my code?
Thanks a lot!
Please edit your post . . .
Please use this to post code . . . it makes it easier to read.
RaptorUK:
Please edit your post . . .
Please use this to post code . . . it makes it easier to read.done.
handle=FileOpen(File_Name,FILE_CSV|FILE_READ|FILE_WRITE,";"); if(handle<0) // File opening fails : else { handle = FileOpen(File_Name, FILE_CSV|FILE_READ|FILE_WRITE);You open the file, then you open the file AGAIN, loosing the original handle. Eventually you run out of available handles and you error.
wing:
here is my code:
After attaching the indicator to a chart, "no file named" alert messaged is issued after some time.
However, when I check the folder, I can see and open the csv file. Would anybody help to tell what's wrong with my code?
Thanks a lot!
I think if you remove the second FileOpen statement from the code, your problem will be gone. When you come to your seconf fileopen statement, file is already opened successfully by the first statement.
Problem solved, thanks to you all!
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
here is my code:
After attaching the indicator to a chart, "no file named" alert messaged is issued after some time.
However, when I check the folder, I can see and open the csv file. Would anybody help to tell what's wrong with my code?
Thanks a lot!