Only users who purchased or rented the product can leave comments
12
Taras Slobodyanik  
Since this EA cannot be tested in the strategy tester, I am posting a test version here. 

These are light versions that only display news of low impact.
Please check the functionality before purchasing the full version.
--------------------------------------------------------------------------------------------------------

Так как эта утилита не может быть протестирована в тестере стратегий, я выкладываю тестовую версию здесь.
Это лайт-версия которая показывает только новости с наименьшей важностью.
Пожалуйста проверьте работоспособность перед покупкой полной версии.

Files:
zbairen985  
Good utility. I hope the author can add the function of free customization to the alarm sound file in future versions, and let the alarm sound continue to the number of seconds that can be customized freely. That's even better!
Taras Slobodyanik  
zbairen985 #:
Good utility. I hope the author can add the function of free customization to the alarm sound file in future versions, and let the alarm sound continue to the number of seconds that can be customized freely. That's even better!

I added parameters:

  • Sound of the First alert
  • Sound of the Second alert
zbairen985  
Taras Slobodyanik #:

我添加了参数:

  • 第一个警报的声音
  • 第二次警报的声音

very good,thank you!

Taras Slobodyanik  

New demo version.
News from mql5.com in the language of your MT5.

--------------------------------------------------------------------------------------------------------

Новая демоверсия.
Новости с mql5.com на языке вашего МТ5.

Files:
Taras Slobodyanik  
New demo version 2.90.
--------------------------------------------------------------------------------------------------------
Новая демоверсия 2.90.
Files:
Taras Slobodyanik  
Version 2.90
1) Now your EA (or indicator) can take news from the Dashboard. See the description in the comments.

To receive news using your EA (or indicator), you need to enable the "Make news for an EA or Indicator" parameter.
The script below will receive two news, the previous and the next.
You can test this with a free demo. 
--------------------------------------------------------------------------------------------------------
Версия 2.90
1) Теперь ваш ЕА (или индикатор) может брать новости из Дашбоард. Смотри описание в комментариях.

Для получения новостей с помощью вашего ЕА (или индикатора), вам нужно включить параметр "Make news for an EA or Indicator".
Приведенный ниже скрипт будет получать две новости, предыдущую и следующую.

Вы можете протестировать это на бесплатной демоверсии.

#property copyright "Coded by Tecciztecatl 2021"
#property link      "https://www.mql5.com/en/users/tecciztecatl"

//path and name of the 'News Dashboard'
string resource_name = "\\Experts\\News_Dashboard_demo.ex5" + "::csv"; 


//arrays for the resource
union UintChar{uint arr_uint[250]; uchar arr_char[1000];};UintChar csv;

struct NewsStruct
   {
   string   title;
   string   country;
   datetime time_event;
   int      time_remain;
   int      impact;
   string   forecast;
   string   previous;
   string   actual;
   };
NewsStruct NEWS[2];  //will receive previous news [0] and next [1]
uint w;uint h;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
{
//take the resource 
if(ResourceReadImage(resource_name,csv.arr_uint,w,h))
   {
   string txt=CharArrayToString(csv.arr_char);
   string result_lines[];
   int    lines=StringSplit(txt,0x0a,result_lines);
   
   //convert resource to the news
   if(lines>0)   
      {
      LineToStruct(result_lines[0], NEWS[0]); //previous news [0]
      LineToStruct(result_lines[1], NEWS[1]); //next news [1]
      }

   //Checking what we received
   //text of the Previous news
   string txt_prev_news=TimeToString(NEWS[0].time_event,TIME_DATE|TIME_MINUTES)+" "+
                        NEWS[0].country+" "+
                        NEWS[0].title+" "+
                        ", remain (sec): "+IntegerToString(NEWS[0].time_remain)+
                        ", impact: "+IntegerToString(NEWS[0].impact)+
                        ", forecast: "+NEWS[0].forecast+
                        ", previous: "+NEWS[0].previous+
                        ", actual: "+NEWS[0].actual;
   
   //text of the Next news
   string txt_next_news=TimeToString(NEWS[1].time_event,TIME_DATE|TIME_MINUTES)+" "+
                        NEWS[1].country+" "+
                        NEWS[1].title+" "+
                        ", remain (sec): "+IntegerToString(NEWS[1].time_remain)+
                        ", impact: "+IntegerToString(NEWS[1].impact)+
                        ", forecast: "+NEWS[1].forecast+
                        ", previous: "+NEWS[1].previous+
                        ", actual: "+NEWS[1].actual;
   
   Comment(txt_prev_news+"\n"+txt_next_news);
   }
else
   Comment("News_Dashboard not found!\nCheck the path and the parameter 'Make news for an EA'\n"+resource_name);
}

