Download MetaTrader 5

Experts: News EA Template without DLL - page 2

To add comments, please log in or register
ThanhTran
10
ThanhTran  

Thanks Yurij Izyumov ,great code , I tried write your code with my code for real trade , I think my EA can't trade with live account ^^! 

Files:
news.mq4 41 kb
Yurij Izyumov
31243
Yurij Izyumov  
ThanhTran:

Thanks Yurij Izyumov ,great code , I tried write your code with my code for real trade , I think my EA can't trade with live account ^^! 

move
double CheckNews=0;

to global variables, delete from Nws()

move

   if(CheckNews>0)
     {
      /////  We are doing here if we are in the framework of the news
      Comment("News time");

     }else{
      // We are out of scope of the news release (No News)
      Comment("No news");

     }

to start() after Nws();

replace 

Comment("News time");

to - what to do when there is news

replace 

Comment("No news");

to - what to do when there is no news

you did not write a single action to work with the news

sweadim
5
sweadim  

thanks Yurij Izyumov for great code , I don't know how can i make your EA put orders , it give me alerts about the news only 

Yurij Izyumov
31243
Yurij Izyumov  
sweadim :

thanks  Yurij Izyumov  for great code , I don't know how can i make your EA put orders , it give me alerts about the news only 


okay, I'll make an example

Yurij Izyumov
31243
Yurij Izyumov  
sweadim:

thanks Yurij Izyumov for great code , I don't know how can i make your EA put orders , it give me alerts about the news only 


try it new template

https://www.mql5.com/en/code/19138

News EA Template Without DLL From 2 Sources
News EA Template Without DLL From 2 Sources
  • votes: 5
  • 2017.09.25
  • Yurij Izyumov
  • www.mql5.com
The functions included in this template use two news sources - Investing.com and Dailyfx.com. The template doesn’t use DLL.
12
To add comments, please log in or register