input is now a reserved word (case sensitive).
Try changing it to something else, for example Input
void WriteToLogFile(string Input) { string filename = "Spread_Recording/"+Symbol()+"-Spread_Recorder-"+Day()+"-"+Month()+"-"+Year()+".log"; Input = TimeHour(TimeCurrent())+":"+TimeMinute(TimeCurrent())+":"+TimeSeconds(TimeCurrent())+" - "+Input; int handle = FileOpen(filename,FILE_READ|FILE_WRITE); if (handle>1) { FileSeek(handle, 0, SEEK_END); // go to end of file FileWrite(handle, Input); FileClose(handle); } }
honest_knave:
Thnks! it works now =)
input is now a reserved word (see how it is colored blue?).
Try changing it to something else, for example Input

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 downloaded the attached indicator and it has been working for a while, but today when i was looking at the file inside MetaEditor and i compiled it (without changing anything)
I got this errors?? and the EA stopped to work.
This is the error part of the indicator.
Does anyone know how i can fix it?