//+------------------------------------------------------------------+
void LineToStruct(string txt, NewsStruct &news)
{
string   result[];
int n=StringSplit(txt,',',result);
if(n==8)
   {
   news.title=result[0];
   news.country=result[1];
   news.time_event=StringToTime(result[2]);
   news.time_remain=(int)StringToInteger(result[3]);
   news.impact=(int)StringToInteger(result[4]);
   news.forecast=result[5];
   news.previous=result[6];
   news.actual=result[7];
   }
}
Taras Slobodyanik  
Version 3.00
1) Changed the function of sending news to EA. Now, if a lot of news comes out at the same time, EA will receive all of them.
Here is a script that demonstrates how to get current news from a dashboard.
--------------------------------------------------------------------------------------------------------
Версия 3.00
1) Изменена функция отправки новостей в ЕА. Теперь если в одно время выходит много новостей, то ЕА будет получать их все.
Вот скрипт демонстрирующий работу получения текущих новостей из дашбоард.
Files:
Taras Slobodyanik  
New demo version 3.10.
--------------------------------------------------------------------------------------------------------
Новая демоверсия 3.10.
Files:
miniru77  

not working. got the following error after paying for it. 



Taras Slobodyanik  
miniru77 #:

not working. got the following error after paying for it. 



Hello.

This program takes information from the internet, so you need to enable access to the forexfactory site in your terminal settings.
Press "ctrl+O", "Expert Advisors", "Allow WebRequest", and copy the link to the list "https://www.forexfactory.com/".

1

ForexFactory uses CloudFlare protection, and blocks certain IP-address and VPS.
Therefore, before buying, I recommend that you check the performance of the test version, which is in the Comments.
miniru77  
Thanks! it works now
Alex.lohk  
Hello, may i know what is error code 5004
Taras Slobodyanik  
Alex.lohk #:
Hello, may i know what is error code 5004

Hello.
It's related to the file system.
Do you have any restrictions for MT5? An antivirus or firewall that blocks read/write access to files?

ERR_CANNOT_OPEN_FILE

5004

File opening error

Alex.lohk  
Taras Slobodyanik #:

Hello.
It's related to the file system.
Do you have any restrictions for MT5? An antivirus or firewall that blocks read/write access to files?

ERR_CANNOT_OPEN_FILE

5004

File opening error

Seem no and it write like that 
Alex.lohk  
Alex.lohk #:
Seem no and it write like that 
I am using Fxvps for it but other vps dont have this problem
Taras Slobodyanik  
Alex.lohk #:
I am using Fxvps for it but other vps dont have this problem
The MT should automatically go through CloudFlare protection.

If this does not happen, then this means that your VPS (or IP) is blocked either on the CloudFlare side or on the MetaQuotes side.
So EA can't access the FFC website and get news from there.

Taras Slobodyanik  

Version 4.20

1) Updated functions for sending news to external EAs or Indicators. See the description in the Comments.

Now in the "News Dashboard" options you can set filters and specify the amount of news to send.
By default, EA will send 20 previous (past) news and 20 next (future) news.

And the code for receiving news has changed a bit, here is the new version.

--------------------------------------------------------------------------------------------------------
Версия 4.20

1) Обновлены функции отправки новостей для внешних ЕА или Индикаторов. Смотрите описание в Комментариях.

Теперь в параметрах "News Dashboard" вы можете установить фильтры и указать количество новостей для отправки.
По умолчанию, ЕА будет отправлять 20 предыдущих (прошлых) новостей и 20 следующих (будущих) новостей.

И немного изменился код для получения новостей, вот новая версия.

1

Files:
Taras Slobodyanik  
The Script that can read the News from the Dashboard and stop the trading of all EAs by clicking on the Algo Trading button.
This script uses the "user32.dll" library, so you need to enable "Allow DLL Imports" at startup.
--------------------------------------------------------------------------------------------------------
Скрипт, который может читать новости из Дашбоард и останавливать торговлю всех ЕА нажимая на кнопку Алго Трейдинг.

Этот скрипт использует библиотеку "user32.dll", поэтому при старте вам необходимо разрешить использование этой библиотеки "Allow DLL Imports".

1

2

Taras Slobodyanik  
New demo version.
--------------------------------------------------------------------------------------------------------
Новая демоверсия.
Files:
Only users who purchased or rented the product can leave comments
12