News Trading MT4
News Trading MT4 is a calendar of economic news in Russian and English, downloadable from the site Investing com, a Trading robot and a trade panel.
To download the calendar page from the site, add two addresses http://ru.investing.com/economic-calendar/ and http://uk.investing.com/economic-calendar/ in the list of allowed URLs in the Experts tab. Time on your calendar is automatically set in accordance with your computer time.
Calendar setup buttons:
- Х - minimize calendar;
- time - time filter of news;
- currency - currency based filter;
- text - hide text;
- "$", "$$", "$$$" - volatility based filter of news;
- trading - enable trading;
- en/ru - calendar language English or Russian;
- update - manual calendar update.
The trading strategy is based on the differences between the forecast and the actual value of an economic indicator. On Investing.com, the differences are indicated as "better than expected", "worse than expected" and "as expected", in the calendar they are marked as "+", "-", "=". The EA opens an order in accordance with the results of comparison of the forecast and the actual EA value. To select a line for trade, press "trading" and the button with the news time.
- Profit in points;
- Maximum spread at which the EA will open an order;
- Magic number - order ID;
- Take profit;
- Stop loss;
- "NOLOSS" - moving to breakeven;
- Level no loss - breakeven level;
- Level profit - profit in points, reaching which stop loss is moved to breakeven;
- Waiting time - (in minutes) time to wait for activation of breakeven. If the time since the opening of the order has exceeded the preset value, and the order has not been moved to breakeven, the order should be closed as soon as the profit is positive;
- Button 'SAR 1" - the same, provided that Parabolic М5 is above Bid for a Buy order and below Bid for a Sell order;
- Button "Trailing" - enable trailing;
- Start - trailing size in points;
- Step - trailing step in points;
- Button "SAR 2" - close an order buy Parabolic M30. Operates independently of the trailing;
- Button "Buy (+/-)" - allow opening a Buy order with the actual value better/worse than the forecast;
- Button "Sell (+/-)" - allow opening a Sell order with the actual value better/worse than the forecast;
- Button "TR+" - trigger. Allow to open an order, if the actual value is better than the forecast and the actual value is greater than/less than that specified the settings;
- Button "TR-" - trigger. Allow to open an order, if the actual value is worse than the forecast and the actual value is greater than/less than that specified the settings;
- Button "Buy (=)" - allow opening a Buy order, if the forecast is "as expected" and the M1 candlestick is rising;
- Button "Sell (=)" - allow opening a Sell order, if the forecast is "as expected" and the M1 candlestick is falling;
- Button "Open Buy" - open a Buy order;
- Button "Open Sell" - open a Sell order;
- Button "CLOSE ORDER" - close one order based on the magic number
- Button "ECN" - for the accounts where it is required to open an order with take profit=0 and stop loss=0 followed by modification;
- Button "X" - minimize the panel.
Parameters are modified right on the trade panel.
The Expert Advisor cannot be tested in the Strategy Tester.
See previous versions here: https://www.mql5.com/en/code/11916
During the transition to standard time, set correction_time_usa=-5, correction_time_uk=0, correction_time_ru=3.
- S1/S2 button: switch between strategies.
- Buy Stop button: allow Buy Stop order placement.
- Sell Stop button: allow Sell Stop order placement.
- time_install (in seconds): time distance prior to news release to place orders.
time_delete (in seconds): period of time to remove orders; not to remove if set to 0.
- distance: distance in points from the current price to place an order.
- install button: manual placement of orders.
- delete button: manual deletion of orders.
In this version all values for 5 digits quotes are automatically multiplied by 10.
Fixed occasional incorrect colors of past and future news.
To do that, add this address to the list of allowed URLs in Expert Advisors tab, replace URL_uk_usa in the EA's input parameters and change gmt_uk=0 to gmt_uk=-5.