News EA Template without DL L
This professional-grade solution for MetaTrader 4 helps traders achieve greater efficiency in their daily workflow. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use News EA Template without DL L
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
In essence, this is source code (template) of the Expert Advisor that downloads news from the investing.com, written in the MQL4 without the use of DLL. If you were looking for a way to do this in your product for the Market (use of DLL is not allowed there), then this is what you need. Now anyone can implement the feature of working according to the news background — and anyone can do this himself. The template is based on the indicator.
For example, it is possible to make the EA to not trade at all during the news release, or make it close all profitable positions before the news release, or make it place pending orders before the news, there are numerous options. I give you a draft — create.
But despite it being only a template, it is fully operational as news background indicator — generates signals, drawn lines.
Recommendations:
The code contains this segment
Currently, the EA simply generates a comment stating that there is news or there is no news. You can insert the conditions you want to execute during the news events instead of these comments.
List of variables:
BeforeNewsStop
- time in minutes before the news for the EA to pause operation, for example, 5 minutes before the news release. The EA switches to "News time" mode.
AfterNewsStop
- time in minutes after the news for the EA to pause operation, for example, 5 minutes after the news release. The EA deactivates the "News time" mode.
NewsLight, NewsMedium, NewsHard
- enable downloading weak, medium and strong news.
offset
- Time zone (GMT).
NewsSymb
- list of all currencies, for which the news should be downloaded. If empty, currencies of the current symbol are used.
DrawLines
- draw lines on the chart.
Next
- draw only the upcoming news, do not draw the past news.
Signal
- alert about the approaching news at the distance of BeforeNewsStop minutes.
If you are unable to insert the required functions into the EA, contact me.