Termos de Referência
Need to create a simple indicator that creates a standard alert in MT5, made on mql5.
Logic of indicator:
When launched, the indicator makes a request to the API and receives a list of news in SVC format.
The list of news is downloaded from the Internet via the API.
If an alert has already been created, the indicator does not create it again.
The indicator can create an alert that will be triggered a few minutes before the news time. How many minutes in advance the warning will be indicated in the settings. 0 by default.
The indicator also draws a vertical line on the chart based on the time of release of news.
The name of the vertical line must contain a value of column 4, these are asterisks ***.
The indicator works on all TFs and all Forex pairs.
Alert settings and description in the picture.
- Еxpiration: not enabled and disabled by default.
- Use audio file “news” from the MT5 audio file library.
- Fixed value. Specified in the settings. EURUSD by default.
- Alert function: play Sound file.
- Maximum number of iterations. Specified in the settings. 1 by default.
- The alert is triggered when its time comes. Specified in the settings. 0 by default.
- A standard vertical line showing the time of alert on a chart.
Api return an array of news in SVC format with content type text/plain
Each row contains data of single news at specific time.
Array Columns description:
1 = date of news.
2 = time of news.
3 = currency symbol that related to specific news.
4 = importance of news could be 1, 2 or 3 stars.
5 = news subject
6 = timezone offset of date & time of news.
Sample API response:
07/09/2023,00:30,USD,**,"API Weekly Crude Oil Stock",GMT
07/09/2023,02:45,NZD,*,"Manufacturing Sales Volume (QoQ) (Q2)",GMT
07/09/2023,03:50,JPY,*,"Foreign Bonds Buying",GMT
07/09/2023,03:50,JPY,*,"Foreign Investments in Japanese Stocks",GMT
07/09/2023,03:50,JPY,***,”Foreign Reserves (USD) (Aug)”,GMT
07/09/2023,10:00,GBP,***,"Halifax House Price Index (YoY) (Aug)",GMT
Result on the graph:
Description of indicator parameters