Script News Download
Hello Community,
I have created this Python script that downloads the news from the site www.forexfactory.com and saves it in the directory (C:\Users\your_name\AppData\Roaming\MetaQuotes\Terminal\Common\Files\News\FF\*. csv) that uses CP.
It does not insert the values of "revised" and "revised_time.", the rest of the values are the same as Andrey has in Google Drive.
You can read more about the News Filter
The news are downloaded from:
You need to download Python 3.x and install the plugins run "pip3 install beautifulsoup4" and all others that you do not have installed
Please find attached a slightly modified version of the script.
I have fixed the problem I talked in my previous post, and I added couple of improvements that I needed on my side at the same time, in case other people find that useful.
I added couple of parameters to allow a more flexible usage of the script:
1) --force: allow to re-download the last 2 month of data
2) --utc: allow to download a new set of data using UTC timezone, the files will be suffixed with _UTC in their name so they don't impact the default behavior of the script, which uses NewYork timezone by default
3) --next_week: allow to download next week's data. Useful for people that trade pairs that can have news on Monday morning/night and want to stop their positions couple of hours before (i.e. on Friday)
You can see the changelog in the header of the script
Feel free to ignore my changes if you don't like them :)
HistoryLoad_v2_2024-01-06.py