Tâche terminée
Spécifications
Hello,
My request concerns the modification of the expert advisor "Simple News" present in the "codebase" section of mql5. The Expert Advisor link is:
https://www.mql5.com/en/code/14200
Indeed, the expert advisor allows to enter only one date for the news, and I want to modify it to read news from csv files comprising a list of news.
The new input parameters of the expert advisor are:
1. The csv file global path (for Example C\...\Terminal\MT4Folder\MQL4\Files – this variable must be configurable, i.e. No fixed path for the csv file).
2. The csv file name (including the .csv extension) – Please note that I can use many csv files for trading many currency pairs from different charts (ex: in a chart the name this variable is EURUSD-News.csv and in the other chart the name of the file is USDJPY-News.csv).
3. The frequency of updating the next news (in minutes) – for Example, if this variable is equal to 30 the expert will update the news table every 30 minutes. Also, please note that I will update the csv files every weekend.
4. The GMT offset of the news present in the csv file – please note that the date of the news present in the csv might have an offset compared to GMT+0. For example, the news in the attached file have an offset of GMT+2. The expert must take into consideration this aspect.
5. Automatic detection of the GMT offset of the broker (true/false) – If this variable is true, then the GMT offset of the broker is automatically detected and used (for live and demo trading) and if this variable is false then a manually entered variable is used (the next variable – used for backtesting).
6. GMT offset of the broker (essentially used for backtesting and might be also used for live and demo trading).
7. A maximum spread for entering the market.
8. A maximum slippage.
9. Deals (same as the initial expert).
10. Delta (same as the initial expert).
11. Distance (same as the initial expert).
12. SL (same as the initial expert).
13. Trail (same as the initial expert).
14. TP (same as the initial expert).
15. Slip (same as the initial expert).
16. Magic (same as the initial expert).
The expert must write in the chart the 5 next news (from the csv file – with currency, time, and description) and must write the time used by the expert (same as the time used for the news).
Please find in the attached file the initial expert and a csv file containing the list of news for EURUSD for 2018.
the final deliverable concerns the new expert with the new functionalities as well as a backtest of 99.9% for the year 2018.
Best regard,