Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

News EA template without DLL from 2 sources - MetaTrader 4 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

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

This is a continuation of the source code elaboration " EA template for processing news ". The functions included in this template use two news sources - Investing.com and Dailyfx.com. This template does not use DLL.

The Advisor can also differentiate between weak, medium and strong news with non-farm payrolls data. There is a time parameter for each news type indentation, at which point the script will give a signal about upcoming or past news.

Using this template, you can also reverse the way it works, and then the Advisor will work only on a newline or directly before the NFP release. If there is a lot of news at one point, the advisor will consider the strongest.

This version of the template provides specific examples of how to use it in trading. This template already has a simple trading function ManageTrade(), you can change it and implement your wishes. The logic working in the template is simple - taking into account the settings, it checks whether news exists and if there is news stops trading settings within the specified time.

For more trading functions, please visit the following URL:

 if ( whether trade() && trade is allowed )
     { // News and trading are not allowed manageTrade(); // your trading function }
attention! For this Expert Advisor you have to add it to the trusted URLs http://www.dailyfx.com/ and http://ec.forexprostools.com/

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

I want to remind you again that this is a template designed to develop your own Advisor.

If you don't know how to insert the functionality you need, please contact me, help is nearby.


Attachment download

📎 trade_ea_template_for_news.mq4 (42.62 KB)

Source: MQL5 #19138

Verification code Refresh