anuj71:
Your code should start by checking if the file already exists and deleting it...then everything else.
if(FileIsExist(file_name)) { FileDelete(file_name); }
Your code should start by checking if the file already exists and deleting it...then everything else.
Right but even this code will be checked when installing EA to new currency pair chart. I want automatic updating function. So, it will keep updating after X period of time (For example, every 2 hours). So, every two hours it download again from https://www.mql5.com/go?link=http://nfs.faireconomy.media/ff_calendar_thisweek.xml and save it by overwriting existing file
Your questions make me think that you don't know how to code and are simply looking for someone to do the work for you.
Sorry, I like to help, but I don't do the work for free.
Be patient, maybe someone will help you with this (because really the solution is simple for anyone with a minimum of knowledge about MQL).
https://www.mql5.com/en/forum/443428
- Generally, people who cannot code do not get free help on this forum, although it might happen if you are lucky. Be patient.
- If you show your attempts and describe your problem clearly, you will probably get a response from the community.
- If you don't want to learn to code, that's not a problem. You can look at the CodeBase section where you will find free and open source code, or at the Market for paid products (also sometimes free). Finally, you also have the option of hiring a programmer in the Freelance section.

- 2023.03.12
- www.mql5.com
our questions make me think that you don't know how to code and are simply looking for someone to do the work for you.
Sorry, I like to help, but I don't do the work for free.
Your Partially correct, I started coding just 3 weeks ago, i am in learning phase. But i am not looking for someone to do work for free.
I am looking for help, What kind of function i can use which update and overwrite file every 2 hours. I tried like i mentioned above but it not overwriting. Anyways, Thanks for helping :)
Your Partially correct, I started coding just 3 weeks ago, i am in learning phase. But i am not looking for someone to do work for free.
I am looking for help, What kind of function i can use which update and overwrite file every 2 hours. I tried like i mentioned above but it not overwriting. Anyways, Thanks for helping :)
My advice is to study how the temporal structure works.
Once you understand that you will be able to do anything related to time/dates.

- book.mql4.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I am fetching news from http://nfs.faireconomy.media/ff_calendar_thisweek.xml and it save the file inside terminal/MQL4\Files as FFCPing(Symbol)-ffcal_week_this.xml (eg, FFCPingGBPUSD-ffcal_week_this.xml). I have added a code to check this file every 2 hours and overwrite it to new version.
Here is my code :
Error, It not overwriting automatically. I have to delete the file manually and than this code create new .xml file. How to fix this?. How to make this overwrite existing file automatically?