News Trader EA - page 127

To add comments, please log in or register
Sergey Golubev
Moderator
110768
Sergey Golubev  

News EA Template Without DLL From 2 Sources - expert for MetaTrader 4


This is a continuation of the source code elaboration “The template of Expert Advisor for working with news”. The functions included in this template use two news sources - Investing.com and Dailyfx.com. The template doesn’t use DLL.

The Advisor can distinguish between weak, medium, and strong news, as well as apart for Non-farm Payrolls. There is the parameter of a time indentation for each news type, at a time when the script will give a signal about upcoming or past news.

Using this template, you can also invert its work, and then the Advisor will work either only on the newlines or directly before the release of Non-farm Payrolls. If at one point there is a lot of news, then the Advisor takes into account the strongest.

This version of the template provides a concrete example of how you can use it in your trading. This template already has a simple trading function ManageTrade (), which you can change and realize your desires. The logic of working in the template is simple - taking into account the settings, it checks the presence of news, if there is news then the trading is stopped within the time specified in the settings.

Mdali Nkosi
73
Mdali Nkosi  
Hey mate, please tell me how does one connect the News Straddling EA with a News Alert EA for automated high impact news trading?
Sergey Golubev
Moderator
110768
Sergey Golubev  

e-News-Lucky 2 - expert for MetaTrader 5 

Refinement of the first version of e-News-Lucky - added options

  • Use Expiration - use "lifetime" for a pending Stop order
  • Expiration (in minutes) - "lifetime" of a pending Stop order, in minutes

Work with pending Buy Stop and Sell Stop orders. Pending orders are placed and removed at a specified time ( Time of order placement and Time of order removal , respectively), while only hours and minutes are taken into account in the time parameters. When any of the pending orders are triggered (the moment of triggering is trapped in OnTradeTransaction ), the remaining pending order is deleted.

To add comments, please log in or register